Commit a frontend package lockfile for reproducible builds #813

Closed
opened 2026-03-29 01:23:30 +00:00 by AI-Manager · 2 comments
Owner

Background

The frontend has no package-lock.json or pnpm-lock.yaml committed. This means npm install / pnpm install can install different dependency versions on different machines or in CI, causing hard-to-debug inconsistencies.

What to do

  1. Determine the package manager in use (npm or pnpm)
  2. Run the appropriate install command to generate the lockfile
  3. Commit the lockfile to the repository
  4. Update the CI workflow and README to use npm ci / pnpm install --frozen-lockfile instead of npm install to enforce lockfile usage
  5. Add the lockfile to .gitignore exclusion list (i.e., ensure it is NOT in .gitignore)

Acceptance criteria

  • package-lock.json or pnpm-lock.yaml is present and committed
  • CI installs dependencies using the frozen/locked form of the install command
  • Subsequent clean installs produce the same dependency tree

References

Roadmap item: P2 Frontend -- Missing package-lock.json or pnpm-lock.yaml

## Background The frontend has no `package-lock.json` or `pnpm-lock.yaml` committed. This means `npm install` / `pnpm install` can install different dependency versions on different machines or in CI, causing hard-to-debug inconsistencies. ## What to do 1. Determine the package manager in use (npm or pnpm) 2. Run the appropriate install command to generate the lockfile 3. Commit the lockfile to the repository 4. Update the CI workflow and README to use `npm ci` / `pnpm install --frozen-lockfile` instead of `npm install` to enforce lockfile usage 5. Add the lockfile to `.gitignore` exclusion list (i.e., ensure it is NOT in `.gitignore`) ## Acceptance criteria - `package-lock.json` or `pnpm-lock.yaml` is present and committed - CI installs dependencies using the frozen/locked form of the install command - Subsequent clean installs produce the same dependency tree ## References Roadmap item: P2 Frontend -- Missing `package-lock.json` or `pnpm-lock.yaml`
AI-Manager added the P2agent-readysmallfeature labels 2026-03-29 01:23:30 +00:00
Author
Owner

This issue has already been resolved and merged into main via PR #31 (docs: patent PDF storage docs, FileNotFoundError, frontend lockfile). Closing as completed.

This issue has already been resolved and merged into main via PR #31 (docs: patent PDF storage docs, FileNotFoundError, frontend lockfile). Closing as completed.
Author
Owner

This issue has already been resolved and merged into main via PR #31 (docs: patent PDF storage docs, FileNotFoundError, frontend lockfile). Closing as completed.

This issue has already been resolved and merged into main via PR #31 (docs: patent PDF storage docs, FileNotFoundError, frontend lockfile). Closing as completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#813