• yarn generate-lock-entry

    生成一个 lock 文件。

    yarn generate-lock-entry

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

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

    原文: https://yarnpkg.com/zh-Hans/docs/cli/generate-lock-entry