forked from 0xWheatyz/SPARC
Commit a frontend package lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #747
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?
Context
Roadmap reference: P2 - Missing package-lock.json or pnpm-lock.yaml
The frontend has no lockfile committed to the repository. This means
npm install/pnpm installwill resolve potentially different dependency versions on each fresh build, making builds non-reproducible and harder to debug.What to do
npm install(orpnpm install) in the frontend directory to generate the lockfilepackage-lock.jsonorpnpm-lock.yaml).gitignoreto ensure the lockfile is NOT ignoredAcceptance criteria
npm ci(orpnpm install --frozen-lockfile) succeeds in a fresh environment.gitignoreResolved.
frontend/package-lock.jsonis committed. CI workflow usesnpm cifor reproducible installs.