Skip to content

Commit

Permalink
fix: Some flags were being incorrectly assigned to config values (#1192)
Browse files Browse the repository at this point in the history
  • Loading branch information
ieedan authored Jul 18, 2024
1 parent 39d46e8 commit c2d1ed6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-ants-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shadcn-svelte": patch
---

fix: Fixes bug with incorrect flag assignments
4 changes: 2 additions & 2 deletions packages/cli/src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ async function promptForConfig(cwd: string, defaultConfig: Config | null, option
}

// Components Alias
let componentAlias = options.tailwindConfig;
let componentAlias = options.componentsAlias;
if (componentAlias === undefined) {
const promptResult = await p.text({
message: `Configure the import alias for ${highlight("components")}:`,
Expand All @@ -238,7 +238,7 @@ async function promptForConfig(cwd: string, defaultConfig: Config | null, option
}

// Utils Alias
let utilsAlias = options.tailwindConfig;
let utilsAlias = options.utilsAlias;
if (utilsAlias === undefined) {
const input = await p.text({
message: `Configure the import alias for ${highlight("utils")}:`,
Expand Down

0 comments on commit c2d1ed6

Please sign in to comment.