Browse Source

chore(vsh): migrate build to tsdown

pull/7666/head
xingyu4j 1 week ago
parent
commit
dba774e1c7
  1. 7
      scripts/vsh/build.config.ts
  2. 3
      scripts/vsh/package.json
  3. 11
      scripts/vsh/tsdown.config.ts

7
scripts/vsh/build.config.ts

@ -1,7 +0,0 @@
import { defineBuildConfig } from 'unbuild';
export default defineBuildConfig({
clean: true,
declaration: true,
entries: ['src/index'],
});

3
scripts/vsh/package.json

@ -5,7 +5,8 @@
"license": "MIT",
"type": "module",
"scripts": {
"stub": "pnpm unbuild --stub"
"build": "pnpm exec tsdown",
"stub": "pnpm exec tsdown"
},
"files": [
"dist"

11
scripts/vsh/tsdown.config.ts

@ -0,0 +1,11 @@
import { defineConfig } from 'tsdown';
export default defineConfig({
clean: true,
dts: true,
entry: ['src/index.ts'],
format: ['esm'],
outExtensions: () => ({
dts: '.d.ts',
}),
});
Loading…
Cancel
Save