Skip to content

Commit d3ada54

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/build.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ async function main() {
6565
{
6666
...pkg,
6767
files: ["dist-*/**", "bin/**"],
68-
exports: {
68+
main: "./dist-bundle/index.js",
69+
types: "./dist-types/index.d.ts",
70+
exports: {
6971
".": {
7072
types: "./dist-types/index.d.ts",
7173
import: "./dist-bundle/index.js",

0 commit comments

Comments
 (0)