yarn upgrade-interactive
Yarn升级 - 互动
这与npm-check交互式更新模式类似。它提供了一种更新过时包的简单方法。
yarn upgrade-interactive [--latest]
upgrade-interactive
命令采用与基础 upgrade
命令相同的参数,并且其功能与基础命令相同。此命令将在执行任何升级之前显示过时的软件包,允许用户选择要升级的软件包。在package.json
确定要升级的版本时,Yarn将尊重版本范围。
你可以把它yarn upgrade-interactive
看作是yarn outdated
和yarn upgrade [package...]
命令的组合。在yarn outdated
显示过期软件包列表yarn upgrade [package...]
并可用于升级所需软件包的位置,yarn upgrade-interactive
显示相同的过期软件包列表,并让您立即选择要升级的软件包。
--latest
:该标志告诉Yarn忽略package.json
指定的版本范围,并使用latest
注册表中标记的版本。
[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