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 15, 2024
1 parent 1c92505 commit a1462d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,13 @@ async function main() {
{
...pkg,
files: ["dist-*/**", "bin/**"],
types: "./dist-types/index.d.ts",
exports: {
".": {
types: "./dist-types/index.d.ts",
import: "./dist-bundle/index.js",
// Tooling currently are having issues with the "exports" field when there is no "default", ex: TypeScript, eslint
default: "./dist-bundle/index.js",
},
},
sideEffects: false,
Expand Down

0 comments on commit a1462d3

Please sign in to comment.