Skip to content

Commit f8cbab7

Browse files
committed
fix(tsdown): update package import to use JSON type and fix build extension
1 parent 28bb859 commit f8cbab7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tsdown.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineConfig } from 'tsdown';
2-
import pkg from './package.json';
2+
import pkg from './package.json' with { type: 'json' };
33

44
export default defineConfig({
55
entry: ['src/index.ts'],
@@ -9,6 +9,5 @@ export default defineConfig({
99
dts: true,
1010
sourcemap: false,
1111
minify: true,
12-
format: ['esm'],
13-
target: 'node18'
12+
fixedExtension: false
1413
});

0 commit comments

Comments
 (0)