Skip to content

Commit

Permalink
fix(cli): don't build twice on contract changes (#1480)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Sep 14, 2023
1 parent 6bff860 commit bbcca44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/chatty-news-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/cli": patch
---

Fixes an issue in development where contracts were built twice on contract changes.
3 changes: 0 additions & 3 deletions packages/cli/src/commands/dev-contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ 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 bbcca44

Please sign in to comment.