Skip to content

Commit 2b55450

Browse files
committed
chore(build): allow non-frozen lockfile for desktop artifact install on CI
- Modify `bun install` to use `--no-frozen-lockfile` for reconciling structural differences in staging `bun.lock` file. - Prevents CI failures when lockfile doesn't match staged `package.json`.
1 parent 3bba753 commit 2b55450

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/build-desktop-artifact.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,12 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* (
700700
...commandOutputOptions(options.verbose),
701701
// Windows needs shell mode to resolve .cmd shims (e.g. bun.cmd).
702702
shell: process.platform === "win32",
703-
})`bun install --production`,
703+
// The staging package.json is a flat non-workspace subset of the monorepo,
704+
// so the copied bun.lock will have structural differences. Allow bun to
705+
// reconcile the lockfile while still using it for dependency resolution
706+
// guidance. Without this, CI (which defaults to --frozen-lockfile) rejects
707+
// the install because the lockfile doesn't match the staged package.json.
708+
})`bun install --production --no-frozen-lockfile`,
704709
);
705710

706711
const buildEnv: NodeJS.ProcessEnv = {

0 commit comments

Comments
 (0)