Skip to content

Commit 504ee13

Browse files
committed
fix(dev): freeze the worktree setup lockfile
1 parent e536bfd commit 504ee13

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎scripts/setup-worktree.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ const worktree = NodePath.dirname(import.meta.dirname);
2121
// `shell` resolves `vp` through PATH, including Windows command shims.
2222
// Setup has no one answering install prompts. Pass pnpm's confirmation flag
2323
// through vp and leave stdin closed so other prompts fail instead of hanging.
24-
const install = NodeChildProcess.spawnSync("vp i -- --yes", {
24+
// Install the branch's locked dependencies without dirtying tracked files.
25+
// A stale lockfile must fail setup rather than silently resolving a new one.
26+
const install = NodeChildProcess.spawnSync("vp i --frozen-lockfile -- --yes", {
2527
cwd: worktree,
2628
shell: true,
2729
stdio: ["ignore", "inherit", "inherit"],

0 commit comments

Comments
 (0)