From 87dd2bde0a8efe68aac18ea5c82f1ac48aa970c3 Mon Sep 17 00:00:00 2001 From: ChristopherDedominici <18092467+ChristopherDedominici@users.noreply.github.com> Date: Tue, 14 Apr 2026 13:57:14 +0000 Subject: [PATCH 1/3] add gitignore rules --- .../hardhat-3/01-node-test-runner-viem/gitignore | 11 +++++++++++ .../templates/hardhat-3/02-mocha-ethers/gitignore | 11 +++++++++++ .../hardhat/templates/hardhat-3/03-minimal/gitignore | 11 +++++++++++ 3 files changed, 33 insertions(+) diff --git a/packages/hardhat/templates/hardhat-3/01-node-test-runner-viem/gitignore b/packages/hardhat/templates/hardhat-3/01-node-test-runner-viem/gitignore index 991a319eb0b..8a0137f2762 100644 --- a/packages/hardhat/templates/hardhat-3/01-node-test-runner-viem/gitignore +++ b/packages/hardhat/templates/hardhat-3/01-node-test-runner-viem/gitignore @@ -16,5 +16,16 @@ # Typechain output /types +# Environment files +.env +.env.* +!.env.example + # Hardhat coverage reports /coverage + +# Gas snapshot files +/.gas-snapshot + +# Snapshot cheatcodes output +/snapshots diff --git a/packages/hardhat/templates/hardhat-3/02-mocha-ethers/gitignore b/packages/hardhat/templates/hardhat-3/02-mocha-ethers/gitignore index 991a319eb0b..8a0137f2762 100644 --- a/packages/hardhat/templates/hardhat-3/02-mocha-ethers/gitignore +++ b/packages/hardhat/templates/hardhat-3/02-mocha-ethers/gitignore @@ -16,5 +16,16 @@ # Typechain output /types +# Environment files +.env +.env.* +!.env.example + # Hardhat coverage reports /coverage + +# Gas snapshot files +/.gas-snapshot + +# Snapshot cheatcodes output +/snapshots diff --git a/packages/hardhat/templates/hardhat-3/03-minimal/gitignore b/packages/hardhat/templates/hardhat-3/03-minimal/gitignore index 991a319eb0b..8a0137f2762 100644 --- a/packages/hardhat/templates/hardhat-3/03-minimal/gitignore +++ b/packages/hardhat/templates/hardhat-3/03-minimal/gitignore @@ -16,5 +16,16 @@ # Typechain output /types +# Environment files +.env +.env.* +!.env.example + # Hardhat coverage reports /coverage + +# Gas snapshot files +/.gas-snapshot + +# Snapshot cheatcodes output +/snapshots From f74cec9451958b85c9702ef77ee7eb6d963cd84b Mon Sep 17 00:00:00 2001 From: Christopher Dedominici <18092467+ChristopherDedominici@users.noreply.github.com> Date: Tue, 14 Apr 2026 15:59:18 +0200 Subject: [PATCH 2/3] Create moody-monkeys-jump.md --- .changeset/moody-monkeys-jump.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changeset/moody-monkeys-jump.md diff --git a/.changeset/moody-monkeys-jump.md b/.changeset/moody-monkeys-jump.md new file mode 100644 index 00000000000..2e54df17b07 --- /dev/null +++ b/.changeset/moody-monkeys-jump.md @@ -0,0 +1,8 @@ +--- +"hardhat": patch +"template-node-test-runner-viem": patch +"template-mocha-ethers": patch +"template-minimal": patch +--- + +Update `.gitignore` files in the sample projects to ignore snapshots and env files. From 32884c6b6ad2df886919710de48b4b966fd6ae61 Mon Sep 17 00:00:00 2001 From: Christopher Dedominici <18092467+ChristopherDedominici@users.noreply.github.com> Date: Tue, 14 Apr 2026 18:14:27 +0200 Subject: [PATCH 3/3] Apply suggestion from @alcuadrado Co-authored-by: Patricio Palladino --- .changeset/moody-monkeys-jump.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/.changeset/moody-monkeys-jump.md b/.changeset/moody-monkeys-jump.md index 2e54df17b07..8ae02861c22 100644 --- a/.changeset/moody-monkeys-jump.md +++ b/.changeset/moody-monkeys-jump.md @@ -1,8 +1,5 @@ --- "hardhat": patch -"template-node-test-runner-viem": patch -"template-mocha-ethers": patch -"template-minimal": patch --- Update `.gitignore` files in the sample projects to ignore snapshots and env files.