Skip to content

Commit

Permalink
fix(pkg): add default fallback and types export
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Apr 15, 2024
1 parent 96b4138 commit 95a5ec0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,16 @@ async function main() {
{
...pkg,
files: ["dist-*/**", "bin/**"],
main: "./dist-bundle/index.js",
types: "./dist-types/index.d.ts",
exports: {
".": {
types: "./dist-types/index.d.ts",
import: "./dist-bundle/index.js",
default: "./dist-bundle/index.js",
},
"./types": {
types: "./dist-types/index.d.ts",
}
},
sideEffects: false,
},
Expand Down

0 comments on commit 95a5ec0

Please sign in to comment.