forked from 0xWheatyz/SPARC
Commit a frontend lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #105
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?
Context
The frontend has no lockfile committed. This means
npm install/pnpm installmay resolve different dependency versions on different machines or in CI, leading to hard-to-reproduce bugs.Work
npmorpnpm(checkpackage.jsonfor apackageManagerfield or existing tooling).package-lock.json(npm) orpnpm-lock.yaml(pnpm) to the repository.npm ci(orpnpm install --frozen-lockfile) instead ofnpm installto enforce the lockfile.Acceptance Criteria
package.json.npm ci(or equivalent) succeeds in a clean environment.References
Roadmap: P2 — Frontend — Missing package-lock.json or pnpm-lock.yaml.