Skip to content

Commit e9ddf99

Browse files
authored
Merge pull request #284 from Lezvix/import-fix
Adjust package.json exports resolution
2 parents 5efc2c0 + 0407011 commit e9ddf99

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
"typescript": "^5.1.6"
1818
},
1919
"exports": {
20-
".": {
21-
"import": "./dist/esm/binary_parser.mjs",
22-
"require": "./dist/binary_parser.js"
23-
},
24-
"./*": "./*"
20+
"types": "./dist/binary_parser.d.ts",
21+
"require": "./dist/binary_parser.js",
22+
"import": "./dist/esm/binary_parser.mjs",
23+
"default": "./dist/esm/binary_parser.mjs"
2524
},
2625
"scripts": {
2726
"build": "npm run build:cjs && npm run build:esm",

0 commit comments

Comments
 (0)