fix(cli): Ensure .scss files are considered in getTailwindCssFile (#4797)

* fix(cli): Ensure .scss files are considered in getTailwindCssFile

- Updated getTailwindCssFile function to include .scss files when checking for Tailwind CSS configuration.
- This change ensures that .scss files are properly identified and handled, improving compatibility with projects using SCSS.

* chore: add changeset

---------

Co-authored-by: shadcn <m@shadcn.com>
This commit is contained in:
Shivang Rathore
2024-09-15 14:25:08 +05:30
committed by GitHub
parent 408760a93b
commit 207b69fe8d
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"shadcn-ui": patch
---
add scss support

View File

@@ -133,7 +133,7 @@ export async function getProjectType(cwd: string): Promise<ProjectType | null> {
}
export async function getTailwindCssFile(cwd: string) {
const files = await fg.glob("**/*.css", {
const files = await fg.glob(["**/*.css", "**/*.scss"], {
cwd,
deep: 3,
ignore: PROJECT_SHARED_IGNORE,