Skip to content
Open
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 @@ -45,7 +45,7 @@
"lint:package": "pnpm publint --pack npm",
"format": "pnpm oxfmt",
"format:check": "pnpm oxfmt --check",
"build": "pnpm tsc",
"build": "pnpm tsc -p tsconfig.build.json",
"postbuild": "rollup dist/src/index.js --file dist/src/index.cjs --format cjs && cp dist/src/index.d.ts dist/src/index.d.cts",
"prepublishOnly": "pnpm build",
"build-js-client": "pnpm tsc --declaration false --outDir js-dist"
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// Build config for the published package: excludes test files from dist/.
// `extends` REPLACES the base exclude array (it does not merge), so
// "node_modules" must be re-listed here alongside the test glob.
"extends": "./tsconfig.json",
"exclude": ["node_modules", "src/**/*.test.*"]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"typeRoots": ["node_modules/@types"]
},
"include": ["src"],
"exclude": ["node_modules", "src/**/*.test.*/*"]
"exclude": ["node_modules"]
}
Loading