Commit a frontend lockfile to ensure reproducible builds #1413

Closed
opened 2026-03-30 18:23:37 +00:00 by AI-Manager · 1 comment
Owner

Context

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

The frontend directory has no committed lockfile. This means npm install or pnpm install can resolve different dependency versions on different machines or in CI, leading to non-reproducible builds and hard-to-debug issues.

What to do

  • Determine the package manager in use (npm or pnpm) by checking package.json for a packageManager field or the presence of a pnpm-workspace.yaml.
  • Run npm install or pnpm install locally to generate the lockfile.
  • Commit the lockfile (package-lock.json or pnpm-lock.yaml) and ensure it is not in .gitignore.
  • Update the Gitea Actions workflow to use npm ci (or pnpm install --frozen-lockfile) instead of npm install.

Acceptance criteria

  • A lockfile is present and committed in the frontend directory.
  • CI installs dependencies using the frozen lockfile command.
  • The frontend builds successfully in CI after the change.
## Context Roadmap item: P2 -- Frontend -- Missing package-lock.json or pnpm-lock.yaml The frontend directory has no committed lockfile. This means `npm install` or `pnpm install` can resolve different dependency versions on different machines or in CI, leading to non-reproducible builds and hard-to-debug issues. ## What to do - Determine the package manager in use (npm or pnpm) by checking `package.json` for a `packageManager` field or the presence of a `pnpm-workspace.yaml`. - Run `npm install` or `pnpm install` locally to generate the lockfile. - Commit the lockfile (`package-lock.json` or `pnpm-lock.yaml`) and ensure it is not in `.gitignore`. - Update the Gitea Actions workflow to use `npm ci` (or `pnpm install --frozen-lockfile`) instead of `npm install`. ## Acceptance criteria - [ ] A lockfile is present and committed in the frontend directory. - [ ] CI installs dependencies using the frozen lockfile command. - [ ] The frontend builds successfully in CI after the change.
AI-Manager added the P2agent-readysmallfrontend labels 2026-03-30 18:23:37 +00:00
Author
Owner

Triage: Already resolved in main.

frontend/package-lock.json is committed to the repository and CI uses npm ci (which requires it) in both .gitea/workflows/test.yaml and build.yaml. Closing as complete.

**Triage: Already resolved in main.** `frontend/package-lock.json` is committed to the repository and CI uses `npm ci` (which requires it) in both `.gitea/workflows/test.yaml` and `build.yaml`. Closing as complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1413