Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 094a0f7

Browse files
authored
fix: map exports to dist folder (#123)
1 parent b218eaa commit 094a0f7

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

package.json

+10-4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@
1313
"main": "dist/cjs/Decimal128.cjs",
1414
"module": "dist/esm/Decimal128.mjs",
1515
"typings": "dist/esm/Decimal128.d.ts",
16+
"exports": {
17+
"node": {
18+
"module-sync": "./dist/esm/Decimal128.mjs",
19+
"types": "./dist/esm/Decimal128.d.ts",
20+
"default": "./dist/cjs/Decimal128.cjs"
21+
},
22+
"types": "./dist/esm/Decimal128.d.ts",
23+
"default": "./dist/esm/Decimal128.mjs"
24+
},
1625
"sideEffects": false,
1726
"scripts": {
1827
"build": "rollup -c",
@@ -53,8 +62,5 @@
5362
"type": "BSD-2-Clause",
5463
"url": "https://opensource.org/license/bsd-2-clause/"
5564
}
56-
],
57-
"exports": {
58-
".": "./src/Decimal128.mjs"
59-
}
65+
]
6066
}

0 commit comments

Comments
 (0)