Skip to content

Commit d848708

Browse files
committed
fix: fix library build
1 parent 3a6681e commit d848708

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

package.json

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@
77
"module": "./lib/module/index.js",
88
"exports": {
99
".": {
10-
"import": {
11-
"types": "./lib/typescript/module/src/index.d.ts",
12-
"default": "./lib/module/index.js"
13-
},
14-
"require": {
15-
"types": "./lib/typescript/commonjs/src/index.d.ts",
16-
"default": "./lib/commonjs/index.js"
17-
}
10+
"source": "./src/index.tsx",
11+
"types": "./lib/typescript/module/src/index.d.ts",
12+
"default": "./lib/module/index.js",
13+
"import": "./lib/module/index.js",
14+
"require": "./lib/commonjs/index.js"
1815
}
1916
},
2017
"files": [
@@ -162,22 +159,15 @@
162159
"targets": [
163160
"codegen",
164161
[
165-
"commonjs",
166-
{
167-
"esm": true
168-
}
162+
"commonjs"
169163
],
170164
[
171-
"module",
172-
{
173-
"esm": true
174-
}
165+
"module"
175166
],
176167
[
177168
"typescript",
178169
{
179-
"project": "tsconfig.build.json",
180-
"esm": true
170+
"project": "tsconfig.build.json"
181171
}
182172
]
183173
]

0 commit comments

Comments
 (0)