Production mode restricts analysis to code that ships to users, ignoring test and development files.Documentation Index
Fetch the complete documentation index at: https://docs.fallow.tools/llms.txt
Use this file to discover all available pages before exploring further.
What changes in production mode
| Behavior | Default | Production |
|---|---|---|
Test files (*.test.*, *.spec.*, __tests__/) | Included | Excluded |
Story files (*.stories.*) | Included | Excluded |
Mock files (__mocks__/) | Included | Excluded |
| Package.json scripts analyzed | All | Only start, build, serve, preview, prepare, prepublishOnly, postinstall, and pre/post lifecycle hooks for start, build, serve, install |
| Unused devDependencies | Reported | Skipped |
| Type-only dependencies | Not flagged | Flagged (should be devDependencies) |
$ fallow dead-code --production
Type-only dependency detection
In production mode, fallow detects dependencies that are only imported viaimport type:
devDependencies since types are erased at runtime and don’t need to be installed in production.
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.