Skip to content

Commit

Permalink
fix(packages/cli): pacakge manager yarn error (#56)
Browse files Browse the repository at this point in the history
* fix(packages/cli): pacakge manager yarn error

* Create tiny-pumpkins-remain.md

---------

Co-authored-by: Stefan E-K <stefan.eideloth@gmail.com>
  • Loading branch information
m3rashid and sek-consulting authored Jan 18, 2024
1 parent 8e2e401 commit 2662d33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tiny-pumpkins-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"solidui-cli": patch
---

fix(packages/cli): pacakge manager yarn error
4 changes: 3 additions & 1 deletion packages/cli/src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ async function installDeps() {
})

runCommand(
`${packageManager as string} install ${PROJECT_DEPS.join(" ")}`,
`${packageManager as string} ${
packageManager === "yarn" ? "add" : "install"
} ${PROJECT_DEPS.join(" ")}`,
"Installing Solid UI Component dependencies",
"Dependencies installed"
)
Expand Down

0 comments on commit 2662d33

Please sign in to comment.