v2.0.0-beta.35 (2017-02-01)
3 new flags:
--no-sort
(only for run, exec and bootstrap)
By default, all tasks execute on packages in topologically sorted order as to respect the dependency relationships of the packages in question. Cycles are broken on a best-effort basis in a way not guaranteed to be consistent across Lerna invocations.
Topological sorting can cause concurrency bottlenecks if there are a small number of packages with many dependents or if some packages take a disproportionately long time to execute. The --no-sort
option disables sorting, instead executing tasks in an arbitrary order with maximum concurrency.
--hoist
(only for bootstrap)
Install external dependencies matching glob
at the repo root so they're
available to all packages. Any binaries from these dependencies will be
linked into dependent package node_modules/.bin/
directories so they're
available for npm scripts. If the option is present but no glob
is given
the default is **
(hoist everything). This option only affects the
bootstrap
command.
$ lerna bootstrap --hoist
Note: If packages depend on different versions of an external dependency,
the most commonly used version will be hoisted, and a warning will be emitted.
This option may also be set in lerna.json
with "hoist": true
or "hoist": <glob>
.
--nohoist
(only for bootstrap)
Do not install external dependencies matching glob
at the repo root. This
can be used to opt out of hoisting for certain dependencies.
$ lerna bootstrap --hoist --nohoist=babel-*
This option may also be set in lerna.json
with "nohoist": <glob>
.
🚀 Enhancement
- #507 Automatic hoisting of common dependencies. (@gigabo)
- #547 Spawn child process for rimraf (speeds up
lerna clean
). (@roblg) - #543 [clean] Support
--include-filtered-dependencies
flag. (@roblg) - #412 Make bootstrap, exec and run commands execute packages in dependency order by default. (@seansfkelley)
- #373 [Feature] Log stdout when commands fail. Closes #343.. (@seansfkelley)
🐛 Bug Fix
- #542 Fixes issue: prepublish not running in dependencies with
--scope --include-filtered-dependencies
. (@roblg)
When running lerna bootstrap --scope foo --include-filtered-dependencies
run prepublish task with the same flags.
📝 Documentation
- #465 Add a note about lerna-wizard.. (@szarouski)
🏠 Internal
- #554 Bump
cross-env
.. (@wtgtybhertgeghgtwtg) - #560 redo labels [skip ci]. (@hzoo)
- #559 Drop
isarray
.. (@wtgtybhertgeghgtwtg) - #557 Fix broken hoisting tests. (@doug-wade)
- #549 Bump
signal-exit
.. (@wtgtybhertgeghgtwtg) - #548 Bump
object-assigned-sorted
.. (@wtgtybhertgeghgtwtg) - #535 Don't include unnecesary files in the npm package. (@gpittarelli)
- #546 Drop
object-assign
.. (@wtgtybhertgeghgtwtg) - #541 Upgrade
inquirer
dependency. (@wtgtybhertgeghgtwtg)
Committers: 9
- Bo Borgerson (gigabo)
- Douglas Wade (doug-wade)
- George Pittarelli (gpittarelli)
- Henry Zhu (hzoo)
- Robert Gay (roblg)
- Sean Kelley (seansfkelley)
- Sergey Zarouski (szarouski)
- wtgtybhertgeghgtwtg