@@ -16,38 +16,38 @@ trigger: always_on
1616** Run BEFORE every commit:**
1717
1818``` bash
19- npm run preflight # Typecheck, lint, format, test, build, integration tests
19+ pnpm run preflight # Typecheck, lint, format, test, build, integration tests
2020```
2121
2222** Development:**
2323
2424``` bash
25- npm run dev # Start dev server (uses PORT from .env.local)
26- npm run build # Production build
27- npm run typecheck # TypeScript validation
28- npm run lint # ESLint check
29- npm test # Unit tests only
30- npm run test:integration # DB integration tests (requires `supabase start`)
31- npm run smoke # E2E smoke tests (Playwright)
25+ pnpm run dev # Start dev server (uses PORT from .env.local)
26+ pnpm run build # Production build
27+ pnpm run typecheck # TypeScript validation
28+ pnpm run lint # ESLint check
29+ pnpm test # Unit tests only
30+ pnpm run test:integration # DB integration tests (requires `supabase start`)
31+ pnpm run smoke # E2E smoke tests (Playwright)
3232```
3333
3434** Database Migrations (ALWAYS use migrations, never ` push ` ):**
3535
3636``` bash
3737# 1. Edit src/server/db/schema.ts
3838# 2. Generate migration:
39- npm run db:generate -- --name < descriptive-name>
39+ pnpm run db:generate -- --name < descriptive-name>
4040# 3. Apply migration:
41- npm run db:migrate
41+ pnpm run db:migrate
4242# 4. Update test schema:
43- npm run test:_generate-schema
43+ pnpm run test:_generate-schema
4444# 5. Commit schema.ts, drizzle/, and src/test/setup/schema.sql
4545```
4646
4747** Components:**
4848
4949``` bash
50- npx shadcn@latest add [component] # Add shadcn/ui components
50+ pnpm dlx shadcn@latest add [component] # Add shadcn/ui components
5151```
5252
5353## Tech Stack
@@ -72,7 +72,7 @@ npx shadcn@latest add [component] # Add shadcn/ui components
72727 . ** CSP with nonces** : Security headers required. Use ` middleware.ts ` for dynamic nonces, ` next.config.ts ` for static headers.
73738 . ** Type safety (strictest)** : No ` any ` , no ` ! ` , no unsafe ` as ` . Write type guards for validation.
74749 . ** Path aliases (` ~/ ` )** : Always use ` ~/lib/... ` instead of relative imports ` ../../../lib/... ` .
75- 10 . ** Preflight before commit** : ` npm run preflight` must pass. Pre-commit hooks enforce this.
75+ 10 . ** Preflight before commit** : ` pnpm run preflight` must pass. Pre-commit hooks enforce this.
7676
7777## Quick Code Examples
7878
@@ -267,12 +267,12 @@ For detailed guidance, use Agent Skills (if supported) or reference docs directl
267267
268268** Dev Loop** :
269269
270- | Command | When to use |
271- | ---------------------------------- | -------------------------------- |
272- | ` npm run check` | After ANY code change (~ 5s) |
273- | ` npm test -- path/to/file.test.ts` | Debug specific test |
274- | ` npm run preflight` | Before commit (full suite, ~ 60s) |
275- | ** Mobile Safari** | ** DO NOT RUN LOCALLY** (CI only) |
270+ | Command | When to use |
271+ | ----------------------------------- | -------------------------------- |
272+ | ` pnpm run check` | After ANY code change (~ 5s) |
273+ | ` pnpm test -- path/to/file.test.ts` | Debug specific test |
274+ | ` pnpm run preflight` | Before commit (full suite, ~ 60s) |
275+ | ** Mobile Safari** | ** DO NOT RUN LOCALLY** (CI only) |
276276
277277** Key Constraints** :
278278
@@ -312,7 +312,7 @@ For detailed guidance, use Agent Skills (if supported) or reference docs directl
312312## Commit Guidelines
313313
314314- ** Style** : Conventional commits (` feat: ` , ` fix: ` , ` chore: ` )
315- - ** Process** : Run ` npm run preflight` → commit → push
315+ - ** Process** : Run ` pnpm run preflight` → commit → push
316316- ** Hooks** : Husky + lint-staged enforce quality gates
317317
318318## GitHub Copilot Reviews
0 commit comments