Skip to content

Commit

Permalink
fix(cli): Ensure .scss files are considered in getTailwindCssFile (#4797
Browse files Browse the repository at this point in the history
)

* 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 <[email protected]>
  • Loading branch information
Wiper-R and shadcn authored Sep 15, 2024
1 parent 408760a commit 207b69f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilly-geckos-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shadcn-ui": patch
---

add scss support
2 changes: 1 addition & 1 deletion packages/cli/src/utils/get-project-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 207b69f

Please sign in to comment.