0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-31 23:31:30 -05:00

chore: UpdatepossibleConfigFiles (#9600)

* Add `.ts` to list of `possibleConfigFiles`

* Add more options

* Create many-rules-kick.md

* Update .changeset/many-rules-kick.md

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
This commit is contained in:
Jacob Lamb 2024-01-05 02:17:20 -08:00 committed by GitHub
parent 218ea0781b
commit 47b951b388
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,7 @@
---
'astro': patch
---
Improves tailwind config file detection when adding the tailwind integration using `astro add tailwind`
Tailwind config file ending in `.ts`, `.mts` or `.cts` will now be used instead of creating a new `tailwind.config.mjs` when the tailwind integration is added using `astro add tailwind`.

View file

@ -160,6 +160,9 @@ export async function add(names: string[], { flags }: AddOptions) {
possibleConfigFiles: [
'./tailwind.config.cjs',
'./tailwind.config.mjs',
'./tailwind.config.ts',
'./tailwind.config.mts',
'./tailwind.config.cts',
'./tailwind.config.js',
],
defaultConfigFile: './tailwind.config.mjs',