Skip to content

Commit c559cce

Browse files
committed
feat: tsup cjs 추가
1 parent 8c5c7c4 commit c559cce

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/notion-to-utils/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"url": "https://github.com/01-binary/notion-to-jsx",
88
"directory": "/packages/notion-to-utils"
99
},
10+
"main": "./dist/index.js",
11+
"types": "./dist/index.d.ts",
1012
"exports": {
1113
".": {
1214
"import": {

packages/notion-to-utils/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { defineConfig } from 'tsup';
33
export default defineConfig({
44
entry: ['src/index.ts'],
55
target: 'esnext',
6-
format: ['esm'],
6+
format: ['esm', 'cjs'],
77
splitting: true,
88
treeshake: true,
99
clean: true,

0 commit comments

Comments
 (0)