Skip to content

Commit baa876d

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 8d3cb68 commit baa876d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/build.mjs

+3-1
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)