From cb30dd498cb784ed03cb85b03ae2a5e6c8b84a50 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 26 Jul 2024 13:58:05 +0200 Subject: [PATCH] chore: noLockUpdate --- scripts/release.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/release.mjs b/scripts/release.mjs index bc3ca7c38a..ef6e6dbe1e 100644 --- a/scripts/release.mjs +++ b/scripts/release.mjs @@ -22,6 +22,7 @@ let { skipCleanCheck: skipCleanGitCheck, noDepsUpdate, noPublish, + noLockUpdate, } = args if (args.h || args.help) { @@ -37,6 +38,7 @@ Flags: --skipCleanCheck Skip checking if the git repo is clean --noDepsUpdate Skip updating dependencies in package.json files --noPublish Skip publishing packages + --noLockUpdate Skips updating the lock with "pnpm install" `.trim() ) process.exit(0) @@ -201,8 +203,10 @@ async function main() { step('\nUpdating versions in package.json files...') await updateVersions(pkgWithVersions) - step('\nUpdating lock...') - await runIfNotDry(`pnpm`, ['install']) + if (!noLockUpdate) { + step('\nUpdating lock...') + await runIfNotDry(`pnpm`, ['install']) + } step('\nGenerating changelogs...') for (const pkg of pkgWithVersions) {