Skip to content

Commit 87a3d97

Browse files
committed
fix: fix ESM module exports, #11
1 parent ea76748 commit 87a3d97

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

package.json

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "xid-ts",
33
"type": "module",
4-
"version": "1.1.3",
4+
"version": "1.1.4",
55
"author": "0xZensh <[email protected]>",
66
"description": "xid is a globally unique id generator thought for the web. A Typescript port of https://github.com/rs/xid.",
77
"license": "MIT",
@@ -16,10 +16,16 @@
1616
"LICENSE",
1717
"README.md"
1818
],
19-
"main": "dist/cjs/index",
20-
"module": "dist/esm/index",
21-
"unpkg": "dist/esm/index",
22-
"typings": "dist/esm/index.d.ts",
19+
"unpkg": "./dist/esm/index.js",
20+
"main": "./dist/cjs/index.js",
21+
"module": "./dist/esm/index.js",
22+
"exports": {
23+
".": {
24+
"import": "./dist/esm/index.js",
25+
"require": "./dist/cjs/index.js"
26+
}
27+
},
28+
"typings": "./dist/esm/index.d.ts",
2329
"browser": {
2430
"node:crypto": false
2531
},

0 commit comments

Comments
 (0)