-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade lerna to lerna 6 #5368
Upgrade lerna to lerna 6 #5368
Conversation
Performance Report✔️ no performance regression detected Full benchmark results
|
f69a7d8
to
4dc6d37
Compare
@@ -43,7 +43,7 @@ jobs: | |||
key: ${{ runner.os }}-${{ steps.node.outputs.v8CppApiVersion }}-${{ hashFiles('**/yarn.lock', '**/package.json') }} | |||
- name: Install & build | |||
if: steps.cache-deps.outputs.cache-hit != 'true' | |||
run: yarn install --frozen-lockfile --ignore-optional && yarn build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to remove --ignore-optional
from all CI scripts because of the following issue. The alternative solution didn't worked in our case. The issue is somehow related to NPM and yarn behavior about optional dependencies npm/cli#4828
@@ -4,6 +4,7 @@ | |||
], | |||
"npmClient": "yarn", | |||
"useWorkspaces": true, | |||
"useNx": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Major change in Lerna 6 is the new task runner nx
. We can revert to a legacy behavior by setting this to false.
This reverts commit 99dde2b.
4dc6d37
to
e3044b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
🎉 This PR is included in v1.8.0 🎉 |
@@ -11,8 +11,8 @@ | |||
"clean": "rm -rf ./packages/*/lib ./packages/*/*.tsbuildinfo", | |||
"build": "lerna run build", | |||
"build:docs": "lerna run build:refdocs && ./scripts/prepare-docs.sh", | |||
"build:lib:watch": "lerna run build:lib:watch --parallel", | |||
"build:types:watch": "lerna run build:types:watch --parallel", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nazarhussain what was the reason for removing --parallel
? Looks like it is required to run multiple concurrent jobs
Motivation
Make the dependencies up-to-date.
Description
Upgrade the lerna.
Steps to test or reproduce