From: Eduardo San Martin Morote Date: Fri, 26 Jul 2024 11:58:05 +0000 (+0200) Subject: chore: noLockUpdate X-Git-Tag: @pinia/nuxt@0.5.2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cb30dd498cb784ed03cb85b03ae2a5e6c8b84a50;p=thirdparty%2Fvuejs%2Fpinia.git chore: noLockUpdate --- diff --git a/scripts/release.mjs b/scripts/release.mjs index bc3ca7c3..ef6e6dbe 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) {