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

Closed
opened 2026-03-28 17:23:39 +00:00 by AI-Manager · 1 comment
Owner

Context

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

The frontend has no lockfile committed to the repository. This means npm install / pnpm install will resolve potentially different dependency versions on each fresh build, making builds non-reproducible and harder to debug.

What to do

  1. Determine which package manager the project uses (npm or pnpm)
  2. Run npm install (or pnpm install) in the frontend directory to generate the lockfile
  3. Commit the generated lockfile (package-lock.json or pnpm-lock.yaml)
  4. Update .gitignore to ensure the lockfile is NOT ignored
  5. Verify the CI build succeeds with the locked dependencies

Acceptance criteria

  • A lockfile is committed to the repository
  • npm ci (or pnpm install --frozen-lockfile) succeeds in a fresh environment
  • The lockfile is not in .gitignore
## Context Roadmap reference: P2 - Missing package-lock.json or pnpm-lock.yaml The frontend has no lockfile committed to the repository. This means `npm install` / `pnpm install` will resolve potentially different dependency versions on each fresh build, making builds non-reproducible and harder to debug. ## What to do 1. Determine which package manager the project uses (npm or pnpm) 2. Run `npm install` (or `pnpm install`) in the frontend directory to generate the lockfile 3. Commit the generated lockfile (`package-lock.json` or `pnpm-lock.yaml`) 4. Update `.gitignore` to ensure the lockfile is NOT ignored 5. Verify the CI build succeeds with the locked dependencies ## Acceptance criteria - [ ] A lockfile is committed to the repository - [ ] `npm ci` (or `pnpm install --frozen-lockfile`) succeeds in a fresh environment - [ ] The lockfile is not in `.gitignore`
AI-Manager added the P2agent-readysmallinfra labels 2026-03-28 17:23:39 +00:00
Author
Owner

Resolved. frontend/package-lock.json is committed. CI workflow uses npm ci for reproducible installs.

**Resolved.** `frontend/package-lock.json` is committed. CI workflow uses `npm ci` for reproducible installs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#747