Skip to content

Commit 7f10009

Browse files
authored
Merge pull request #30 from script-development/fix/claude-md-accuracy
Fix CLAUDE.md accuracy: commands + versioning step
2 parents 62d9f41 + 8174895 commit 7f10009

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

CLAUDE.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,27 @@ Shared frontend service packages monorepo under the `@script-development` npm sc
3737
- **Test environment:** Browser-dependent tests use `// @vitest-environment happy-dom` file-level comments.
3838
- **Identical build config:** All packages share the same `tsdown.config.ts` structure.
3939

40-
## Build Order
41-
42-
Build before typecheck. Cross-package type resolution requires built `.d.mts` files. The CI pipeline enforces this order.
40+
## Commands
41+
42+
| Command | Purpose |
43+
| ----------------------- | ---------------------------------------------- |
44+
| `npm run build` | Build all packages (tsdown) |
45+
| `npm run typecheck` | Type-check all packages (requires build first) |
46+
| `npm test` | Run all tests |
47+
| `npm run test:coverage` | Run tests with coverage (100% threshold) |
48+
| `npm run test:mutation` | Run Stryker mutation testing (90% threshold) |
49+
| `npm run lint` | Lint with oxlint |
50+
| `npm run format:check` | Check formatting with oxfmt |
51+
| `npm run format` | Fix formatting with oxfmt |
52+
| `npm run lint:pkg` | Run publint + attw on all packages |
53+
| `npm audit` | Check for dependency vulnerabilities |
54+
55+
**Build before typecheck.** Cross-package type resolution requires built `.d.mts` files. The CI pipeline enforces this order.
4356

4457
## Adding a Package
4558

4659
1. Create `packages/{name}/` with `package.json`, `tsconfig.json`, `tsdown.config.ts`, `vitest.config.ts`
4760
2. Name it `@script-development/fs-{name}`
4861
3. Use `defineProject` from `vitest/config` in the vitest config
4962
4. Add 100% coverage threshold and 90% mutation threshold
50-
5. Create a changeset: `npx changeset`
63+
5. Bump version in the new package's `package.json` (manual — no changeset `.md` files)

0 commit comments

Comments
 (0)