mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-08 06:28:37 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user