Skip to content

Commit c72bf42

Browse files
committed
docs(CLAUDE): update script wrapper examples to existing files
Replace script wrapper example reference from deleted test-ci.mjs to existing files: - Changed from: scripts/coverage.mts, scripts/test-ci.mjs - Changed to: scripts/cover.mjs, scripts/test.mjs Both examples demonstrate the script wrapper pattern correctly and reference files that exist in the codebase.
1 parent f3fe07b commit c72bf42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ git status # Check pnpm-lock.yaml changed
302302
- **Pattern**: Wrap complex commands in `scripts/*.mts` files, not package.json directly
303303
- **Benefits**: Type safety, reusability, testability, better error handling
304304
- **Usage**: `"script-name": "node scripts/script-name.mts"`
305-
- **Examples**: `scripts/coverage.mts`, `scripts/test-ci.mjs`
305+
- **Examples**: `scripts/cover.mjs`, `scripts/test.mjs`
306306
- **Structure**: Use `spawn` from node:child_process with proper signal handling
307307
- **Exit codes**: Set `process.exitCode`, never call `process.exit()` (n/no-process-exit rule)
308308
- **Type definitions**: Create `.d.mts` files for `.mjs` utilities used by `.mts` scripts

0 commit comments

Comments
 (0)