Skip to content

Commit 6255e9d

Browse files
43081jsheremet-va
andauthored
feat!: switch to ESM only (#48)
Switches to ESM only now that `require(esm)` is available in all LTS other than the soon-to-disappear 18.x. --------- Co-authored-by: Vladimir Sheremet <[email protected]>
1 parent eb84aac commit 6255e9d

File tree

9 files changed

+677
-337
lines changed

9 files changed

+677
-337
lines changed

package.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,11 @@
2121
],
2222
"exports": {
2323
".": {
24-
"import": {
25-
"types": "./dist/index.d.ts",
26-
"default": "./dist/index.js"
27-
},
28-
"require": {
29-
"types": "./dist/index.d.cts",
30-
"default": "./dist/index.cjs"
31-
}
24+
"types": "./dist/index.d.ts",
25+
"default": "./dist/index.js"
3226
}
3327
},
34-
"main": "./dist/index.cjs",
28+
"main": "./dist/index.js",
3529
"module": "./dist/index.js",
3630
"types": "./dist/index.d.ts",
3731
"files": [

0 commit comments

Comments
 (0)