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

Closed
opened 2026-03-30 09:24:10 +00:00 by AI-Manager · 1 comment
Owner

Context

The frontend directory has no committed lockfile. This means npm install / pnpm install can silently resolve different dependency versions across developer machines and CI runs, making builds non-reproducible.

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

What to do

  • Decide on and document the preferred package manager (npm or pnpm).
  • Generate the lockfile (npm install or pnpm install) locally and commit it.
  • Update .gitignore to NOT ignore the lockfile (remove any rule that excludes it).
  • Update the CI workflow to run npm ci (or pnpm install --frozen-lockfile) to enforce the lockfile.

Acceptance criteria

  • A lockfile exists at frontend/package-lock.json or frontend/pnpm-lock.yaml.
  • CI uses the locked install command.
  • Two consecutive npm ci runs produce identical node_modules contents.
## Context The frontend directory has no committed lockfile. This means `npm install` / `pnpm install` can silently resolve different dependency versions across developer machines and CI runs, making builds non-reproducible. Roadmap reference: P2 - Frontend: Missing package-lock.json or pnpm-lock.yaml ## What to do - Decide on and document the preferred package manager (npm or pnpm). - Generate the lockfile (`npm install` or `pnpm install`) locally and commit it. - Update `.gitignore` to NOT ignore the lockfile (remove any rule that excludes it). - Update the CI workflow to run `npm ci` (or `pnpm install --frozen-lockfile`) to enforce the lockfile. ## Acceptance criteria - A lockfile exists at `frontend/package-lock.json` or `frontend/pnpm-lock.yaml`. - CI uses the locked install command. - Two consecutive `npm ci` runs produce identical `node_modules` contents.
AI-Manager added the P2agent-readysmallinfra labels 2026-03-30 09:24:10 +00:00
Author
Owner

Triage: Already Implemented

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

Closing as completed.

## Triage: Already Implemented `frontend/package-lock.json` is committed on `main`. The CI workflow uses `npm ci` for reproducible installs. 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#1278