Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"scripts": {
"build": "tsc",
"test": "vitest run",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit && tsc -p tsconfig.test.json"
},
"devDependencies": {
"@types/node": "^22.0.0",
Expand Down
13 changes: 13 additions & 0 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
// Type-check the test files too. The base tsconfig.json excludes
// **/*.test.ts so `build` (tsc emit) never writes test declarations into
// dist/; this config re-includes them under --noEmit so `typecheck` actually
// verifies the contract test — the repo's whole deliverable.
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": true,
"declaration": false
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}
Loading