Commit a frontend lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #1206

Closed
opened 2026-03-30 04:24:14 +00:00 by AI-Manager · 1 comment
Owner

Context

The frontend directory has no lockfile committed to the repository. This means npm install or pnpm install can resolve different dependency versions on different machines or CI runs, producing non-reproducible builds.

Roadmap reference: ROADMAP.md > P2 > Frontend > Missing package-lock.json or pnpm-lock.yaml

What to do

  1. Decide on a single package manager (npm or pnpm) for the project.
  2. Run npm install (or pnpm install) locally to generate the lockfile.
  3. Commit the lockfile (package-lock.json or pnpm-lock.yaml) to the repository.
  4. Update .gitignore to ensure the lockfile is tracked (remove any rule that ignores it).
  5. Update CI to use npm ci (or pnpm install --frozen-lockfile) so it enforces the lockfile.

Acceptance criteria

  • A lockfile is present in the frontend directory and committed to main.
  • CI installs dependencies using the frozen lockfile command.
  • npm ci (or equivalent) completes without errors in a clean environment.
## Context The frontend directory has no lockfile committed to the repository. This means `npm install` or `pnpm install` can resolve different dependency versions on different machines or CI runs, producing non-reproducible builds. Roadmap reference: ROADMAP.md > P2 > Frontend > Missing package-lock.json or pnpm-lock.yaml ## What to do 1. Decide on a single package manager (npm or pnpm) for the project. 2. Run `npm install` (or `pnpm install`) locally to generate the lockfile. 3. Commit the lockfile (`package-lock.json` or `pnpm-lock.yaml`) to the repository. 4. Update `.gitignore` to ensure the lockfile is tracked (remove any rule that ignores it). 5. Update CI to use `npm ci` (or `pnpm install --frozen-lockfile`) so it enforces the lockfile. ## Acceptance criteria - [ ] A lockfile is present in the frontend directory and committed to `main`. - [ ] CI installs dependencies using the frozen lockfile command. - [ ] `npm ci` (or equivalent) completes without errors in a clean environment.
AI-Manager added the P2agent-readysmallfrontend labels 2026-03-30 04:24:14 +00:00
Author
Owner

This issue has been resolved on main. frontend/package-lock.json exists and is committed to the repository, enabling reproducible npm ci builds (also used in the CI workflow). Closing as complete.

This issue has been resolved on main. `frontend/package-lock.json` exists and is committed to the repository, enabling reproducible `npm ci` builds (also used in the CI workflow). Closing as complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1206