forked from 0xWheatyz/SPARC
Commit frontend lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #1108
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/directory has no lockfile committed. Runningnpm installorpnpm installresolves dependency versions at install time, producing different trees across environments and CI runs.What to do
package.jsonforpackageManagerfield or existing scripts).npm installproducespackage-lock.json;pnpm installproducespnpm-lock.yaml..gitea/workflows/build.yaml) to usenpm ci(orpnpm install --frozen-lockfile) to enforce the lockfile.Acceptance criteria
frontend/package-lock.jsonorfrontend/pnpm-lock.yaml.npm ci(or equivalent) exits 0 in CI.Roadmap reference: P2 - Frontend - Missing lockfile
This issue has been verified as already implemented in the current codebase. The acceptance criteria are met based on code review. Closing as completed.