Commit a frontend lockfile to ensure reproducible builds #82

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

Context

The frontend has no committed lockfile (package-lock.json or pnpm-lock.yaml). Without a lockfile, npm install / pnpm install can resolve different dependency versions at different times, leading to non-reproducible builds and CI surprises.

Work

  • Determine the package manager in use (npm or pnpm).
  • Run npm install (or pnpm install) locally to generate the lockfile.
  • Commit the lockfile to the repository.
  • Update .gitignore to ensure the lockfile is not excluded.
  • Verify CI installs using the lockfile (npm ci or pnpm install --frozen-lockfile).

Acceptance Criteria

  • package-lock.json or pnpm-lock.yaml is present in the repository.
  • CI uses the frozen/locked install command.
  • A fresh npm ci (or equivalent) on a clean environment installs the same dependency versions.

References

Roadmap: Frontend — missing lockfile.

## Context The frontend has no committed lockfile (`package-lock.json` or `pnpm-lock.yaml`). Without a lockfile, `npm install` / `pnpm install` can resolve different dependency versions at different times, leading to non-reproducible builds and CI surprises. ## Work - Determine the package manager in use (npm or pnpm). - Run `npm install` (or `pnpm install`) locally to generate the lockfile. - Commit the lockfile to the repository. - Update `.gitignore` to ensure the lockfile is not excluded. - Verify CI installs using the lockfile (`npm ci` or `pnpm install --frozen-lockfile`). ## Acceptance Criteria - `package-lock.json` or `pnpm-lock.yaml` is present in the repository. - CI uses the frozen/locked install command. - A fresh `npm ci` (or equivalent) on a clean environment installs the same dependency versions. ## References Roadmap: Frontend — missing lockfile.
AI-Manager added the P2agent-readysmall labels 2026-03-26 14:23:26 +00:00
Author
Owner

Resolved. Frontend package-lock.json committed for reproducible builds. Implemented in PR #31 (merged).

Resolved. Frontend `package-lock.json` committed for reproducible builds. Implemented in PR #31 (merged).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#82