Skip to content

Commit

Permalink
fix: syntax error #27
Browse files Browse the repository at this point in the history
  • Loading branch information
dlcastillop committed Nov 27, 2024
1 parent 7cdfaa9 commit 87deca3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export const init = new Command()
let path = options.path ?? SRC_PATH;

switch (projectTechStack) {
case ("astro" || "vite"):
case "astro":
case "vite":
const isUsingReact = isProjectUsingReact();
if (!isUsingReact) {
logger.error("The project is not using React. Exiting.");
Expand Down

0 comments on commit 87deca3

Please sign in to comment.