Skip to content

Commit 3969433

Browse files
authored
Merge pull request #39 from vercel-labs/jb/fail-lockfile-mode
error exit on lockfile install failure
2 parents ff7945d + eb6bb63 commit 3969433

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/funky-olives-call.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"fix-react2shell-next": patch
3+
---
4+
5+
lockfile

lib/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,9 @@ async function run() {
356356
console.log(c('yellow', lockfileOnly ? '\nLockfile update had issues.' : '\nSome install commands had issues.'));
357357
console.log(c('dim', ' The package.json files have been updated.'));
358358
console.log(c('dim', ' Please run install commands manually in the affected directories.\n'));
359+
if (lockfileOnly) {
360+
process.exit(1);
361+
}
359362
}
360363
}
361364

0 commit comments

Comments
 (0)