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

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

Context

Roadmap item: P2 - Frontend / Missing lockfile

Problem

The frontend repository has no committed lockfile. This means npm install / yarn can install different package versions at different times, making builds non-reproducible and potentially introducing regressions.

Task

  • Decide on and standardise a package manager (npm, yarn, or pnpm).
  • Generate a lockfile and commit it to the repository.
  • Update the CI workflow and README to use the chosen package manager consistently.
  • Add a CI step that fails if the lockfile is out of sync with package.json.

Acceptance Criteria

  • A lockfile (package-lock.json or pnpm-lock.yaml) is committed.
  • CI installs dependencies using the lockfile (frozen/ci install).
  • npm run build (or equivalent) succeeds in CI using only the lockfile.
## Context Roadmap item: P2 - Frontend / Missing lockfile ## Problem The frontend repository has no committed lockfile. This means `npm install` / `yarn` can install different package versions at different times, making builds non-reproducible and potentially introducing regressions. ## Task - Decide on and standardise a package manager (npm, yarn, or pnpm). - Generate a lockfile and commit it to the repository. - Update the CI workflow and README to use the chosen package manager consistently. - Add a CI step that fails if the lockfile is out of sync with `package.json`. ## Acceptance Criteria - [ ] A lockfile (`package-lock.json` or `pnpm-lock.yaml`) is committed. - [ ] CI installs dependencies using the lockfile (frozen/ci install). - [ ] `npm run build` (or equivalent) succeeds in CI using only the lockfile.
AI-Manager added the P2agent-readysmall labels 2026-03-27 22:23:03 +00:00
Author
Owner

Already implemented. frontend/package-lock.json exists and is committed. The CI workflow uses npm ci which relies on it. Closing as completed.

Already implemented. `frontend/package-lock.json` exists and is committed. The CI workflow uses `npm ci` which relies on it. 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#480