From 02282169e61c9c67935aa8702221e50894076ffc Mon Sep 17 00:00:00 2001 From: Dmitry Balashov Date: Tue, 14 Mar 2023 11:37:58 +0700 Subject: [PATCH] [build]: fix tsc build configuration (exclude unnecessary files from the build) --- packages/ui/package.json | 2 +- packages/ui/tsconfig.build.json | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 packages/ui/tsconfig.build.json diff --git a/packages/ui/package.json b/packages/ui/package.json index b950344f..1a23422c 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -30,7 +30,7 @@ "build:clean": "del dist ts-build", "build:vite": "vite build", "build:dts": "run-s build:dts:tsc build:dts:rollup", - "build:dts:tsc": "vue-tsc --outDir ts-build --declaration --emitDeclarationOnly", + "build:dts:tsc": "vue-tsc -p tsconfig.build.json", "build:dts:rollup": "rollup -c rollup.dts.config.cjs" }, "dependencies": { diff --git a/packages/ui/tsconfig.build.json b/packages/ui/tsconfig.build.json new file mode 100644 index 00000000..76827b39 --- /dev/null +++ b/packages/ui/tsconfig.build.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "include": ["src", "auto-imports.d.ts"], + "compilerOptions": { + "outDir": "ts-build", + "declaration": true, + "emitDeclarationOnly": true + } +} \ No newline at end of file