Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support .config/ dir #5204

Open
4 tasks done
pi0 opened this issue Feb 14, 2024 · 1 comment
Open
4 tasks done

Support .config/ dir #5204

pi0 opened this issue Feb 14, 2024 · 1 comment

Comments

@pi0
Copy link
Contributor

pi0 commented Feb 14, 2024

Clear and concise description of the problem

Due to a lack of standards for where tools store their configuration, the number of top-level configuration files in projects is increasing day by day. See .config dir proposal for more context.

Suggested solution

I propose supporting .config/vitest.js and .config/vitest.config.js as alternative places to check and load vite configuration if top-level vitest.config.ts does not exist to unblock adopting this new convention across the ecosystem.

Is it too early? While it can take a while to onboard more tools with this new convention, it will be an egg-and-chicken problem to adopt a new convention like this unless more mainstream tools onboard to support it.

Implementation

It seems we can easily append .config/ variants to CONFIG_NAMES and WORKSPACE_NAMES arrays.

Alternative

See relevant discussions.

Additional context

(parent issue in vite: vitejs/vite#15911)

Validations

@AriPerkkio
Copy link
Member

Should this be applied to vitest.workspace.ts and its other formats too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants