Skip to content

Commit e679a3f

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

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
@@ -52,6 +52,8 @@ async function main() {
5252
{
5353
...pkg,
5454
files: ["dist-*/**"],
55+
main: "./dist-src/index.js",
56+
types: "./dist-types/index.d.ts",
5557
exports: {
5658
".": {
5759
types: "./dist-types/index.d.ts",

0 commit comments

Comments
 (0)