Skip to content

Commit 4bbbb02

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

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
@@ -58,6 +58,8 @@ async function main() {
5858
{
5959
...pkg,
6060
files: ["dist-*/**", "bin/**"],
61+
main: "./dist-bundle/index.js",
62+
types: "./dist-types/index.d.ts",
6163
exports: {
6264
".": {
6365
types: "./dist-types/index.d.ts",

0 commit comments

Comments
 (0)