1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

replace tsdv with tsup

This commit is contained in:
nshen121
2022-08-06 17:10:37 +08:00
parent 85eb1595d0
commit 85fcda36df
3 changed files with 13 additions and 9 deletions

View File

@@ -16,8 +16,8 @@
}
},
"scripts": {
"dev": "tsdv watch",
"build": "tsdv build",
"dev": "tsup --watch",
"build": "tsup",
"prepare": "npm run build"
},
"keywords": [
@@ -45,7 +45,7 @@
"@types/node": "^14.14.31",
"@types/serve-static": "^1.13.9",
"prettier": "^2.2.1",
"tsdv": "^0.6.1",
"tsup": "^6.2.1",
"typescript": "^4.2.2",
"vite": "^3.0.4"
},

View File

@@ -1,6 +0,0 @@
import { defineConfig } from 'tsdv';
export default defineConfig({
target: 'node12',
formats: ['es', 'cjs']
});

10
tsup.config.ts Normal file
View File

@@ -0,0 +1,10 @@
import { defineConfig } from 'tsup';
export default defineConfig({
entry: ['src/index.ts'],
format: ['esm', 'cjs'],
splitting: false,
clean: true,
dts: true,
minify: false
});