Skip to content

Commit bc6e119

Browse files
authored
fix: prepublish script errors (#644)
* fix: prepublish script errors Closes: #643 Signed-off-by: Tomás Migone <[email protected]>
1 parent 93b58ac commit bc6e119

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hardhat.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,9 @@ const config: HardhatUserConfig = {
154154
},
155155
abiExporter: {
156156
path: './build/abis',
157-
clear: false,
157+
clear: true,
158158
flat: true,
159+
runOnCompile: true,
159160
},
160161
tenderly: {
161162
project: 'graph-network',

scripts/prepublish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cp -R build/types/ dist/types/_src
1616
### Build Typechain bindings
1717

1818
# Build and create TS declarations
19-
tsc -d ${TYPECHAIN_DIR}/_src/*.ts --outdir ${TYPECHAIN_DIR}
19+
tsc -d ${TYPECHAIN_DIR}/_src/*.ts --outdir ${TYPECHAIN_DIR} --esModuleInterop
2020
# Copy back sources
2121
cp ${TYPECHAIN_DIR}/_src/*.ts ${TYPECHAIN_DIR}
2222
# Delete temporary src dir

0 commit comments

Comments
 (0)