False positive unused file for Vercel vercel.ts config
What happened?
fallow dead-code reports apps/web/vercel.ts as an unused file, but Vercel treats vercel.ts as a project configuration file that is discovered and executed by convention.
The file is not imported by application source, so it looks unused to a pure import graph. It should be treated as a Vercel config entrypoint.
Reproduced the reported error: Yes. I built the CLI from the unmodified tree and ran it against a monorepo reproducing the issue (apps/web/package.json with vercel/@vercel/config devDeps + apps/web/vercel.ts). fallow dead-code reported apps/web/vercel.ts as an unused file, exactly as described.
Confirmed the fix resolves the error: Yes. After adding the new vercel plugin (registered in and ), the same project no longer reports ; shows the plugin active, and / are credited as tooling deps (no false ).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Fallow should treat Vercel programmatic config files as used config entrypoints when Vercel is active.
At minimum, the Vercel plugin/config detection should mark these app-root files as always used:
vercel.ts
vercel.js
vercel.mjs
vercel.cjs
vercel.mts
A fix could add these to the relevant Vercel plugin config/always-used patterns, similar to how other framework config files are protected from unused-file reporting.
Fallow version
2.85.0
Operating system
macOS
Configuration
Interface
No new interfaces are introduced.
ADDITIONAL ADVICE
Since you are given a git repository, you can use git commands to simplify your work.
For example, if you made a mistake and want to revert your changes, you can use git checkout <file> to restore the file to its original state.
You can also reset all changes in the repository using git reset --hard command.
Additionally, you can use git stash and git stash pop to temporarily save your changes and restore them later.
Finally, you can see the changes that you've made (which will be submitted when you call submit) using git status or git diff commands.
However you don't need to use git add or git commit before submitting your changes. In fact,
submit only submits currently unstaged changes because it uses git diff to get the changes that need to be submitted.
CHECKLIST
Before submitting your solution, please go over the following checklist and make sure you've done everything:
If an error was reported in the issue description, I have successfully reproduced it.
If an error was reported in the issue description, I have confirmed that my fix resolves the error.
I have thought about edge cases and made sure my fix handles them as well.
I have run existing tests in the repository that might have been affected by the change I made and confirmed that they pass.
I want you to list every bullet from this checklist and write your reasoning for why you think you did it or didn't need to.
Repository has been uploaded and your shell is currently at the repository root. Time to solve the issue!
(Current directory: /fallow, current file: none) bash-$
plugins/mod.rs
registry/builtin.rs
apps/web/vercel.ts
fallow list --plugins
vercel
vercel
@vercel/config
unused-dev-dependency
Edge cases: Covered .ts/.js/.mjs/.cjs/.mts plus vercel.json; root-level single package (activation from a root config file even without the vercel dependency), workspace packages (root-relative always-used patterns get the workspace prefix), nested app directories that are not declared workspaces (config-pattern match + resolve_config marking the discovered file used), script-based activation (vercel env pull), imports inside the config credited as referenced dependencies, and false-negative protection: a plain helper like src/lib/vercel.ts (not at a package root and without the documented config export) is still reported unused. Windows path separators are normalized when emitting discovered patterns.
Ran existing tests: Yes. cargo test -p fallow-core, cargo test -p fallow-cli, and cargo test --workspace all pass except the pre-existing, environment-caused failure fix_batch_aborts_when_a_target_directory_is_read_only (fails identically on the untouched tree because the sandbox runs as root). cargo clippy --workspace --all-targets and cargo fmt --all -- --check are clean. No existing test was modified and no new test files/fixtures were added; docs (README plugin counts, .claude/rules/plugins.md, .claude/rules/detection.md) and the CHANGELOG were updated per repo convention.