Skip to content

Commit

Permalink
fix(pkg): add a default fallback export
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Apr 16, 2024
1 parent bf70983 commit 7b88c03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ async function main() {
{
...pkg,
files: ["dist-*/**", "bin/**"],
main: "dist-src/index.js",
types: "dist-types/index.d.ts",
exports: {
".": {
types: "./dist-types/index.d.ts",
import: "./dist-src/index.js",
// Tooling currently are having issues with the "exports" field when there is no "default", ex: TypeScript, eslint
default: "./dist-src/index.js",
},
},
sideEffects: false,
Expand Down

0 comments on commit 7b88c03

Please sign in to comment.