From e667ee808b5362ff215ba3faea028b526660eccb Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Fri, 13 Oct 2023 09:23:02 +0100 Subject: [PATCH] feat(cli): remove forge clean from deploy (#1759) --- .changeset/silent-carrots-glow.md | 5 +++++ packages/cli/src/commands/dev-contracts.ts | 1 - packages/cli/src/runDeploy.ts | 11 +---------- 3 files changed, 6 insertions(+), 11 deletions(-) create mode 100644 .changeset/silent-carrots-glow.md 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);