diff --git a/.changeset/silent-carrots-glow.md b/.changeset/silent-carrots-glow.md new file mode 100644 index 0000000000..faf0c8f660 --- /dev/null +++ b/.changeset/silent-carrots-glow.md @@ -0,0 +1,5 @@ +--- +"@latticexyz/cli": minor +--- + +CLI `deploy`, `test`, `dev-contracts` no longer run `forge clean` before each deploy. We previously cleaned to ensure no outdated artifacts were checked into git (ABIs, typechain types, etc.). Now that all artifacts are gitignored, we can let forge use its cache again. diff --git a/packages/cli/src/commands/dev-contracts.ts b/packages/cli/src/commands/dev-contracts.ts index 2cbfe1b062..6ef7fd6da7 100644 --- a/packages/cli/src/commands/dev-contracts.ts +++ b/packages/cli/src/commands/dev-contracts.ts @@ -76,7 +76,6 @@ const commandModule: CommandModule { ) ); - if (opts.clean) { - await forge(["clean"], { profile }); - } - // Run forge build if (!opts.skipBuild) { const outPath = path.join(srcDir, config.codegenDirectory);