Skip to content

Commit

Permalink
fix(pkg): add main entry point (#425)
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 authored Feb 27, 2024
1 parent ab32968 commit 47c32cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ async function main() {
{
...pkg,
files: ["dist-*/**", "bin/**"],
main: "./dist-node/index.js",
types: "./dist-types/index.d.ts",
exports: {
".": {
node: {
Expand Down

0 comments on commit 47c32cb

Please sign in to comment.