当我运行时lerna bootstrap,根据文档:
Usage
$ lerna bootstrap
Bootstrap the packages in the current Lerna repo. Installs all of their dependencies and links any cross-dependencies.
When run, this command will:
npm install all external dependencies of each package.
Symlink together all Lerna packages that are dependencies of each other.
npm run prepublish in all bootstrapped packages (unless --ignore-prepublish is passed).
npm run prepare in all bootstrapped packages.
Run Code Online (Sandbox Code Playgroud)
既然引导与发布无关,那么它为什么要运行呢prepublish?为什么它是默认的?
| 归档时间: |
|
| 查看次数: |
1922 次 |
| 最近记录: |