Skip to content

Commit

Permalink
restored CommonJS bundle format. (#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
b4rtaz authored Mar 21, 2023
1 parent c7a682b commit 24af111
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/afraid-buses-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@moralisweb3/next': patch
'@moralisweb3/parse-server': patch
'@moralisweb3/react': patch
---

Restored CommonJS bundle format.
1 change: 1 addition & 0 deletions packages/apiUtils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
1 change: 1 addition & 0 deletions packages/aptosApi/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
1 change: 1 addition & 0 deletions packages/auth/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
1 change: 1 addition & 0 deletions packages/common/aptosUtils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
1 change: 1 addition & 0 deletions packages/common/authUtils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
1 change: 1 addition & 0 deletions packages/common/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
1 change: 1 addition & 0 deletions packages/common/evmUtils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
1 change: 1 addition & 0 deletions packages/common/solUtils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
1 change: 1 addition & 0 deletions packages/common/streamsUtils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
1 change: 1 addition & 0 deletions packages/evmApi/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
1 change: 1 addition & 0 deletions packages/evmUtils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
1 change: 1 addition & 0 deletions packages/moralis/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
1 change: 1 addition & 0 deletions packages/solApi/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
1 change: 1 addition & 0 deletions packages/solUtils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
1 change: 1 addition & 0 deletions packages/streams/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.package.json",
"compilerOptions": {
"module": "ES2015",
"outDir": "./build",
"declarationDir": "./build",
"rootDir": "./src"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"lib": ["ESNext"],
"module": "ES2015",
"module": "CommonJS",
"allowJs": true,
"moduleResolution": "node",
"noEmitOnError": true,
Expand Down

1 comment on commit 24af111

@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: 90%
92.59% (100/108) 83.33% (20/24) 86.2% (25/29)
evm-api Coverage: 100%
100% (83/83) 66.66% (6/9) 100% (51/51)
common-aptos-utils Coverage: 4%
4.81% (147/3054) 5.47% (25/457) 5.54% (44/793)
common-evm-utils Coverage: 65%
65.58% (1050/1601) 22.31% (162/726) 37.3% (238/638)
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.6% (1178/1286) 78.15% (415/531) 82.49% (424/514)
streams Coverage: 88%
87.81% (555/632) 65.88% (56/85) 87.59% (120/137)

Please sign in to comment.