Skip to content

Commit

Permalink
fix publish:next
Browse files Browse the repository at this point in the history
`lerna@4` follows lifecycle scripts when running publish:
https://github.com/lerna/lerna/tree/main/commands/publish#lifecycle-scripts

We never relied on those, and it also causes issues with our setup.

Add `--ignore-scripts` to prevent script recursion.
  • Loading branch information
paul-marechal authored and marcdumais-work committed Sep 28, 2021
1 parent 956b93e commit 6a1b815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
"preinstall": "node-gyp install",
"prepare": "yarn compile:references && lerna run prepare && yarn compile",
"publish": "yarn && yarn test && yarn publish:latest",
"publish:latest": "lerna publish --exact --yes && yarn publish:check",
"publish:next": "lerna publish preminor --exact --canary --preid next --dist-tag next --no-git-reset --no-git-tag-version --no-push --yes && yarn publish:check",
"publish:latest": "lerna publish --exact --ignore-scripts --yes && yarn publish:check",
"publish:next": "lerna publish preminor --exact --canary --preid next --dist-tag next --no-git-reset --no-git-tag-version --no-push --ignore-scripts --yes && yarn publish:check",
"publish:check": "node scripts/check-publish.js",
"rebuild:clean": "rimraf .browser_modules",
"test": "yarn test:theia && yarn electron test && yarn browser test",
Expand Down

0 comments on commit 6a1b815

Please sign in to comment.