replace tsdv with tsup
This commit is contained in:
@@ -16,8 +16,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "tsdv watch",
|
"dev": "tsup --watch",
|
||||||
"build": "tsdv build",
|
"build": "tsup",
|
||||||
"prepare": "npm run build"
|
"prepare": "npm run build"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
"@types/node": "^14.14.31",
|
"@types/node": "^14.14.31",
|
||||||
"@types/serve-static": "^1.13.9",
|
"@types/serve-static": "^1.13.9",
|
||||||
"prettier": "^2.2.1",
|
"prettier": "^2.2.1",
|
||||||
"tsdv": "^0.6.1",
|
"tsup": "^6.2.1",
|
||||||
"typescript": "^4.2.2",
|
"typescript": "^4.2.2",
|
||||||
"vite": "^3.0.4"
|
"vite": "^3.0.4"
|
||||||
},
|
},
|
||||||
|
@@ -1,6 +0,0 @@
|
|||||||
import { defineConfig } from 'tsdv';
|
|
||||||
|
|
||||||
export default defineConfig({
|
|
||||||
target: 'node12',
|
|
||||||
formats: ['es', 'cjs']
|
|
||||||
});
|
|
10
tsup.config.ts
Normal file
10
tsup.config.ts
Normal 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
|
||||||
|
});
|
Reference in New Issue
Block a user