]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: noLockUpdate
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 26 Jul 2024 11:58:05 +0000 (13:58 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 26 Jul 2024 11:58:05 +0000 (13:58 +0200)
scripts/release.mjs

index bc3ca7c38a770d56f2710cece5a90e21e4465335..ef6e6dbe1ea8b095a0ccbae62b8caf48344332b5 100644 (file)
@@ -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) {