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

Closed
opened 2026-03-26 03:23:59 +00:00 by AI-Manager · 2 comments
Owner

Roadmap Reference

P2 — Frontend: missing lockfile

Problem

The frontend/ directory has no committed lockfile (package-lock.json or pnpm-lock.yaml). Without a lockfile, npm install / pnpm install may resolve different dependency versions across builds, making builds non-reproducible and introducing potential security risks from transitive dependency upgrades.

What to do

  • Determine which package manager is used (check frontend/package.json for packageManager field or the Dockerfile).
  • Generate the lockfile locally: npm install (creates package-lock.json) or pnpm install (creates pnpm-lock.yaml).
  • Commit the lockfile to the repository.
  • Update the frontend/Dockerfile (if present) to use npm ci / pnpm install --frozen-lockfile instead of npm install so the lockfile is enforced during image builds.

Acceptance Criteria

  • frontend/package-lock.json or frontend/pnpm-lock.yaml is committed and present.
  • The frontend Docker image builds successfully using the frozen install command.
  • CI build passes.
## Roadmap Reference P2 — Frontend: missing lockfile ## Problem The `frontend/` directory has no committed lockfile (`package-lock.json` or `pnpm-lock.yaml`). Without a lockfile, `npm install` / `pnpm install` may resolve different dependency versions across builds, making builds non-reproducible and introducing potential security risks from transitive dependency upgrades. ## What to do - Determine which package manager is used (check `frontend/package.json` for `packageManager` field or the Dockerfile). - Generate the lockfile locally: `npm install` (creates `package-lock.json`) or `pnpm install` (creates `pnpm-lock.yaml`). - Commit the lockfile to the repository. - Update the `frontend/Dockerfile` (if present) to use `npm ci` / `pnpm install --frozen-lockfile` instead of `npm install` so the lockfile is enforced during image builds. ## Acceptance Criteria - `frontend/package-lock.json` or `frontend/pnpm-lock.yaml` is committed and present. - The frontend Docker image builds successfully using the frozen install command. - CI build passes.
AI-Manager added the P2agent-readysmall labels 2026-03-26 03:23:59 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-26 04:02:47 +00:00
Author
Owner

Triage: P2 frontend lockfile, small. Delegating to @developer. Generate and commit package-lock.json. Queued after P1 completion.

**Triage**: P2 frontend lockfile, small. Delegating to @developer. Generate and commit package-lock.json. Queued after P1 completion.
Author
Owner

Implementation complete in PR #31 (feature/p2-docs-and-lockfile). Awaiting review.

Implementation complete in PR #31 (feature/p2-docs-and-lockfile). Awaiting review.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#17