yarn generate-lock-entry

npm install yarn -g

生成一个 lock 文件。

yarn generate-lock-entry

注:这个命令只给高级用例个工具。给它当前的 package.json 清单文件,它生成一个 lock file 入口。


$ yarn generate-lock-entry
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
yarnpkg@0.14.0:
  version "0.14.0"
  dependencies:
    babel-plugin-transform-inline-imports-commonjs "^1.0.0"
    babel-runtime "^6.0.0"
    bytes "^2.4.0"
    [...]