forked from 0xWheatyz/SPARC
Frontend: commit a lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #1323
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
The frontend has no lockfile committed to the repository. Without a lockfile,
npm install/pnpm installresolves the latest compatible version of every dependency at build time, which can cause silent breakage when a transitive dependency releases a breaking change.What to do
package-lock.jsonfor npm,pnpm-lock.yamlfor pnpm).npm ci/pnpm install --frozen-lockfileso the lockfile is respected in CI.Acceptance criteria
References
Roadmap: P2 Frontend — Missing package-lock.json or pnpm-lock.yaml.
Already resolved.
frontend/package-lock.jsonexists in the repository, ensuring reproducible builds.