From 6a1b8153c2f07cee80fd91ea56c58fdf46706191 Mon Sep 17 00:00:00 2001 From: Paul Marechal Date: Mon, 27 Sep 2021 19:41:25 -0400 Subject: [PATCH] fix publish:next `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. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ecfc95c9ac1d2..8ec6909edbaaa 100644 --- a/package.json +++ b/package.json @@ -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",