Skip to content

Commit 0bc3fdb

Browse files
authored
Fix typescript 4.7 / node16 import/type resolution
1 parent edadaf8 commit 0bc3fdb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@
2323
"main": "decimal",
2424
"module": "decimal.mjs",
2525
"browser": "decimal.js",
26+
"exports": {
27+
".": {
28+
"import": {
29+
"types": "./decimal.d.ts",
30+
"default": "./decimal.mjs"
31+
},
32+
"require": "./decimal.js"
33+
}
34+
},
2635
"author": {
2736
"name": "Michael Mclaughlin",
2837
"email": "M8ch88l@gmail.com"

0 commit comments

Comments
 (0)