Skip to content

Commit

Permalink
fix(build): adapt for ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Feb 27, 2024
1 parent e4e1b26 commit d98695e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/build.mjs
Expand Up @@ -76,10 +76,14 @@ async function main() {
{
...pkg,
files: ["dist-*/**", "bin/**"],
main: "dist-node/index.js",
module: "dist-web/index.js",
main: "dist-bundle/index.js",
types: "dist-types/index.d.ts",
source: "dist-src/index.js",
exports: {
".": {
types: "./dist-types/index.d.ts",
import: "./dist-bundle/index.js",
},
},
sideEffects: false,
},
null,
Expand Down

0 comments on commit d98695e

Please sign in to comment.