Skip to main content
Production mode restricts analysis to code that ships to users, ignoring test and development files.
Or set it in your config:

What changes in production mode

$ fallow dead-code --production

Type-only dependency detection

In production mode, fallow detects dependencies that are only imported via import type:
These packages belong in devDependencies since types are erased at runtime and don’t need to be installed in production.
In monorepos, production mode catches dependencies that should be devDependencies, keeping each package’s install footprint minimal.

Per-analysis production mode

Combined mode (bare fallow) and fallow audit can enable production mode per analysis instead of globally:
Use --production-health, --production-dead-code, or --production-dupes for one invocation, or FALLOW_PRODUCTION_HEALTH=true and the related env vars in CI. The global --production flag still enables production mode for every analysis. Precedence (highest to lowest): CLI flags, per-analysis env var, global FALLOW_PRODUCTION, config. CLI flags only enable; env vars and config can also disable. Worked examples:

See also

CI Integration

Use production mode in your CI pipeline for lean, fast checks.

Rules & Severity

Control which issue types are errors, warnings, or disabled.