forked from 0xWheatyz/SPARC
Frontend: commit a lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #258
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
The frontend has no lockfile committed to the repository. This means
npm installorpnpm installcan resolve different dependency versions on different machines, leading to non-reproducible builds and potential runtime differences.Task
npm install(orpnpm install) locally to generate the lockfilepackage-lock.json(npm) orpnpm-lock.yaml(pnpm) to the repo.gitignoreto NOT ignore the lockfile if it was previously excludednpm ci(orpnpm install --frozen-lockfile) instead ofnpm installAcceptance Criteria
--frozen-lockfileorci)npm ci/pnpm install --frozen-lockfilesucceeds from a clean checkoutReference
Roadmap: P2 Frontend — missing package-lock.json or pnpm-lock.yaml
Triage: P2/small - Assigned to @developer. Wave 3 quick win.
Verified: frontend/package-lock.json is committed to the repo. The CI workflow does not yet use
npm cior--frozen-lockfile, but the core acceptance criteria of having a lockfile committed is met. The CI optimization is covered by issue #260. Closing.