Skip to content

Commit cf1cc95

Browse files
build(package.json): do node esm support properly
1 parent 5c5da08 commit cf1cc95

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@
3434
"LICENSE",
3535
"README.md"
3636
],
37+
"exports": {
38+
"import": "./lib/index.mjs",
39+
"require": "./lib/index.js",
40+
"default": "./lib/index.js"
41+
},
3742
"main": "lib/index.js",
38-
"module": "lib/index.mjs",
3943
"scripts": {
4044
"build": "yarn rimraf lib && yarn compile",
4145
"build-tests": "yarn rimraf build && yarn compile-tests",

0 commit comments

Comments
 (0)