Skip to content

Commit

Permalink
fix(package): re-order exports fields for proper resolution in some…
Browse files Browse the repository at this point in the history
… setups

Specifically, the `types` field  must come before `import` and `require`.
  • Loading branch information
norskeld committed Mar 14, 2023
1 parent bafa35e commit b7cb115
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
"types": "./index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.js",
"require": "./index.cjs",
"types": "./index.d.ts"
"require": "./index.cjs"
},
"./combinators": {
"types": "./combinators.d.ts",
"import": "./combinators.js",
"require": "./combinators.cjs",
"types": "./combinators.d.ts"
"require": "./combinators.cjs"
},
"./parsers": {
"types": "./parsers.d.ts",
"import": "./parsers.js",
"require": "./parsers.cjs",
"types": "./parsers.d.ts"
"require": "./parsers.cjs"
}
},
"files": [
Expand Down

1 comment on commit b7cb115

@vercel
Copy link

@vercel vercel bot commented on b7cb115 Mar 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.