Skip to content

Commit 01b1d9d

Browse files
committed
build: tsup config add
1 parent e8a820c commit 01b1d9d

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

packages/notion-to-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"test": "vitest",
88
"test:watch": "vitest --watch",
9-
"build": "tsup src/index.ts --format cjs,esm --dts --minify"
9+
"build": "tsup"
1010
},
1111
"keywords": [],
1212
"author": "Jinsoo Lee",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineConfig } from 'tsup';
2+
3+
export default defineConfig({
4+
entry: ['src/index.ts'],
5+
target: 'esnext',
6+
format: ['cjs', 'esm'],
7+
splitting: true,
8+
treeshake: true,
9+
clean: true,
10+
dts: true,
11+
minify: true,
12+
});

0 commit comments

Comments
 (0)