Skip to content

Commit

Permalink
fix(pkg): add main entry point (#551)
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 8d3cb68 commit d3ada54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ async function main() {
{
...pkg,
files: ["dist-*/**", "bin/**"],
exports: {
main: "./dist-bundle/index.js",
types: "./dist-types/index.d.ts",
exports: {
".": {
types: "./dist-types/index.d.ts",
import: "./dist-bundle/index.js",
Expand Down

0 comments on commit d3ada54

Please sign in to comment.