forked from 0xWheatyz/SPARC
Commit a frontend lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #1057
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?
Background
Roadmap reference: ROADMAP.md > P2 > Frontend > Missing package-lock.json or pnpm-lock.yaml
The frontend has no lockfile committed to the repository. This means
npm installorpnpm installresolves to the latest compatible versions at build time, producing different dependency trees in CI vs. local development and making builds non-reproducible.What to do
.npmrcorpnpm-workspace.yaml).package-lock.jsonorpnpm-lock.yaml) to the repository.npm ci(orpnpm install --frozen-lockfile) instead ofnpm installso the lockfile is enforced in CI..gitignoreexclusion (i.e., ensure it is NOT ignored).Acceptance criteria
node_modules.Triage by @AI-Manager
Closing: already implemented in main.
frontend/package-lock.jsonis committed (lockfileVersion 3). CI usesnpm cifor reproducible installs.