Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/configuration_and_flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ This creates a `dotenv-diff.config.json` file in the project root with an exampl

Path to a specific `.env` file (default: `.env`).

When `--env` is not specified, dotenv-diff automatically scans for the first matching file from the following list of default candidates (in order):

| File | Purpose |
|---|---|
| `.env` | Primary environment file |
| `.env.example` | Template / reference file |
| `.env.local` | Local overrides (not committed) |
| `.env.production` | Production-specific values |
| `.env.development` | Development-specific values |
| `.env.schema` | Schema / type definitions for env vars |

If none of these files exist, dotenv-diff will still scan your codebase for environment variable usage but will not compare results against an env file. In interactive mode you will be prompted to create one.

Example usage:

```bash
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
"@repo/eslint-config": "workspace:*",
"@repo/tsconfig": "workspace:*",
"@repo/vitest": "workspace:*",
"@types/node": "^25.9.3",
"@types/node": "^26.0.0",
"@types/prompts": "^2.4.9",
"@typescript-eslint/eslint-plugin": "^8.61.1",
"@typescript-eslint/parser": "^8.61.1",
"@typescript-eslint/eslint-plugin": "^8.62.0",
"@typescript-eslint/parser": "^8.62.0",
"@vitest/coverage-v8": "4.1.9",
"eslint": "^10.5.0",
"husky": "^9.1.7",
"lint-staged": "^17.0.7",
"lint-staged": "^17.0.8",
"prettier": "^3.8.4",
"turbo": "^2.9.18",
"typescript": "^6.0.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/@repo/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"format": "prettier --write \"**/*.{ts,js,json,md,yml}\""
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.61.1",
"@typescript-eslint/parser": "^8.61.1",
"@typescript-eslint/eslint-plugin": "^8.62.0",
"@typescript-eslint/parser": "^8.62.0",
"eslint": "^10.5.0"
}
}
Loading