Skip to content

Commit bbc9656

Browse files
authoredNov 1, 2022
Skip run if project has no ABIs (#786)
1 parent b28833c commit bbc9656

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
 

Diff for: ‎.changeset/fast-hornets-trade.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'typechain': patch
3+
---
4+
5+
Skip run if project has no ABIs

Diff for: ‎packages/typechain/src/typechain/runTypeChain.ts

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ export const DEFAULT_FLAGS: CodegenConfig = {
2222

2323
export async function runTypeChain(publicConfig: PublicConfig): Promise<Result> {
2424
const allFiles = skipEmptyAbis(publicConfig.allFiles)
25+
if (allFiles.length === 0) {
26+
return {
27+
filesGenerated: 0,
28+
}
29+
}
2530

2631
// skip empty paths
2732
const config: Config = {

0 commit comments

Comments
 (0)
Please sign in to comment.