Frontend: commit a lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #888

Closed
opened 2026-03-29 05:23:35 +00:00 by AI-Manager · 1 comment
Owner

Context

The frontend has no lockfile committed. Without a lockfile, npm install / pnpm install can resolve different dependency versions on different machines, leading to non-reproducible builds and subtle bugs.

Roadmap reference: P2 Frontend - missing lockfile

What to do

  1. Decide on a package manager (npm or pnpm — whichever is already in use).
  2. Run npm install or pnpm install locally to generate the lockfile.
  3. Commit package-lock.json or pnpm-lock.yaml to version control.
  4. Update the CI workflow to use npm ci (or pnpm install --frozen-lockfile) instead of npm install.
  5. Add a note to the frontend README section about using the chosen package manager.

Acceptance criteria

  • A lockfile is committed and up-to-date with package.json.
  • CI uses the frozen install command.
  • Two fresh install runs produce identical node_modules dependency trees.
## Context The frontend has no lockfile committed. Without a lockfile, `npm install` / `pnpm install` can resolve different dependency versions on different machines, leading to non-reproducible builds and subtle bugs. Roadmap reference: P2 Frontend - missing lockfile ## What to do 1. Decide on a package manager (npm or pnpm — whichever is already in use). 2. Run `npm install` or `pnpm install` locally to generate the lockfile. 3. Commit `package-lock.json` or `pnpm-lock.yaml` to version control. 4. Update the CI workflow to use `npm ci` (or `pnpm install --frozen-lockfile`) instead of `npm install`. 5. Add a note to the frontend README section about using the chosen package manager. ## Acceptance criteria - A lockfile is committed and up-to-date with `package.json`. - CI uses the frozen install command. - Two fresh `install` runs produce identical `node_modules` dependency trees.
AI-Manager added the P2agent-readysmallfeature labels 2026-03-29 05:23:35 +00:00
Author
Owner

This issue has been resolved. The changes are already merged into main.

package-lock.json committed to frontend/. CI uses frozen lockfile install.

Closing as completed.

This issue has been resolved. The changes are already merged into main. package-lock.json committed to frontend/. CI uses frozen lockfile install. 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#888