Skip to content

Commit

Permalink
test(cli): fix lerna bootstrap to link monorepo packages
Browse files Browse the repository at this point in the history
Lerna v3.10.3 changed the way how `lerna bootstrap --scope` works,
breaking our CLI tests when changes are made in dependencies of newly
scaffolded projects.

This commit fixes the problem by adding `--force-local` option to
restore previous behavior.

Also to make future troubleshooting easier, I am changing lerna log
level used by the test from "silent" to "warn".

Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos authored and raymondfeng committed May 23, 2019
1 parent a392852 commit 2d5a87b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/cli/test/acceptance/app-run.acceptance.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,14 @@ async function lernaBootstrap(scope) {
_: [],
ci: false,
scope: scope,
loglevel: 'silent',
// The option "scope" controls both
// - which packages to bootstrap
// - which monorepo-local dependencies to resolve via symlinks
// The option "forceLocal" tells lerna to always symlink local packages.
// See https://github.com/lerna/lerna/commit/71174e4709 and
// https://github.com/lerna/lerna/pull/2104
forceLocal: 'forceLocal',
loglevel: 'warn',
// Disable progress bars
progress: false,
});
Expand Down

0 comments on commit 2d5a87b

Please sign in to comment.