Skip to content

Commit 1aea850

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 f11e7f1 commit 1aea850

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/build.mjs

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ async function main() {
5050
{
5151
...pkg,
5252
files: ["dist-*/**", "bin/**"],
53+
main: "./dist-src/index.js",
54+
types: "./dist-types/index.d.ts",
5355
exports: {
5456
".": {
5557
types: "./dist-types/index.d.ts",

0 commit comments

Comments
 (0)