Skip to content

Commit

Permalink
chore: tweak package exports
Browse files Browse the repository at this point in the history
  • Loading branch information
P0lip committed Oct 20, 2024
1 parent d63843a commit abbc460
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@
"module": "./src/index.mjs",
"exports": {
".": {
"types": "./src/index.d.ts",
"import": "./src/index.mjs",
"require": "./cjs/index.cjs"
"import": {
"types": "./src/index.d.ts",
"default": "./src/index.mjs"
},
"require": {
"types": "./src/index.d.ts",
"default": "./cjs/index.cjs"
}
},
"./parser": {
"import": "./src/parser/index.mjs",
Expand All @@ -36,9 +41,14 @@
"require": "./cjs/runtime/index.cjs"
},
"./errors": {
"types": "./src/runtime/errors/index.d.ts",
"import": "./src/runtime/errors/index.mjs",
"require": "./cjs/runtime/errors/index.cjs"
"import": {
"types": "./src/runtime/errors/index.d.ts",
"default": "./src/runtime/errors/index.mjs"
},
"require": {
"types": "./src/runtime/errors/index.d.ts",
"default": "./cjs/runtime/errors/index.cjs"
}
}
},
"sideEffects": false,
Expand Down

0 comments on commit abbc460

Please sign in to comment.