--include-filtered-dependencies
now works with ls
,exec
,run
as well!
- Fixes an issue with
--hoist
(from previous release)
- #581 Improve support for --include-filtered-dependencies. (@roblg)
- #576 Install with no arguments. (@gigabo)
- #569 Short-circuit out of install with no packages. (@gigabo)
- #574 Use correct logger method in Package method.. (@evocateur)
- #568 Check if directories exist before removing during hoist. (@gigabo)
- #562 Replace
lodash.find
,lodash.unionwith
, andpad
withlodash
.. (@wtgtybhertgeghgtwtg) - #584 Bump
command-join
.. (@wtgtybhertgeghgtwtg) - #575 Add coverage report. (@doug-wade)
- Bo Borgerson (gigabo)
- Daniel Stockman (evocateur)
- Douglas Wade (doug-wade)
- Robert Gay (roblg)
- wtgtybhertgeghgtwtg
3 new flags:
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.
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>
.
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>
.
- #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)
- #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.
- #465 Add a note about lerna-wizard.. (@szarouski)
- #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)
- Bo Borgerson (gigabo)
- Douglas Wade (doug-wade)
- George Pittarelli (gpittarelli)
- Henry Zhu (hzoo)
- Robert Gay (roblg)
- Sean Kelley (seansfkelley)
- Sergey Zarouski (szarouski)
- wtgtybhertgeghgtwtg
- #537 [CRITICAL] Publish command is broken for 2.0.0-beta.33. (@diogofcunha)
- Diogo (diogofcunha)
- Drop Node 0.10/0.12/5
- Custom publish commit message
- Publish to a different remote
- Publish exact versions instead of
^
- #528 Drop node 5 from travis/appveyor. (@chitchu)
- #484 Drop support for node 0.10 and node 0.12. (@doug-wade)
- #460 Add --message option for custom commit msgs when publishing. (@traviskaufman)
Override default message with --message
or -m
lerna publish -m "chore: Publish"
- #508 [Feature] Allow git remote to be changed for publish. (@tdanecker)
Use a different git remote other than origin
lerna publish --git-remote upstream
- #390 [Feature] Adds
--include-filtered-dependencies
flag for bootstrap command. (@lukebatchelor)
my-component
and all of its dependencies will be bootstrapped
lerna bootstrap --scope my-component --include-filtered-dependencies
Use exact versions ("2.1.3"
) instead of with ^
("^2.1.3"
)
lerna publish --exact
- #458 use message passed as argument to the static method input() in PromptUtilities. (@btiwaree)
- #483 467: lerna bootstrap succeeds with 0 packages. (@doug-wade)
- #454 Use close event to wait for spawned processes to finish. (@xaka)
- Bishesh Tiwaree (btiwaree)
- Douglas Wade (doug-wade)
- Pavel Strashkin (xaka)
- Sam Gluck (sdgluck)
- Tenor Biel (L8D)
- Thomas Danecker (tdanecker)
- Travis Kaufman (traviskaufman)
- Vicente Jr Yuchitcho (chitchu)
- lukebatchelor
- #435 Use symlinks with relative paths instead of absolute on non-windows environments (Closes #423).. (@JaapRood)
- #440 Change testing NODE_ENV to "lerna-test" (Closes #406). (@ryb73)
- #444 Use correct logger method for warnings. (@evocateur)
Lerna now supports packages outside of the packages/
directory!
Configured via an array of globs in lerna.json
:
{
"lerna": "2.0.0-beta.31",
"version": "1.1.3",
"packages": ["packages/*"]
}
- #436 Highlight private packages in updated/publish output. (@chrishelgert)
No more confusion about what will actually get published!
Adds a --loglevel [silent|error|warn|success|info|verbose|silly]
option.
Any logs of a higher level than the setting are shown. The default is "info".
- #386 Add --scope and --ignore support for bootstrap, exec, run, clean and ls. (@lukebatchelor)
- #358 Run pre/post install scripts during bootstrap. (@seansfkelley)
- #442 Increase maxBuffer. (@rygine)
- #372 Fix logifyAsync, logifySync decorators. (@seansfkelley)
- Bastian Heist (beheist)
- Ben Briggs (ben-eb)
- Ben Clinkinbeard (bclinkinbeard)
- Bo Borgerson (gigabo)
- Chris Helgert (chrishelgert)
- Elise Chant (elisechant)
- Gary Johnson (garyjN7)
- Henry Zhu (hzoo)
- Ivan Akulov (iamakulov)
- James K (thejameskyle)
- Joscha Feth (joscha)
- MURAKAMI Masahiko (fossamagna)
- Sean Kelley (seansfkelley)
- Teppei Sato (teppeis)
- lukebatchelor