forked from 0xWheatyz/SPARC
Commit a frontend lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #344
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?
Problem
The frontend repository has no committed lockfile. This means
npm installorpnpm installresolves different dependency versions on each run, leading to non-reproducible builds and potential silent dependency drift.Work
npm install(orpnpm install) to generate the lockfile.package-lock.json(orpnpm-lock.yaml) to the repository.npm ci(orpnpm install --frozen-lockfile) instead ofnpm install.Acceptance Criteria
npm ci(or equivalent) succeeds without errors in a clean environment.Reference
Roadmap item: P2 Frontend — Missing package-lock.json or pnpm-lock.yaml.
[Repo Manager] This issue is resolved. frontend/package-lock.json is committed to the repository. CI uses npm ci for reproducible installs.