Skip to content

Commit

Permalink
fix: add main entry point
Browse files Browse the repository at this point in the history
Some tools don't play well with only having the `exports` field present.

See octokit/core.js#662
  • Loading branch information
wolfy1339 committed Feb 27, 2024
1 parent 80d56c3 commit a543329
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,14 @@ async function main() {
{
...pkg,
files: ["dist-*/**"],
exports: "./dist-src/index.js",
main: "./dist-src/index.js",
types: "./dist-types/index.d.ts",
exports: {
".": {
import: "./dist-src/index.js",
types: "./dist-types/index.d.ts",
}
},
sideEffects: false,
},
null,
Expand Down

0 comments on commit a543329

Please sign in to comment.