From a56f86ae34a243102bf596980bf4f12a45a43b4d Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Tue, 3 Oct 2023 18:22:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(core):=20Introduce=20`tsco?= =?UTF-8?q?nfig.build.json`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/package.json | 4 ++-- packages/core/tsconfig.build.json | 11 +++++++++++ packages/core/tsconfig.json | 11 ++++------- 3 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 packages/core/tsconfig.build.json 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" ] }