Skip to content

Commit

Permalink
fix esm not being esm
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmgdr committed Dec 5, 2023
1 parent b49b0f1 commit 0a3da1c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 9 additions & 0 deletions packages/protocol/abis/tsconfig-esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"target": "ES2020",
"declaration": false,
"module": "ES2020",
"outDir": "./dist/esm"
},
}
1 change: 0 additions & 1 deletion packages/protocol/abis/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"resolveJsonModule": true,
"declaration": false,
"rootDir": "./src-generated",
"outDir": "./dist/esm"
},
"include": ["./src-generated"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ try {
child_process.execSync(`yarn wagmi generate`, { stdio: 'inherit' })

log('Compiling esm')
child_process.execSync(`yarn tsc -b ${path.join(ABIS_PACKAGE_SRC_DIR, 'tsconfig.json')}`, {
child_process.execSync(`yarn tsc -b ${path.join(ABIS_PACKAGE_SRC_DIR, 'tsconfig-esm.json')}`, {
stdio: 'inherit',
})

Expand Down

0 comments on commit 0a3da1c

Please sign in to comment.