diff --git a/package.json b/package.json index 6c07433..2014418 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "prepack": "yarn clean && yarn build", "prettier": "prettier --check . --cache", "test": "yarn lint && yarn tsc && yarn prettier && yarn unit", - "tsc": "tsc --noEmit", + "tsc": "tsc", "unit": "vitest" }, "keywords": [ diff --git a/tsconfig.build.json b/tsconfig.build.json index 5417c7d..a9a3fdc 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,4 +1,10 @@ { "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": false, + "outDir": "dist", + "rootDir": "src" + }, + "include": ["src"], "exclude": ["src/**/*.spec.ts"] } diff --git a/tsconfig.json b/tsconfig.json index c8a2786..645870c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,11 +5,12 @@ "isolatedModules": true, "module": "esnext", "moduleResolution": "node", + "noEmit": true, "noUncheckedIndexedAccess": true, "outDir": "dist", "strict": true, "target": "es5", "verbatimModuleSyntax": true }, - "include": ["src"] + "exclude": ["dist"] }