Skip to content

Commit

Permalink
fix: fixed importing interop modules for CJS bundles. (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
b4rtaz authored Apr 17, 2023
1 parent f34a8b9 commit 393291c
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .changeset/violet-wolves-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
'@moralisweb3/common-streams-utils': patch
'@moralisweb3/common-aptos-utils': patch
'@moralisweb3/common-auth-utils': patch
'@moralisweb3/common-evm-utils': patch
'@moralisweb3/common-sol-utils': patch
'@moralisweb3/common-core': patch
'@moralisweb3/api-utils': patch
'@moralisweb3/aptos-api': patch
'@moralisweb3/evm-utils': patch
'@moralisweb3/sol-utils': patch
'moralis': patch
'@moralisweb3/streams': patch
'@moralisweb3/evm-api': patch
'@moralisweb3/sol-api': patch
'@moralisweb3/auth': patch
---

Fixed importing interop modules for CJS bundles.
1 change: 1 addition & 0 deletions packages/apiUtils/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
file: './lib/cjs/index.cjs',
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: './lib/esm/index.js',
Expand Down
1 change: 1 addition & 0 deletions packages/aptosApi/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
file: './lib/cjs/index.cjs',
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: './lib/esm/index.js',
Expand Down
1 change: 1 addition & 0 deletions packages/auth/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
file: './lib/cjs/index.cjs',
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: './lib/esm/index.js',
Expand Down
1 change: 1 addition & 0 deletions packages/common/aptosUtils/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default [
file: './lib/cjs/index.cjs',
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: './lib/esm/index.js',
Expand Down
1 change: 1 addition & 0 deletions packages/common/authUtils/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
file: './lib/cjs/index.cjs',
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: './lib/esm/index.js',
Expand Down
1 change: 1 addition & 0 deletions packages/common/core/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
file: './lib/cjs/index.cjs',
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: './lib/esm/index.js',
Expand Down
1 change: 1 addition & 0 deletions packages/common/evmUtils/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
file: './lib/cjs/index.cjs',
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: './lib/esm/index.js',
Expand Down
1 change: 1 addition & 0 deletions packages/common/solUtils/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
file: './lib/cjs/index.cjs',
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: './lib/esm/index.js',
Expand Down
1 change: 1 addition & 0 deletions packages/common/streamsUtils/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
file: './lib/cjs/index.cjs',
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: './lib/esm/index.js',
Expand Down
1 change: 1 addition & 0 deletions packages/evmApi/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
file: './lib/cjs/index.cjs',
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: './lib/esm/index.js',
Expand Down
1 change: 1 addition & 0 deletions packages/evmUtils/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
file: './lib/cjs/index.cjs',
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: './lib/esm/index.js',
Expand Down
1 change: 1 addition & 0 deletions packages/moralis/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function getCjsEsmConfig(clean, dir) {
file: `./lib/cjs/${dir}index.cjs`,
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: `./lib/esm/${dir}index.js`,
Expand Down
1 change: 1 addition & 0 deletions packages/solApi/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
file: './lib/cjs/index.cjs',
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: './lib/esm/index.js',
Expand Down
1 change: 1 addition & 0 deletions packages/solUtils/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
file: './lib/cjs/index.cjs',
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: './lib/esm/index.js',
Expand Down
1 change: 1 addition & 0 deletions packages/streams/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
file: './lib/cjs/index.cjs',
format: 'cjs',
exports: 'named',
interop: 'auto',
},
{
file: './lib/esm/index.js',
Expand Down

1 comment on commit 393291c

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test coverage

Title Lines Statements Branches Functions
api-utils Coverage: 30%
30.34% (61/201) 30.35% (17/56) 30.76% (12/39)
auth Coverage: 89%
92.38% (97/105) 83.33% (20/24) 86.2% (25/29)
evm-api Coverage: 100%
100% (89/89) 66.66% (6/9) 100% (57/57)
common-aptos-utils Coverage: 4%
4.5% (149/3305) 4.64% (25/538) 5.52% (45/814)
common-evm-utils Coverage: 70%
71.11% (1423/2001) 32.04% (314/980) 48.22% (393/815)
sol-api Coverage: 96%
96.66% (29/30) 66.66% (6/9) 91.66% (11/12)
common-sol-utils Coverage: 74%
74.55% (167/224) 66.66% (18/27) 65.38% (51/78)
common-streams-utils Coverage: 91%
91.42% (1184/1295) 77.57% (415/535) 82.08% (426/519)
streams Coverage: 88%
88.19% (575/652) 68.81% (64/93) 87.94% (124/141)

Please sign in to comment.