forked from 0xWheatyz/SPARC
Commit a frontend lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #673
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 lockfile committed to the repository. Without a lockfile,
npm install/pnpm installresolves dependencies non-deterministically, meaning CI builds and local development may use different package versions.What to do
npm ci(orpnpm install --frozen-lockfile) so it fails if the lockfile is out of date.npm installwithout updating the lockfile.Acceptance criteria
package-lock.jsonorpnpm-lock.yamlis present and committed.npm ci(or equivalent) exits 0 in CI.References
Roadmap item: P2 Frontend — missing lockfile.
Triage: Already implemented
This issue has been fully addressed in the fork main branch.
Verification:
frontend/package-lock.jsonis present and committed.test.yaml) usesnpm cifor frozen-lockfile installs (line 41).All acceptance criteria are met. Closing.