False positive unused file for Vercel vercel.ts config What happened? fallow dead-code…
- User
False positive unused file for Vercel vercel.ts config
What happened?
fallow dead-codereportsapps/web/vercel.tsas an unused file, but Vercel treatsvercel.tsas 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.
Vercel docs say:
vercel.tsconfigures and overrides Vercel project behavior.- Unlike
vercel.json,vercel.tsexecutes at build time. - The final config must be exported as
config. - Vercel also supports
vercel.js,vercel.mjs,vercel.cjs, andvercel.mts.
The
@vercel/configpackage also treatsvercel.tsas the config input:packages/config/README.mdsays to create avercel.tsfile in the project root.packages/config/README.mdsaysvercel.tsis automatically compiled duringvercel build,vercel dev, andvercel deploy.packages/config/src/cli.tsresolvesprocess.cwd()/vercel.ts.packages/config/src/cli.tsimports the config module and collects named exports.- shows the expected shape.
- Assistant
I’ll trace the existing Vercel plugin and its dead-code fixtures, then add the convention-based entrypoints and focused regression coverage.
- Assistant
rgisn’t installed in this checkout, so I’m using targetedfind/grepsearches. I’m also checking the repository guidance before editing. - Assistant
The repository has no Vercel plugin yet. I’m adding one that activates from either
vercel/@vercel/configdependencies or avercelscript command, protects all five documented root config variants, and recognizes the required namedconfigexport. - Assistant
The implementation and regression test are in place. I’m running the focused core test set now; after that I’ll check formatting, lint-level compilation, and the final diff.
- Assistant
The plugin unit tests passed. The end-to-end assertion exposed that temporary-project findings retain absolute paths, so I’m correcting the test’s path normalization before rerunning it; the implementation itself compiled cleanly.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.