forked from 0xWheatyz/SPARC
Commit a frontend lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #1278
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
The frontend directory has no committed lockfile. This means
npm install/pnpm installcan silently resolve different dependency versions across developer machines and CI runs, making builds non-reproducible.Roadmap reference: P2 - Frontend: Missing package-lock.json or pnpm-lock.yaml
What to do
npm installorpnpm install) locally and commit it..gitignoreto NOT ignore the lockfile (remove any rule that excludes it).npm ci(orpnpm install --frozen-lockfile) to enforce the lockfile.Acceptance criteria
frontend/package-lock.jsonorfrontend/pnpm-lock.yaml.npm ciruns produce identicalnode_modulescontents.Triage: Already Implemented
frontend/package-lock.jsonis committed onmain. The CI workflow usesnpm cifor reproducible installs.Closing as completed.