@@ -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
46591 . Create ` packages/{name}/ ` with ` package.json ` , ` tsconfig.json ` , ` tsdown.config.ts ` , ` vitest.config.ts `
47602 . Name it ` @script-development/fs-{name} `
48613 . Use ` defineProject ` from ` vitest/config ` in the vitest config
49624 . 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