Skip to content

Commit 7a6958e

Browse files
committed
fix(pkg): add main field
Some tools don't play well with only having the `exports` field present. See octokit/core.js#662
1 parent 1c64559 commit 7a6958e

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
@@ -61,6 +61,8 @@ async function main() {
6161
{
6262
...pkg,
6363
files: ["dist-*/**", "bin/**"],
64+
main: "dist-bundle/index.js",
65+
types: "dist-types/index.d.ts",
6466
exports: {
6567
".": {
6668
types: "./dist-types/index.d.ts",

0 commit comments

Comments
 (0)