File tree Expand file tree Collapse file tree
invokeai/frontend/web/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Agent Instructions
2+
3+ ## Package Management
4+
5+ This project uses ** pnpm** exclusively for package management in the frontend (` invokeai/frontend/web/ ` ).
6+
7+ - ✅ Use ` pnpm ` commands (e.g., ` pnpm install ` , ` pnpm run ` )
8+ - ❌ Never use ` npm ` or ` yarn ` commands
9+ - ❌ Never suggest creating or using ` package-lock.json ` or ` yarn.lock `
10+ - ✅ The lock file is ` pnpm-lock.yaml `
11+
12+ Use the following pnpm commands for typical operations:
13+
14+ - pnpm -C invokeai/frontend/web install
15+ - pnpm -C invokeai/frontend/web build
16+ - pnpm -C invokeai/frontend/web lint: tsc
17+ - pnpm -C invokeai/frontend/web lint: dpdm
18+ - pnpm -C invokeai/frontend/web lint: eslint
19+ - pnpm -C invokeai/frontend/web lint: prettier
20+
21+ ## Project Structure
22+
23+ - Backend: Python in ` invokeai/ `
24+ - Frontend: TypeScript/React in ` invokeai/frontend/web/ ` (uses pnpm)
Original file line number Diff line number Diff line change 4141 steps :
4242 - uses : actions/checkout@v4
4343
44+ - name : Fail if package-lock.json is added/modified (pnpm only)
45+ shell : bash
46+ working-directory : .
47+ run : |
48+ set -euo pipefail
49+ git fetch --no-tags --prune --depth=1 origin "${{ github.base_ref }}"
50+ if git diff --name-only "origin/${{ github.base_ref }}...HEAD" | grep -E '(^|/)package-lock\.json$'; then
51+ echo "::error::package-lock.json was added or modified. This repo uses pnpm only."
52+ exit 1
53+ fi
54+
4455 - name : check for changed frontend files
4556 if : ${{ inputs.always_run != true }}
4657 id : changed-files
Original file line number Diff line number Diff line change 11{
2- "type" : " module"
2+ "type" : " module" ,
3+ "packageManager" : " pnpm@10.12.4"
34}
You can’t perform that action at this time.
0 commit comments