Skip to content

Commit a543329

Browse files
committed
fix: add main entry point
Some tools don't play well with only having the `exports` field present. See octokit/core.js#662
1 parent 80d56c3 commit a543329

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/build.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,14 @@ async function main() {
5353
{
5454
...pkg,
5555
files: ["dist-*/**"],
56-
exports: "./dist-src/index.js",
56+
main: "./dist-src/index.js",
5757
types: "./dist-types/index.d.ts",
58+
exports: {
59+
".": {
60+
import: "./dist-src/index.js",
61+
types: "./dist-types/index.d.ts",
62+
}
63+
},
5864
sideEffects: false,
5965
},
6066
null,

0 commit comments

Comments
 (0)