yarn upgrade-interactive
Isto é semelhante ao modo de atualização interativa do npm-check. Ele fornece uma maneira fácil de atualizar pacotes desatualizados.
yarn upgrade-interactive [--latest]
The upgrade-interactive command takes the same parameters as, and functions the same as the base upgrade command. This command will display the outdated packages before performing any upgrade, allowing the user to select which packages to upgrade. Yarn will respect the version ranges in package.json when determining the version to upgrade to.
You can think of yarn upgrade-interactive as a combination of the yarn outdated and yarn upgrade [package...] commands. Where yarn outdated displays the list of outdated packages and yarn upgrade [package...] can then be used to upgrade desired packages, yarn upgrade-interactive displays the same outdated package list and lets you immediately chose which to upgrade.
--latest : This flag tells yarn to ignore the specified version ranges in package.json and instead use the version tagged latest in the registry.
[1/? Choose which packages to update. (Press <space> to select, <a> to toggle all, <i> to inverse s
election)
devDependencies
❯◯ autoprefixer 6.7.7 ❯ 7.0.0 https://github.com/postcss/autoprefixer#readme
◯ webpack 2.4.1 ❯ 2.5.1 https://github.com/webpack/webpack
dependencies
◯ bull 2.2.6 ❯ 3.0.0-alpha.3 https://github.com/OptimalBits/bull#readme
◯ fs-extra 3.0.0 ❯ 3.0.1 https://github.com/jprichardson/node-fs-extra
◯ socket.io 1.7.3 ❯ 1.7.4 https://github.com/socketio/socket.io#readme
◯ socket.io-client 1.7.3 ❯ 1.7.4 https://github.com/Automattic/socket.io-client#readme
yarn add
Quando você quiser usar outro pacote, você primeiro precisa adicioná-lo nas suas dependências. Executando `yarn add` você instalará o pacote em seu projeto.
yarn tag
Tags são uma maneira de publicar versões de seus pacotes com um rótulo. Usuários podem instalar seus pacotes através de rótulos ao invés de um número de versão.
Versões das dependências
Pacotes no Yarn seguem Versionamento Semântico, também conhecido como "semver". Quando você instalar um novo pacote, ele será adicionado com uma versão semver.