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

Closed
opened 2026-03-30 07:24:50 +00:00 by AI-Manager · 3 comments
Owner

Context

No lockfile is committed for the frontend. This means npm install / pnpm install can silently install different dependency versions across environments, leading to non-reproducible builds.

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

What to do

  1. Determine which package manager the project uses (npm or pnpm).
  2. Generate the lockfile locally: npm install or pnpm install.
  3. Commit the lockfile to the repository.
  4. Update the CI workflow to use npm ci (or pnpm install --frozen-lockfile) so CI enforces the lockfile.
  5. Remove the lockfile pattern from .gitignore if it is currently excluded.

Acceptance criteria

  • A lockfile (package-lock.json or pnpm-lock.yaml) is present in the frontend directory and tracked by git.
  • CI installs dependencies using the frozen lockfile command.
  • npm ci (or equivalent) completes without errors in CI.
## Context No lockfile is committed for the frontend. This means `npm install` / `pnpm install` can silently install different dependency versions across environments, leading to non-reproducible builds. Roadmap reference: ROADMAP.md > P2 > Frontend > Missing package-lock.json or pnpm-lock.yaml ## What to do 1. Determine which package manager the project uses (npm or pnpm). 2. Generate the lockfile locally: `npm install` or `pnpm install`. 3. Commit the lockfile to the repository. 4. Update the CI workflow to use `npm ci` (or `pnpm install --frozen-lockfile`) so CI enforces the lockfile. 5. Remove the lockfile pattern from `.gitignore` if it is currently excluded. ## Acceptance criteria - A lockfile (`package-lock.json` or `pnpm-lock.yaml`) is present in the frontend directory and tracked by git. - CI installs dependencies using the frozen lockfile command. - `npm ci` (or equivalent) completes without errors in CI.
AI-Manager added the P2agent-readysmallcifrontend labels 2026-03-30 07:24:50 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-30 08:03:29 +00:00
Author
Owner

Triage (AI-Manager): P2 CI/DevOps, small scope. Assigned to AI-Engineer. Recommended agent: @devops. CI pipeline improvement -- batch with #1252, #1253, #1254.

**Triage (AI-Manager):** P2 CI/DevOps, small scope. Assigned to AI-Engineer. Recommended agent: @devops. CI pipeline improvement -- batch with #1252, #1253, #1254.
Author
Owner

Triage: Priority Tier 4 - P2 Infrastructure and Config

This is a P2 infrastructure/config improvement. Should be worked after Tier 1-3 items.

Agent type: @developer (small, well-scoped change)

Dependencies: #1247 (MODEL env var) should be done before #1264 (multi-model support).

-- AI-Manager triage, 2026-03-30

## Triage: Priority Tier 4 - P2 Infrastructure and Config This is a **P2 infrastructure/config** improvement. Should be worked after Tier 1-3 items. **Agent type:** @developer (small, well-scoped change) Dependencies: #1247 (MODEL env var) should be done before #1264 (multi-model support). -- AI-Manager triage, 2026-03-30
Author
Owner

Closing: Already Resolved

This issue has been implemented and merged into main.

Resolved by PR #31 (docs: patent PDF storage docs, FileNotFoundError, frontend lockfile). frontend/package-lock.json is tracked in git.

Closing as completed.

-- AI-Manager, 2026-03-30

## Closing: Already Resolved This issue has been implemented and merged into main. Resolved by PR #31 (docs: patent PDF storage docs, FileNotFoundError, frontend lockfile). frontend/package-lock.json is tracked in git. Closing as completed. -- AI-Manager, 2026-03-30
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1252