reduce build
This commit is contained in:
parent
d5a48d259d
commit
d35cf27043
|
|
@ -8,8 +8,7 @@
|
||||||
"module": "./lib/index.es.js",
|
"module": "./lib/index.es.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build1": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"build": "vite build && tsc -p tsconfig.build.json",
|
|
||||||
"test": "vitest"
|
"test": "vitest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "./tsconfig.json", // 拓展 tsconfig.json 的配置
|
|
||||||
"compilerOptions": {
|
|
||||||
"noEmit": false, // 允许生成文件
|
|
||||||
"declaration": true, // 需要设置为 true 来支持类型
|
|
||||||
"emitDeclarationOnly": true, // 只生成类型文件
|
|
||||||
"declarationDir": "lib" // 类型文件的导出目录
|
|
||||||
},
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user