forked from 0xWheatyz/SPARC
Commit a frontend lockfile (package-lock.json or pnpm-lock.yaml) to ensure reproducible builds #50
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 directory has no committed lockfile. Without a lockfile,
npm install(orpnpm install) resolves dependency versions at install time, meaning different developers or CI runs can end up with different transitive dependency versions. This makes builds non-reproducible and can introduce unexpected breakage.Task
package-lock.jsonfor npm,pnpm-lock.yamlfor pnpm).frontend/.gitignoreif the lockfile was previously excluded.npm ci(orpnpm install --frozen-lockfile) instead ofnpm installso the lockfile is enforced in CI.Acceptance Criteria
npm ci(or equivalent) succeeds from a cleannode_modulesstate.References
Roadmap: P2 -- Frontend -- Missing package-lock.json or pnpm-lock.yaml.
Closing: Already implemented in PR #31. frontend/package-lock.json is committed to the repository.