diff --git a/package.json b/package.json index 102c8ec..32c2001 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/tsdv.config.ts b/tsdv.config.ts deleted file mode 100644 index af257a9..0000000 --- a/tsdv.config.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { defineConfig } from 'tsdv'; - -export default defineConfig({ - target: 'node12', - formats: ['es', 'cjs'] -}); diff --git a/tsup.config.ts b/tsup.config.ts new file mode 100644 index 0000000..0455782 --- /dev/null +++ b/tsup.config.ts @@ -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 +});