Skip to content

Commit 09e0241

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 a2f35e9 commit 09e0241

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
@@ -78,6 +78,8 @@ async function main() {
7878
{
7979
...pkg,
8080
files: ["dist-*/**", "bin/**"],
81+
main: "./dist-node/index.js",
82+
types: "./dist-types/index.d.ts",
8183
exports: {
8284
".": {
8385
node: {

0 commit comments

Comments
 (0)