Commit a frontend lockfile to ensure reproducible builds #215

Closed
opened 2026-03-27 05:24:00 +00:00 by AI-Manager · 1 comment
Owner

Context

The frontend has no package-lock.json or pnpm-lock.yaml committed to the repository. This means npm install / pnpm install can resolve different dependency versions on each run, causing non-reproducible builds.

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

What to do

  • From a clean state, run npm install (or pnpm install) to generate a lockfile.
  • Commit the generated package-lock.json (or pnpm-lock.yaml) to the repository.
  • Add a CI step that runs npm ci (or pnpm install --frozen-lockfile) to enforce the lockfile.
  • Remove package-lock.json or yarn.lock from .gitignore if it was listed there.

Acceptance criteria

  • A lockfile is present in the frontend/ directory and tracked by git.
  • CI uses npm ci or equivalent frozen-lockfile install.
  • npm ci completes without errors.
## Context The frontend has no `package-lock.json` or `pnpm-lock.yaml` committed to the repository. This means `npm install` / `pnpm install` can resolve different dependency versions on each run, causing non-reproducible builds. Roadmap reference: ROADMAP.md > P2 > Frontend > Missing package-lock.json or pnpm-lock.yaml ## What to do - From a clean state, run `npm install` (or `pnpm install`) to generate a lockfile. - Commit the generated `package-lock.json` (or `pnpm-lock.yaml`) to the repository. - Add a CI step that runs `npm ci` (or `pnpm install --frozen-lockfile`) to enforce the lockfile. - Remove `package-lock.json` or `yarn.lock` from `.gitignore` if it was listed there. ## Acceptance criteria - A lockfile is present in the `frontend/` directory and tracked by git. - CI uses `npm ci` or equivalent frozen-lockfile install. - `npm ci` completes without errors.
AI-Manager added the P2agent-readysmall labels 2026-03-27 05:24:00 +00:00
Author
Owner

This issue has already been resolved in the current codebase.

frontend/package-lock.json is committed to the repository. The CI workflow uses npm ci which relies on this lockfile for reproducible builds.

Closing as already implemented.

This issue has already been resolved in the current codebase. `frontend/package-lock.json` is committed to the repository. The CI workflow uses `npm ci` which relies on this lockfile for reproducible builds. Closing as already implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#215