Skip to content

Commit

Permalink
Skip run if project has no ABIs (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau committed Nov 1, 2022
1 parent b28833c commit bbc9656
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fast-hornets-trade.md
@@ -0,0 +1,5 @@
---
'typechain': patch
---

Skip run if project has no ABIs
5 changes: 5 additions & 0 deletions packages/typechain/src/typechain/runTypeChain.ts
Expand Up @@ -22,6 +22,11 @@ export const DEFAULT_FLAGS: CodegenConfig = {

export async function runTypeChain(publicConfig: PublicConfig): Promise<Result> {
const allFiles = skipEmptyAbis(publicConfig.allFiles)
if (allFiles.length === 0) {
return {
filesGenerated: 0,
}
}

// skip empty paths
const config: Config = {
Expand Down

0 comments on commit bbc9656

Please sign in to comment.