Skip to content

Commit 47c32cb

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

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
@@ -74,6 +74,8 @@ async function main() {
7474
{
7575
...pkg,
7676
files: ["dist-*/**", "bin/**"],
77+
main: "./dist-node/index.js",
78+
types: "./dist-types/index.d.ts",
7779
exports: {
7880
".": {
7981
node: {

0 commit comments

Comments
 (0)