Skip to content

Commit 9e1356e

Browse files
committed
fix: 未正确区分esm和cjs
1 parent 7dd92c3 commit 9e1356e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"bin": {
4646
"openapi": "dist/bin.mjs"
4747
},
48-
"type": "module",
4948
"publishConfig": {
5049
"type": "commonjs",
5150
"access": "public"

tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default defineConfig([
2828
shims: false,
2929
dts: true,
3030
legacyOutput: true,
31+
onSuccess: `echo '{"type":"module"}' > dist/esm/package.json`,
3132
},
3233
{
3334
entry: readdirSync(path.resolve('src', 'adapters')).map(

0 commit comments

Comments
 (0)