@postxl/generators 6.1.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/backend-actions/generators/dispatcher-service.generator.js +6 -1
  2. package/dist/backend-actions/generators/dispatcher-service.generator.js.map +1 -1
  3. package/dist/backend-core/backend.generator.js +1 -1
  4. package/dist/backend-core/backend.generator.js.map +1 -1
  5. package/dist/backend-core/template/libs/xlport/README.md +5 -5
  6. package/dist/backend-excel-io/template/README.md +3 -3
  7. package/dist/backend-repositories/generators/model-repository.generator.js +11 -6
  8. package/dist/backend-repositories/generators/model-repository.generator.js.map +1 -1
  9. package/dist/base/base.generator.js +6 -16
  10. package/dist/base/base.generator.js.map +1 -1
  11. package/dist/base/generators/claudemd.generator.js +21 -1
  12. package/dist/base/generators/claudemd.generator.js.map +1 -1
  13. package/dist/base/template/.claude/commands/README.md +10 -1
  14. package/dist/base/template/.claude/commands/browser-observe.md +72 -72
  15. package/dist/base/template/.claude/commands/fix-ci.md +12 -7
  16. package/dist/base/template/.oxfmtrc.json +17 -0
  17. package/dist/base/template/.oxlintrc.json +1130 -0
  18. package/dist/base/template/.vscode/extensions.json +2 -4
  19. package/dist/base/template/.vscode/settings.json +7 -5
  20. package/dist/e2e/e2e.generator.js +2 -0
  21. package/dist/e2e/e2e.generator.js.map +1 -1
  22. package/dist/e2e/template/.claude/commands/run-e2e-tests.md +7 -1
  23. package/dist/e2e/template/e2e/package.json +1 -1
  24. package/dist/e2e/template/e2e/specs/example.spec.ts +2 -2
  25. package/dist/frontend-admin/generators/admin-global-actions.generator.js +3 -0
  26. package/dist/frontend-admin/generators/admin-global-actions.generator.js.map +1 -1
  27. package/dist/frontend-admin/generators/model-admin-page.generator.js +14 -7
  28. package/dist/frontend-admin/generators/model-admin-page.generator.js.map +1 -1
  29. package/dist/frontend-core/frontend.generator.js +5 -11
  30. package/dist/frontend-core/frontend.generator.js.map +1 -1
  31. package/dist/frontend-core/template/README.md +45 -10
  32. package/dist/frontend-core/template/src/components/ui/application-header/application-header.tsx +1 -1
  33. package/dist/frontend-core/template/src/stories/Configure.mdx +34 -26
  34. package/dist/frontend-core/template/vite.config.ts +2 -1
  35. package/package.json +4 -4
  36. package/dist/base/template/.prettierignore +0 -6
  37. package/dist/base/template/eslint.config.mjs +0 -207
  38. package/dist/base/template/prettier.config.js +0 -10
  39. package/dist/frontend-core/template/.prettierignore +0 -4
  40. package/dist/frontend-core/template/vitest.shims.d.ts +0 -1
@@ -17,6 +17,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
17
17
  **${projectName}** is a full-stack TypeScript application generated by PostXL. ${schema.description ? `${schema.description}` : ''}
18
18
 
19
19
  **Key Technologies:**
20
+
20
21
  - **Backend**: NestJS with Fastify, Prisma ORM, tRPC
21
22
  - **Frontend**: Vite, React 19, TanStack Router/Query/Form/Table, Tailwind CSS
22
23
  - **Testing**: Jest (backend), Vitest (frontend), Playwright (E2E)
@@ -214,6 +215,7 @@ export class UserService {
214
215
  \`\`\`
215
216
 
216
217
  **How it works:**
218
+
217
219
  1. Mark custom code blocks with \`// @custom-start\` and \`// @custom-end\` comments
218
220
  2. Optionally add a name: \`// @custom-start:myFeature\` and \`// @custom-end:myFeature\`
219
221
  3. When the generator runs and detects changes:
@@ -222,6 +224,7 @@ export class UserService {
222
224
  - Only actual conflicts (outside custom blocks) will show merge conflict markers
223
225
 
224
226
  **Supported marker styles:**
227
+
225
228
  \`\`\`typescript
226
229
  // Line comment style
227
230
  // @custom-start:featureName
@@ -235,10 +238,11 @@ export class UserService {
235
238
  \`\`\`
236
239
 
237
240
  **Tips:**
241
+
238
242
  - Place custom blocks after identifiable "anchor" lines (like method signatures or imports)
239
243
  - If a custom block cannot be automatically placed, it will appear at the end with a warning
240
244
  - Names are optional but help with clarity when you have multiple custom blocks
241
- - **Do not wrap \`import\` statements in a custom block.** \`eslint --fix\` (via \`simple-import-sort\`) treats \`// @custom-start\` as trivia belonging to the import below it, so a lint run after generation can hoist your imports out of the block and orphan the markers, or sort an unrelated generated import _into_ it - which the next \`generate\` then adopts as yours. Both are silent; eslint exits 0. Keep the \`import\` at the top of the file outside any block, and only the code using it inside.
245
+ - **Do not wrap \`import\` statements in a custom block.** \`oxlint --fix\` (via the \`simple-import-sort\` plugin) treats \`// @custom-start\` as trivia belonging to the import below it, so a lint run after generation can hoist your imports out of the block and orphan the markers, or sort an unrelated generated import _into_ it - which the next \`generate\` then adopts as yours. Both are silent; the linter exits 0. Keep the \`import\` at the top of the file outside any block, and only the code using it inside.
242
246
 
243
247
  ## Generated File Management
244
248
 
@@ -250,6 +254,7 @@ export class UserService {
250
254
  ## Schema-Driven Development
251
255
 
252
256
  The project is defined in \`postxl-schema.json\` which specifies:
257
+
253
258
  - **Models**: Data models with fields, relationships, and validation
254
259
  - **Enums**: Enumerated types
255
260
  - **Actions**: Standard and custom business logic actions
@@ -265,6 +270,7 @@ merges them with any inline definitions at parse time. You can mix inline and
265
270
  per-file definitions freely.
266
271
 
267
272
  To modify the application:
273
+
268
274
  1. Edit \`postxl-schema.json\` (or the matching file under \`schema/\`) to add/modify models
269
275
  2. Run \`pnpm run generate\` to regenerate code
270
276
  3. Create new migration if needed: \`pnpm prisma migrate dev\`
@@ -273,10 +279,12 @@ To modify the application:
273
279
  ## Environment Configuration
274
280
 
275
281
  The project uses \`.env\` files for configuration:
282
+
276
283
  - \`/.env\` - Root environment variables
277
284
  - \`/backend/apps/api/.env\` - Backend-specific configuration
278
285
 
279
286
  Copy \`.env.example\` files to \`.env\` if not done by setup:
287
+
280
288
  \`\`\`bash
281
289
  cp .env.example .env
282
290
  cp backend/apps/api/.env.example backend/apps/api/.env
@@ -288,6 +296,7 @@ ${isWorkspaceProject
288
296
  ? `**IMPORTANT**: This project uses the shared \`@postxl/ui-components\` package.
289
297
 
290
298
  When creating UI elements:
299
+
291
300
  1. **Always** import components from \`@postxl/ui-components\`
292
301
  2. **Never** create custom button, input, modal, card, or other generic UI components
293
302
  3. Use Tailwind classes with \`className\` prop for custom styling
@@ -312,6 +321,7 @@ For component reference, see \`/packages/ui-components/CLAUDE.md\` in the PostXL
312
321
  - **Visual testing**: Storybook for component development
313
322
 
314
323
  Run tests:
324
+
315
325
  \`\`\`bash
316
326
  # Backend tests
317
327
  cd backend && pnpm run test:jest
@@ -326,34 +336,44 @@ cd e2e && pnpm run e2e:stateless
326
336
  ## Troubleshooting
327
337
 
328
338
  ### Prisma Errors
339
+
329
340
  \`\`\`
330
341
  The table 'X' does not exist in the current database.
331
342
  \`\`\`
343
+
332
344
  **Solution**: Run \`pnpm prisma migrate dev\` to apply migrations.
333
345
 
334
346
  ### Backend Fails to Start
347
+
335
348
  \`\`\`
336
349
  Zod validation error for missing config values
337
350
  \`\`\`
351
+
338
352
  **Solution**: Ensure \`.env\` file exists in \`backend/apps/api/\`. Copy from \`.env.example\`.
339
353
 
340
354
  ### Type Errors After Generation
355
+
341
356
  **Solution**: Run \`pnpm run build\` from project root to rebuild dependencies.
342
357
 
343
358
  ### Generated File Conflicts
359
+
344
360
  If you see merge conflict markers (\`<<<<<<<\`, \`=======\`, \`>>>>>>>\`) in generated files:
361
+
345
362
  \`\`\`bash
346
363
  pnpm run generate -f -p 'path/to/file.ts'
347
364
  \`\`\`
348
365
 
349
366
  ### Docker Issues
367
+
350
368
  Ensure Docker is running and ports are available:
369
+
351
370
  \`\`\`bash
352
371
  docker compose down
353
372
  docker compose up -d db keycloak
354
373
  \`\`\`
355
374
 
356
375
  ### Node Version Issues
376
+
357
377
  This project requires pnpm 10.14+. pnpm automatically manages Node.js version via \`devEngines.runtime\` in package.json.
358
378
 
359
379
  ## Best Practices
@@ -1 +1 @@
1
- {"version":3,"file":"claudemd.generator.js","sourceRoot":"","sources":["../../../src/base/generators/claudemd.generator.ts"],"names":[],"mappings":";;;AAOA;;;GAGG;AACH,0BAAiC,MAA+B;IAC9D,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAA;IAC7C,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,CAAA;IAE9C,OAAO;;;;;;IAML,WAAW,kEAAkE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE;;;;;;;;;;;;;EAahI,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkQX,kBAAkB;QAChB,CAAC,CAAC;;;;;;;;;;;;;;;;2FAgBqF;QACvF,CAAC,CAAC,qGACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiEC,CAAA;AACD,CAAC"}
1
+ {"version":3,"file":"claudemd.generator.js","sourceRoot":"","sources":["../../../src/base/generators/claudemd.generator.ts"],"names":[],"mappings":";;;AAOA;;;GAGG;AACH,0BAAiC,MAA+B;IAC9D,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAA;IAC7C,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,CAAA;IAE9C,OAAO;;;;;;IAML,WAAW,kEAAkE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE;;;;;;;;;;;;;;EAchI,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyQX,kBAAkB;QAChB,CAAC,CAAC;;;;;;;;;;;;;;;;;2FAiBqF;QACvF,CAAC,CAAC,qGACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4EC,CAAA;AACD,CAAC"}
@@ -5,31 +5,39 @@ This directory contains custom command documentation that Claude Code can refere
5
5
  ## Available Commands
6
6
 
7
7
  ### 1. Run E2E Tests (`run-e2e-tests.md`)
8
+
8
9
  Comprehensive instructions for running end-to-end tests using Playwright.
9
10
 
10
11
  **Trigger phrases:**
12
+
11
13
  - "run e2e tests"
12
14
  - "run end-to-end tests"
13
15
  - "execute e2e test suite"
14
16
 
15
17
  ### 2. Fix CI (`fix-ci.md`)
18
+
16
19
  Guidance for troubleshooting and fixing CI/CD pipeline issues.
17
20
 
18
21
  **Trigger phrases:**
22
+
19
23
  - "fix ci"
20
24
  - "help with continuous integration"
21
25
 
22
26
  ### 3. Browser Observe (`browser-observe.md`)
27
+
23
28
  Instructions for browser-based testing and observation workflows.
24
29
 
25
30
  **Trigger phrases:**
31
+
26
32
  - "observe browser"
27
33
  - "start browser observation"
28
34
 
29
35
  ### 4. Prepare E2E Tests (`prepare-e2e-tests.md`)
36
+
30
37
  Analyzes code changes, determines needed E2E test coverage, writes test specs, and runs them to verify they pass.
31
38
 
32
39
  **Trigger phrases:**
40
+
33
41
  - "prepare e2e tests"
34
42
  - "write e2e tests for my changes"
35
43
  - "add e2e test coverage"
@@ -37,6 +45,7 @@ Analyzes code changes, determines needed E2E test coverage, writes test specs, a
37
45
  ## How It Works
38
46
 
39
47
  When you ask Claude to perform one of these tasks, it will:
48
+
40
49
  1. Automatically detect the request based on your natural language
41
50
  2. Reference the appropriate command file
42
51
  3. Follow the detailed instructions in that file
@@ -54,7 +63,7 @@ To add a new custom command:
54
63
  - Common issues and troubleshooting
55
64
  - Examples
56
65
  3. Update this README to list the new command
57
- 5. Commit all files to version control
66
+ 4. Commit all files to version control
58
67
 
59
68
  ## Best Practices
60
69
 
@@ -53,48 +53,48 @@ Check the e2e `.env.example` or `playwright.config.ts` for:
53
53
  Create or update a test file (e.g., `specs/browser-helper.spec.ts`):
54
54
 
55
55
  ```typescript
56
- import { test, expect } from "@playwright/test";
56
+ import { test, expect } from '@playwright/test'
57
57
  // Or use project fixtures if available:
58
58
  // import { expect, test } from '../fixtures/test-fixtures'
59
59
 
60
- test.describe("Browser Helper", () => {
61
- test("[DESCRIBE WHAT YOU ARE DOING]", async ({ page }) => {
62
- const consoleErrors: string[] = [];
63
- const consoleLogs: string[] = [];
64
-
65
- page.on("console", (msg) => {
66
- const text = `[${msg.type()}] ${msg.text()}`;
67
- consoleLogs.push(text);
68
- if (msg.type() === "error") consoleErrors.push(text);
69
- });
70
- page.on("pageerror", (error) => {
71
- consoleErrors.push(`[pageerror] ${error.message}`);
72
- });
73
-
74
- // Navigate
75
- console.log("Navigating to [URL]...");
76
- await page.goto("[URL]");
77
- await page.waitForTimeout(500);
78
-
79
- // Screenshot - Initial State
80
- await page.screenshot({ path: "test-results/observe-01-initial.png", fullPage: true });
81
- console.log("Screenshot: observe-01-initial.png");
82
-
83
- // [ADD OBSERVATIONS/INTERACTIONS HERE]
84
-
85
- // Report
86
- console.log("\nConsole Logs (last 30):");
87
- consoleLogs.slice(-30).forEach((log) => console.log(` ${log}`));
88
- if (consoleErrors.length > 0) {
89
- console.log("\nConsole Errors:");
90
- consoleErrors.forEach((err) => console.log(` ${err}`));
91
- } else {
92
- console.log("\nNo console errors!");
93
- }
94
-
95
- expect(true).toBe(true);
96
- });
97
- });
60
+ test.describe('Browser Helper', () => {
61
+ test('[DESCRIBE WHAT YOU ARE DOING]', async ({ page }) => {
62
+ const consoleErrors: string[] = []
63
+ const consoleLogs: string[] = []
64
+
65
+ page.on('console', (msg) => {
66
+ const text = `[${msg.type()}] ${msg.text()}`
67
+ consoleLogs.push(text)
68
+ if (msg.type() === 'error') consoleErrors.push(text)
69
+ })
70
+ page.on('pageerror', (error) => {
71
+ consoleErrors.push(`[pageerror] ${error.message}`)
72
+ })
73
+
74
+ // Navigate
75
+ console.log('Navigating to [URL]...')
76
+ await page.goto('[URL]')
77
+ await page.waitForTimeout(500)
78
+
79
+ // Screenshot - Initial State
80
+ await page.screenshot({ path: 'test-results/observe-01-initial.png', fullPage: true })
81
+ console.log('Screenshot: observe-01-initial.png')
82
+
83
+ // [ADD OBSERVATIONS/INTERACTIONS HERE]
84
+
85
+ // Report
86
+ console.log('\nConsole Logs (last 30):')
87
+ consoleLogs.slice(-30).forEach((log) => console.log(` ${log}`))
88
+ if (consoleErrors.length > 0) {
89
+ console.log('\nConsole Errors:')
90
+ consoleErrors.forEach((err) => console.log(` ${err}`))
91
+ } else {
92
+ console.log('\nNo console errors!')
93
+ }
94
+
95
+ expect(true).toBe(true)
96
+ })
97
+ })
98
98
  ```
99
99
 
100
100
  ### Step 4: Run the Test
@@ -142,78 +142,78 @@ Use the Read tool on PNG files in `test-results/observe-*.png`
142
142
  **Navigate and observe:**
143
143
 
144
144
  ```typescript
145
- await page.goto("/some/page");
146
- await page.waitForTimeout(500);
147
- await page.screenshot({ path: "test-results/observe-01-page.png", fullPage: true });
145
+ await page.goto('/some/page')
146
+ await page.waitForTimeout(500)
147
+ await page.screenshot({ path: 'test-results/observe-01-page.png', fullPage: true })
148
148
  ```
149
149
 
150
150
  **Click and observe result:**
151
151
 
152
152
  ```typescript
153
- await page.getByText("Button Text").click();
154
- await page.waitForTimeout(300);
155
- await page.screenshot({ path: "test-results/observe-02-after-click.png", fullPage: true });
153
+ await page.getByText('Button Text').click()
154
+ await page.waitForTimeout(300)
155
+ await page.screenshot({ path: 'test-results/observe-02-after-click.png', fullPage: true })
156
156
  ```
157
157
 
158
158
  **Double-click to edit (DataGrid/spreadsheet):**
159
159
 
160
160
  ```typescript
161
- const cell = page.getByText("Cell Value").first();
162
- await cell.dblclick();
163
- await page.waitForTimeout(300);
164
- const input = page.locator("input:focus");
161
+ const cell = page.getByText('Cell Value').first()
162
+ await cell.dblclick()
163
+ await page.waitForTimeout(300)
164
+ const input = page.locator('input:focus')
165
165
  if (await input.isVisible({ timeout: 1000 }).catch(() => false)) {
166
- await input.fill("New Value");
167
- await input.press("Enter");
166
+ await input.fill('New Value')
167
+ await input.press('Enter')
168
168
  }
169
- await page.screenshot({ path: "test-results/observe-03-after-edit.png", fullPage: true });
169
+ await page.screenshot({ path: 'test-results/observe-03-after-edit.png', fullPage: true })
170
170
  ```
171
171
 
172
172
  **Fill a form:**
173
173
 
174
174
  ```typescript
175
- await page.locator('input[name="fieldName"]').fill("value");
176
- await page.getByLabel("Field Label").fill("value");
175
+ await page.locator('input[name="fieldName"]').fill('value')
176
+ await page.getByLabel('Field Label').fill('value')
177
177
  ```
178
178
 
179
179
  **Select dropdown:**
180
180
 
181
181
  ```typescript
182
- await page.getByRole("combobox").click();
183
- await page.getByRole("option", { name: "Option Name" }).click();
182
+ await page.getByRole('combobox').click()
183
+ await page.getByRole('option', { name: 'Option Name' }).click()
184
184
  ```
185
185
 
186
186
  **Walk through a user flow:**
187
187
 
188
188
  ```typescript
189
189
  // Step 1: Start page
190
- await page.goto("/start");
191
- await page.screenshot({ path: "test-results/flow-01-start.png", fullPage: true });
190
+ await page.goto('/start')
191
+ await page.screenshot({ path: 'test-results/flow-01-start.png', fullPage: true })
192
192
 
193
193
  // Step 2: Click action
194
- await page.getByText("Next").click();
195
- await page.waitForTimeout(500);
196
- await page.screenshot({ path: "test-results/flow-02-step2.png", fullPage: true });
194
+ await page.getByText('Next').click()
195
+ await page.waitForTimeout(500)
196
+ await page.screenshot({ path: 'test-results/flow-02-step2.png', fullPage: true })
197
197
 
198
198
  // Step 3: Fill form
199
- await page.getByLabel("Name").fill("Test");
200
- await page.screenshot({ path: "test-results/flow-03-filled.png", fullPage: true });
199
+ await page.getByLabel('Name').fill('Test')
200
+ await page.screenshot({ path: 'test-results/flow-03-filled.png', fullPage: true })
201
201
 
202
202
  // Step 4: Submit
203
- await page.getByText("Submit").click();
204
- await page.waitForTimeout(1000);
205
- await page.screenshot({ path: "test-results/flow-04-result.png", fullPage: true });
203
+ await page.getByText('Submit').click()
204
+ await page.waitForTimeout(1000)
205
+ await page.screenshot({ path: 'test-results/flow-04-result.png', fullPage: true })
206
206
  ```
207
207
 
208
208
  **Check focused element:**
209
209
 
210
210
  ```typescript
211
211
  const focused = await page.evaluate(() => ({
212
- tag: document.activeElement?.tagName,
213
- type: (document.activeElement as HTMLInputElement)?.type,
214
- class: document.activeElement?.className,
215
- }));
216
- console.log("Focused:", JSON.stringify(focused));
212
+ tag: document.activeElement?.tagName,
213
+ type: (document.activeElement as HTMLInputElement)?.type,
214
+ class: document.activeElement?.className,
215
+ }))
216
+ console.log('Focused:', JSON.stringify(focused))
217
217
  ```
218
218
 
219
219
  ### DO NOT
@@ -225,4 +225,4 @@ console.log("Focused:", JSON.stringify(focused));
225
225
 
226
226
  ### DO
227
227
 
228
- - only use /e2e/test-results folder for screenshots and other results
228
+ - only use /e2e/test-results folder for screenshots and other results
@@ -25,8 +25,8 @@ First, carefully read the error logs to identify the type of failure:
25
25
  - **Build failures**: TypeScript compilation errors, missing dependencies
26
26
  - **Type check failures**: Type errors from `pnpm run test:types`
27
27
  - **Test failures**: Jest or Vitest test failures
28
- - **Linting failures**: ESLint errors
29
- - **Prettier failures**: Code formatting issues
28
+ - **Linting failures**: Oxlint errors
29
+ - **Formatting failures**: Oxfmt (`format:check`) issues
30
30
  - **Coverage failures**: Insufficient test coverage
31
31
 
32
32
  ### 2. Check Node Version
@@ -39,10 +39,10 @@ If you see Node version warnings (e.g., `WARN Unsupported engine: wanted: {"node
39
39
 
40
40
  Based on the failure type, apply the appropriate fixes:
41
41
 
42
- #### Prettier Failures
42
+ #### Formatting Failures
43
43
 
44
44
  ```bash
45
- pnpm run prettier:format
45
+ pnpm run format
46
46
  ```
47
47
 
48
48
  #### Linting Failures
@@ -132,7 +132,7 @@ If specific jobs failed, run those specific commands:
132
132
  - Type check: `pnpm run test:types`
133
133
  - Tests: `pnpm run test:jest`
134
134
  - Lint: `pnpm run lint`
135
- - Prettier: `pnpm run prettier:check`
135
+ - Formatting: `pnpm run format:check`
136
136
 
137
137
  ### 6. Add a Changeset (Skip in Automated Context)
138
138
 
@@ -163,6 +163,7 @@ fix: resolve type errors in seed generator
163
163
  ```
164
164
 
165
165
  **Note**:
166
+
166
167
  - Demo projects (`@postxl/demo`, `@postxl/demo-api`, etc.) are ignored in changeset config, so don't select them.
167
168
  - In automated contexts, changesets should be added manually after reviewing the auto-fix PR.
168
169
  - Mention in your commit message if a changeset may be needed so reviewers can add it.
@@ -219,9 +220,9 @@ After completing the fixes, provide a concise summary:
219
220
 
220
221
  ## Common Failure Scenarios
221
222
 
222
- ### Scenario: "Prettier formatting errors"
223
+ ### Scenario: "Formatting errors"
223
224
 
224
- → Run `pnpm run prettier:format` and commit
225
+ → Run `pnpm run format` and commit
225
226
 
226
227
  ### Scenario: "Type errors in demo backend"
227
228
 
@@ -244,24 +245,28 @@ After completing the fixes, provide a concise summary:
244
245
  This error occurs when the CI's "Verify demo project is up to date" step fails, showing files like `package.json` have changed after regeneration.
245
246
 
246
247
  **Root cause**: The committed generated files don't match what the generators actually produce. This can happen when:
248
+
247
249
  - Someone committed files with incorrect formatting
248
250
  - Turbo remote cache served stale generator builds during a previous commit
249
251
 
250
252
  **Solution**:
251
253
 
252
254
  1. **Build without turbo remote cache** to ensure completely fresh generator output:
255
+
253
256
  ```bash
254
257
  rm -rf packages/*/dist packages/*/.turbo .turbo
255
258
  TURBO_API="" TURBO_TOKEN="" pnpm turbo run build:packages --force
256
259
  ```
257
260
 
258
261
  2. **Regenerate the demo project**:
262
+
259
263
  ```bash
260
264
  cd projects/demo
261
265
  pnpm run generate:project -f
262
266
  ```
263
267
 
264
268
  3. **Check the diff** to understand what changed:
269
+
265
270
  ```bash
266
271
  git diff projects/demo/
267
272
  ```
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "./node_modules/oxfmt/configuration_schema.json",
3
+ "semi": false,
4
+ "trailingComma": "all",
5
+ "singleQuote": true,
6
+ "tabWidth": 2,
7
+ "printWidth": 120,
8
+ "sortPackageJson": false,
9
+ "ignorePatterns": [
10
+ "**/dist/**",
11
+ "**/dist-types/**",
12
+ "**/node_modules/**",
13
+ "**/generated/**",
14
+ "**/*.gen.ts",
15
+ "backend/libs/database/src/prisma/**"
16
+ ]
17
+ }