forked from 0xWheatyz/SPARC
Frontend: commit a lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #888
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 has no lockfile committed. Without a lockfile,
npm install/pnpm installcan resolve different dependency versions on different machines, leading to non-reproducible builds and subtle bugs.Roadmap reference: P2 Frontend - missing lockfile
What to do
npm installorpnpm installlocally to generate the lockfile.package-lock.jsonorpnpm-lock.yamlto version control.npm ci(orpnpm install --frozen-lockfile) instead ofnpm install.Acceptance criteria
package.json.installruns produce identicalnode_modulesdependency trees.This issue has been resolved. The changes are already merged into main.
package-lock.json committed to frontend/. CI uses frozen lockfile install.
Closing as completed.