diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b9bda9..b4fecb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ This project follows [Keep a Changelog](https://keepachangelog.com/) and [Semant ### Fixed - Fixed false positive secret detection for certain harmless attribute keys in codebase scanner. +- Fixed print fix bug ## [2.3.11] - 2025-12-13 diff --git a/README.md b/README.md index 20ea975..9e3dacc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # dotenv-diff -![Demo](./public/demo3.png) +![Demo](./public/demo3.gif) `dotenv-diff` scans your codebase to detect which environment variables are used and compares them against your `.env` or `.env.example` files. diff --git a/public/demo3.gif b/public/demo3.gif new file mode 100644 index 0000000..d122950 Binary files /dev/null and b/public/demo3.gif differ diff --git a/src/ui/shared/printAutoFix.ts b/src/ui/shared/printAutoFix.ts index 246e533..79d5832 100644 --- a/src/ui/shared/printAutoFix.ts +++ b/src/ui/shared/printAutoFix.ts @@ -41,7 +41,7 @@ export function printAutoFix( ), ); } - if (result.addedExample.length) { + if (result.addedExample.length && !result.addedEnv.length) { console.log( chalk.green( ` - Synced ${result.addedExample.length} keys to ${exampleName}: ${result.addedExample.join(', ')}`,