Skip to content

Commit 65d1057

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

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)