diff --git a/packages/core/package.json b/packages/core/package.json index fafa9e549..4d577afdc 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -18,8 +18,8 @@ ], "scripts": { "build": "pnpm run clean && pnpm run build:dist && pnpm run build:types", - "build:dist": "tsup", - "build:types": "tsc --emitDeclarationOnly", + "build:dist": "tsup --tsconfig tsconfig.build.json", + "build:types": "tsc --emitDeclarationOnly --project tsconfig.build.json", "clean": "rimraf dist types", "lint": "biome check . --apply", "lint:check": "biome check . --verbose", diff --git a/packages/core/tsconfig.build.json b/packages/core/tsconfig.build.json new file mode 100644 index 000000000..177eb2938 --- /dev/null +++ b/packages/core/tsconfig.build.json @@ -0,0 +1,11 @@ +{ + "extends": "tsconfig/base.json", + "compilerOptions": { + "rootDir": "src", + "outDir": "types", + "declaration": true, + "sourceMap": true, + "declarationMap": true + }, + "include": ["src"] +} diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 8d8c8bf96..f210b2a2f 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -1,13 +1,10 @@ { - "extends": "tsconfig/base.json", + "extends": "./tsconfig.build.json", "compilerOptions": { - "rootDir": "src", - "outDir": "types", - "declaration": true, - "sourceMap": true, - "declarationMap": true + "rootDir": "." }, "include": [ - "src" + "src", + "test" ] }