diff --git a/.changeset/chatty-news-join.md b/.changeset/chatty-news-join.md deleted file mode 100644 index 51c890b523..0000000000 --- a/.changeset/chatty-news-join.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/cli": patch ---- - -Fixes an issue in development where contracts were built twice on contract changes. diff --git a/packages/cli/src/commands/dev-contracts.ts b/packages/cli/src/commands/dev-contracts.ts index 70220e7977..ef65a09e4a 100644 --- a/packages/cli/src/commands/dev-contracts.ts +++ b/packages/cli/src/commands/dev-contracts.ts @@ -140,6 +140,9 @@ const commandModule: CommandModule = { // 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"]);