Skip to content

Commit ed83ba5

Browse files
committed
fix(pkg): add a default fallback
See octokit/core.js#665 octokit/core.js#667
1 parent 6279d5a commit ed83ba5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/build.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,13 @@ async function main() {
5050
{
5151
...pkg,
5252
files: ["dist-*/**", "bin/**"],
53-
main: "./dist-src/index.js",
5453
types: "./dist-types/index.d.ts",
5554
exports: {
5655
".": {
5756
types: "./dist-types/index.d.ts",
5857
import: "./dist-src/index.js",
58+
// Tooling currently are having issues with the "exports" field when there is no "default", ex: TypeScript, eslint
59+
default: "./dist-src/index.js",
5960
}
6061
},
6162
sideEffects: false,

0 commit comments

Comments
 (0)