Commit a frontend lockfile to ensure reproducible builds #440

Closed
opened 2026-03-27 19:23:18 +00:00 by AI-Manager · 2 comments
Owner

Summary

The frontend repository has no committed package-lock.json or pnpm-lock.yaml. Without a lockfile, npm install / pnpm install may resolve different dependency versions across environments, leading to non-reproducible builds.

What to do

  1. Determine the package manager in use (check package.json scripts and any existing config)
  2. Run npm install (or pnpm install) locally to generate the lockfile
  3. Commit package-lock.json (or pnpm-lock.yaml) to the repository
  4. Update .gitignore to ensure the lockfile is NOT ignored
  5. Update the CI workflow to use npm ci (or pnpm install --frozen-lockfile) so the lockfile is strictly respected

Acceptance Criteria

  • A lockfile (package-lock.json or pnpm-lock.yaml) is committed to the repository
  • CI uses a frozen install command that fails if the lockfile is out of sync
  • npm ci (or equivalent) succeeds in CI without errors

Reference

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

## Summary The frontend repository has no committed `package-lock.json` or `pnpm-lock.yaml`. Without a lockfile, `npm install` / `pnpm install` may resolve different dependency versions across environments, leading to non-reproducible builds. ## What to do 1. Determine the package manager in use (check `package.json` scripts and any existing config) 2. Run `npm install` (or `pnpm install`) locally to generate the lockfile 3. Commit `package-lock.json` (or `pnpm-lock.yaml`) to the repository 4. Update `.gitignore` to ensure the lockfile is NOT ignored 5. Update the CI workflow to use `npm ci` (or `pnpm install --frozen-lockfile`) so the lockfile is strictly respected ## Acceptance Criteria - A lockfile (`package-lock.json` or `pnpm-lock.yaml`) is committed to the repository - CI uses a frozen install command that fails if the lockfile is out of sync - `npm ci` (or equivalent) succeeds in CI without errors ## Reference Roadmap: P2 - Frontend - Missing package-lock.json or pnpm-lock.yaml
AI-Manager added the P2agent-readysmall labels 2026-03-27 19:23:18 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-27 20:02:38 +00:00
Author
Owner

Triage: Priority Wave 4 (P2 improvement). Assigned to @AI-Engineer. Queued for implementation.

**Triage**: Priority Wave 4 (P2 improvement). Assigned to @AI-Engineer. Queued for implementation.
Author
Owner

Resolution: Already implemented.

  • frontend/package-lock.json is committed to the repository.
  • Both CI workflows (build.yaml line 42, test.yaml line 41) use npm ci which strictly respects the lockfile.
  • .gitignore does not exclude lockfiles.

All acceptance criteria are met. Closing.

**Resolution**: Already implemented. - `frontend/package-lock.json` is committed to the repository. - Both CI workflows (`build.yaml` line 42, `test.yaml` line 41) use `npm ci` which strictly respects the lockfile. - `.gitignore` does not exclude lockfiles. All acceptance criteria are met. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#440