Skip to content

Commit cb30dd4

Browse files
committed
chore: noLockUpdate
1 parent 059c76b commit cb30dd4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/release.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ let {
2222
skipCleanCheck: skipCleanGitCheck,
2323
noDepsUpdate,
2424
noPublish,
25+
noLockUpdate,
2526
} = args
2627

2728
if (args.h || args.help) {
@@ -37,6 +38,7 @@ Flags:
3738
--skipCleanCheck Skip checking if the git repo is clean
3839
--noDepsUpdate Skip updating dependencies in package.json files
3940
--noPublish Skip publishing packages
41+
--noLockUpdate Skips updating the lock with "pnpm install"
4042
`.trim()
4143
)
4244
process.exit(0)
@@ -201,8 +203,10 @@ async function main() {
201203
step('\nUpdating versions in package.json files...')
202204
await updateVersions(pkgWithVersions)
203205

204-
step('\nUpdating lock...')
205-
await runIfNotDry(`pnpm`, ['install'])
206+
if (!noLockUpdate) {
207+
step('\nUpdating lock...')
208+
await runIfNotDry(`pnpm`, ['install'])
209+
}
206210

207211
step('\nGenerating changelogs...')
208212
for (const pkg of pkgWithVersions) {

0 commit comments

Comments
 (0)