Skip to content

Commit a7f4cc2

Browse files
committed
Update tsup configuration to target Node.js 22 and streamline entry definitions
1 parent 0b7d39f commit a7f4cc2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tsup.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { defineConfig } from 'tsup';
22

3-
export default defineConfig((options) => [
3+
export default defineConfig(() => [
44
{
55
entry: ['src/index.ts', 'src/preset.ts'],
66
outDir: './dist',
77
splitting: true,
88
format: ['esm'],
9-
dts: true,
9+
dts: true,
1010
treeshake: true,
1111
sourcemap: false,
1212
/*
@@ -22,10 +22,10 @@ dts: true,
2222
{
2323
entry: ['src/postinstall.ts'],
2424
outDir: './bin',
25-
splitting: true,
25+
splitting: true,
2626
format: ['esm'],
2727
treeshake: true,
28-
target: 'node20',
28+
target: 'node22',
2929
clean: false,
3030
platform: 'node',
3131
esbuildOptions(options) {

0 commit comments

Comments
 (0)