Skip to content

Commit

Permalink
build: fix default exports
Browse files Browse the repository at this point in the history
Former-commit-id: e8d088e
  • Loading branch information
cedoor committed Feb 7, 2024
1 parent d54fa69 commit 85fbb30
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/identity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
".": {
"types": "./dist/types/index.d.ts",
"node": {
"default": "./dist/index.node.js",
"require": "./dist/index.node.cjs"
"require": "./dist/index.node.cjs",
"default": "./dist/index.node.js"
},
"browser": "./dist/index.browser.js",
"default": "./dist/index.browser.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/identity/rollup.node.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
input: "src/index.ts",
output: [
{ file: pkg.exports["."].node.require, format: "cjs", banner, exports: "auto" },
{ file: pkg.exports["."].node.import, format: "es", banner }
{ file: pkg.exports["."].node.default, format: "es", banner }
],
external: [...Object.keys(pkg.dependencies), "node:crypto"],
plugins: [
Expand Down
4 changes: 2 additions & 2 deletions packages/proof/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
".": {
"types": "./dist/types/index.d.ts",
"node": {
"import": "./dist/index.node.js",
"require": "./dist/index.node.cjs"
"require": "./dist/index.node.cjs",
"default": "./dist/index.node.js"
},
"browser": "./dist/index.browser.js",
"default": "./dist/index.browser.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/proof/rollup.node.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
exports: "auto"
},
{
file: pkg.exports["."].node.import,
file: pkg.exports["."].node.default,
format: "es",
banner
}
Expand Down

0 comments on commit 85fbb30

Please sign in to comment.