Skip to content

Commit 313c37c

Browse files
ciesiolkajankarres
authored andcommitted
Fix ESM build file names
`tsup` produces two builds - ESM (`.js` files) and CJS (`.cjs`). This commit replaces non-existing paths (`.mjs`) Fixes #48
1 parent a59f495 commit 313c37c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
"node": ">=20"
2323
},
2424
"main": "./dist/index.cjs",
25-
"module": "./dist/index.mjs",
25+
"module": "./dist/index.js",
2626
"types": "./dist/index.d.ts",
2727
"exports": {
2828
".": {
2929
"types": "./dist/index.d.ts",
30-
"import": "./dist/index.mjs",
30+
"import": "./dist/index.js",
3131
"require": "./dist/index.cjs",
32-
"default": "./dist/index.mjs"
32+
"default": "./dist/index.js"
3333
}
3434
},
3535
"files": [

0 commit comments

Comments
 (0)