1
0
mirror of synced 2025-12-17 08:27:56 +08:00

build: 不在每个package中构建dts,解决package间相互依赖问题

This commit is contained in:
roymondchen
2024-08-08 16:05:10 +08:00
committed by roymondchen
parent de47514f69
commit 7aeca39521
61 changed files with 199 additions and 560 deletions

View File

@@ -24,10 +24,7 @@
],
"license": "Apache-2.0",
"scripts": {
"build": "npm run build:type && vite build",
"build:type": "npm run clear:type && tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
"check:type": "tsc --noEmit --project tsconfig.build.json",
"clear:type": "rimraf ./types"
"build": "vite build"
},
"engines": {
"node": ">=18"

View File

@@ -1,13 +0,0 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"declarationDir": "types",
"forceConsistentCasingInFileNames": true,
"paths": {},
},
"include": [
"src"
],
}

View File

@@ -1,6 +0,0 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": "../..",
},
}