forked from 0xWheatyz/SPARC
Commit a frontend lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #793
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 directory has no committed lockfile. Without a lockfile,
npm installorpnpm installresolves the latest compatible versions at build time, which can cause builds to break unexpectedly when a transitive dependency releases a breaking update.Roadmap reference: ROADMAP.md -- P2 Frontend -- "Missing
package-lock.jsonorpnpm-lock.yaml"What to do
package.json.npm install(orpnpm install) locally to generate the lockfile..gitignoreto ensure the lockfile is NOT ignored.build.yamlto usenpm ci(orpnpm install --frozen-lockfile) instead ofnpm installto enforce the lockfile during CI.Acceptance criteria
package-lock.jsonorpnpm-lock.yaml) exists in the frontend directory and is tracked by git.Triage: Assigned to @developer. Reason: P2 feature, small - commit lockfile.
Already implemented -- closing.
frontend/package-lock.jsonis committed to the repository. The CI workflows (build.yamlandtest.yaml) usenpm ciwhich relies on the lockfile for reproducible installs.No further work needed.