Skip to content

Commit bc07fc8

Browse files
committed
ensure types are generated for cjs
1 parent 5d1bab4 commit bc07fc8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tsup.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ export default defineConfig([
3232
external: [],
3333
},
3434
// Type definitions
35+
{
36+
entry: ['src/index.ts'],
37+
format: ['cjs'],
38+
outDir: 'dist/types',
39+
dts: {
40+
only: true,
41+
},
42+
clean: true,
43+
target: 'es2020',
44+
platform: 'node',
45+
},
3546
{
3647
entry: ['src/index.ts'],
3748
format: ['esm'],

0 commit comments

Comments
 (0)