1
0
mirror of synced 2026-03-23 02:58:34 +08:00

build: 构建时某些文件的.d文件丢失

This commit is contained in:
roymondchen
2022-08-05 19:59:19 +08:00
committed by jia000
parent 9ffecf62f7
commit 5e36ca8e47
56 changed files with 919 additions and 1083 deletions

View File

@@ -4,7 +4,7 @@
"sideEffects": false,
"main": "dist/tmagic-schema.umd.js",
"module": "dist/tmagic-schema.mjs",
"types": "dist/types/src/index.d.ts",
"types": "types/index.d.ts",
"exports": {
".": {
"import": "./dist/tmagic-schema.mjs",
@@ -13,7 +13,9 @@
"./*": "./*"
},
"scripts": {
"build": "vite build"
"build": "npm run build:type && vite build",
"build:type": "npm run clear:type && tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
"clear:type": "rimraf ./types"
},
"engines": {
"node": ">=14"
@@ -25,8 +27,8 @@
},
"devDependencies": {
"@types/node": "^15.12.4",
"rimraf": "^3.0.2",
"typescript": "^4.7.4",
"vite": "^3.0.4",
"vite-plugin-dts": "^0.9.6"
"vite": "^3.0.4"
}
}