Skip to content

Commit df81b5c

Browse files
committed
update builder-bob config
1 parent 0a61892 commit df81b5c

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

package/package.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"exports": {
99
".": {
1010
"import": {
11-
"types": "./lib/typescript/index.d.ts",
11+
"types": "./lib/typescript/module/index.d.ts",
1212
"default": "./lib/module/index.js"
1313
},
1414
"require": {
15-
"types": "./lib/typescript/index.d.ts",
15+
"types": "./lib/typescript/commonjs/index.d.ts",
1616
"default": "./lib/commonjs/index.js"
1717
}
1818
}
@@ -37,7 +37,7 @@
3737
"typescript": "tsc --noEmit",
3838
"lint": "eslint \"**/*.{js,ts,tsx}\" --fix",
3939
"lint-ci": "eslint \"**/*.{js,ts,tsx}\" -f @jamesacarr/github-actions",
40-
"prepare": "rm -rf lib && bun typescript && bob build",
40+
"prepare": "bun typescript && bob build",
4141
"test": "jest",
4242
"release": "release-it"
4343
},
@@ -100,13 +100,24 @@
100100
"source": "src",
101101
"output": "lib",
102102
"targets": [
103-
"commonjs",
104-
"module",
103+
[
104+
"commonjs",
105+
{
106+
"esm": true
107+
}
108+
],
109+
[
110+
"module",
111+
{
112+
"esm": true
113+
}
114+
],
105115
[
106116
"typescript",
107117
{
108118
"tsc": "../node_modules/.bin/tsc",
109-
"project": "tsconfig.build.json"
119+
"project": "tsconfig.build.json",
120+
"esm": true
110121
}
111122
]
112123
]

0 commit comments

Comments
 (0)