Skip to content

Commit b9ee454

Browse files
authored
fix(pkg): add main entry point (#508)
Some tools don't play well with only having the `exports` field present. See octokit/core.js#662
1 parent 8e9c5e3 commit b9ee454

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/build.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ async function main() {
6767
{
6868
...pkg,
6969
files: ["dist-*/**", "bin/**"],
70+
main: "./dist-node/index.js",
71+
types: "./dist-types/index.d.ts",
7072
exports: {
7173
".": {
7274
types: "./dist-types/index.d.ts",

0 commit comments

Comments
 (0)