chore(oxlint-config): migrate build to tsdown

vite8^2
xingyu4j 2026-03-15 19:39:59 +08:00
parent 30b5610a73
commit c1b1fe90fd
3 changed files with 13 additions and 8 deletions

View File

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

View File

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

View File

@ -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',
}),
});