Skip to content

Commit

Permalink
Revert "fix(cli): don't build twice on contract changes" (#1485)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Sep 14, 2023
1 parent f8a01a0 commit 639955b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .changeset/chatty-news-join.md

This file was deleted.

3 changes: 3 additions & 0 deletions packages/cli/src/commands/dev-contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ const commandModule: CommandModule<Options, Options> = {
// Run worldgen to generate interfaces based on the systems
await worldgenHandler({ config, clean: true, srcDir: srcDirectory });

// Build the contracts
await forge(["build"]);

// Generate TS-friendly ABI files
// We rebuild into a separate dir to have a clean set of ABIs without test/script contracts
await forge(["build", "--extra-output-files", "abi", "--out", "abi", "--skip", "test", "script", "MudTest.sol"]);
Expand Down

0 comments on commit 639955b

Please sign in to comment.