Skip to content

Commit 286f44e

Browse files
committed
fix(pkg): add a default fallback
See ocotkit/core.js#665 octokit/core.js#667
1 parent 51551cf commit 286f44e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/build.mjs

+2-3
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,13 @@ async function main() {
6262
{
6363
...pkg,
6464
files: ["dist-*/**", "bin/**"],
65-
// Tooling currently are having issues with the "exports" field, ex: TypeScript, eslint
66-
// We add a `main` and `types` field to the package.json for the time being
67-
main: "dist-bundle/index.js",
6865
types: "dist-types/index.d.ts",
6966
exports: {
7067
".": {
7168
types: "./dist-types/index.d.ts",
7269
import: "./dist-bundle/index.js",
70+
// Tooling currently are having issues with the "exports" field when there is no "default", ex: TypeScript, eslint
71+
default: "./dist-bundle/index.js"
7372
},
7473
},
7574
sideEffects: false,

0 commit comments

Comments
 (0)