Skip to content

Commit bfec5d7

Browse files
brmnclaude
andcommitted
fix: use conditional exports for proper CJS/ESM type resolution
Fixes FalseCJS error from @arethetypeswrong/cli. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7d951b5 commit bfec5d7

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@
77
"types": "dist/index.d.ts",
88
"exports": {
99
".": {
10-
"types": "./dist/index.d.ts",
11-
"import": "./dist/index.mjs",
12-
"require": "./dist/index.js"
10+
"import": {
11+
"types": "./dist/index.d.mts",
12+
"default": "./dist/index.mjs"
13+
},
14+
"require": {
15+
"types": "./dist/index.d.ts",
16+
"default": "./dist/index.js"
17+
}
1318
},
1419
"./package.json": "./package.json"
1520
},

0 commit comments

Comments
 (0)