Skip to content

Commit 639955b

Browse files
authoredSep 14, 2023
Revert "fix(cli): don't build twice on contract changes" (latticexyz#1485)
1 parent f8a01a0 commit 639955b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
 

‎.changeset/chatty-news-join.md

-5
This file was deleted.

‎packages/cli/src/commands/dev-contracts.ts

+3
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ const commandModule: CommandModule<Options, Options> = {
140140
// Run worldgen to generate interfaces based on the systems
141141
await worldgenHandler({ config, clean: true, srcDir: srcDirectory });
142142

143+
// Build the contracts
144+
await forge(["build"]);
145+
143146
// Generate TS-friendly ABI files
144147
// We rebuild into a separate dir to have a clean set of ABIs without test/script contracts
145148
await forge(["build", "--extra-output-files", "abi", "--out", "abi", "--skip", "test", "script", "MudTest.sol"]);

0 commit comments

Comments
 (0)
Please sign in to comment.