Skip to content

Commit 18d89ad

Browse files
committed
build: esm만 지원하도록 수정
1 parent 01b1d9d commit 18d89ad

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

packages/notion-to-utils/package.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
"name": "notion-to-utils",
33
"version": "0.0.0",
44
"description": "",
5-
"main": "index.js",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/01-binary/notion-to-jsx",
8+
"directory": "/packages/notion-to-utils"
9+
},
10+
"type": "module",
11+
"exports": {
12+
".": {
13+
"import": {
14+
"types": "./dist/index.d.mts",
15+
"default": "./dist/index.mjs"
16+
}
17+
}
18+
},
19+
"files": [
20+
"dist"
21+
],
22+
"sideEffects": false,
623
"scripts": {
724
"test": "vitest",
825
"test:watch": "vitest --watch",

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: ['cjs', 'esm'],
6+
format: ['esm'],
77
splitting: true,
88
treeshake: true,
99
clean: true,

0 commit comments

Comments
 (0)