forked from 0xWheatyz/SPARC
Commit a frontend lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #1558
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. This means
npm install/pnpm installcan resolve different dependency versions on different machines or CI runs, leading to non-reproducible builds and subtle runtime differences.Roadmap reference: ROADMAP.md > P2 > Frontend > Missing package-lock.json or pnpm-lock.yaml
What to do
package.jsonscriptsor presence of.npmrc/.pnpmfile.cjs).npm installorpnpm install.npm ci(orpnpm install --frozen-lockfile) instead ofnpm installso CI enforces the lockfile..gitignoreallowlist if it is currently excluded.Acceptance criteria
package-lock.jsonorpnpm-lock.yaml) is present and committed in the frontend directory.npm ci(or equivalent) exits 0 in CI.This issue has been resolved. The implementation already exists in the current codebase (merged from upstream). Verified by repo manager during triage on 2026-04-19.