diff --git a/package.json b/package.json index 281ea11..2faa6c7 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "types": "dist/index.d.ts", "module": "dist/index.js", "scripts": { - "build": "rm -rf dist/* && tsc", + "build": "rm -rf dist/* && tsc --project tsconfig.build.json", "format": "prettier -w .", "lint": "eslint src", "test": "vitest run --sequence.concurrent" diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..b790d3a --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src"], + "exclude": ["src/**/*.test.ts"] +} diff --git a/tsconfig.json b/tsconfig.json index fb7a65d..2e40cf2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,4 @@ { - "include": ["src"], - "exclude": ["src/**/*.test.ts"], "compilerOptions": { "outDir": "dist", "declaration": true,