Skip to content

Commit ed6f85b

Browse files
authored
Don't autodisable overrides for js projects (#723)
* Don't autodisable overrides for js projects * Update docs
1 parent 1663b98 commit ed6f85b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/bright-roses-bathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@typechain/hardhat': patch
3+
---
4+
5+
Don't autodisable overrides for js projects

packages/hardhat/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module.exports = {
104104
target: 'ethers-v5',
105105
alwaysGenerateOverloads: false, // should overloads with full signatures like deposit(uint256) be generated always, even if there are no overloads?
106106
externalArtifacts: ['externalArtifacts/*.json'], // optional array of glob patterns with external artifacts to process (for example external libs from node_modules)
107-
dontOverrideCompile: false // defaults to true for javascript projects
107+
dontOverrideCompile: false // defaults to false
108108
},
109109
}
110110
```

packages/hardhat/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function getDefaultTypechainConfig(config: HardhatConfig): TypechainConfi
99
alwaysGenerateOverloads: false,
1010
discriminateTypes: false,
1111
tsNocheck: false,
12-
dontOverrideCompile: config.paths.configFile.endsWith('.js'),
12+
dontOverrideCompile: false,
1313
}
1414

1515
return {

0 commit comments

Comments
 (0)