Skip to content

Commit

Permalink
fix: use pnpm workspace yaml file with pnpm happs
Browse files Browse the repository at this point in the history
  • Loading branch information
c12i committed Jul 22, 2024
1 parent 6cb5a8d commit f2e31b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scaffold/web_app/package_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl PackageManager {
match self {
PackageManager::Npm => "npm install",
PackageManager::Yarn => "yarn install",
PackageManager::Pnpm => "pnpm -r install",
PackageManager::Pnpm => "pnpm install",
PackageManager::Bun => "bun install",
}
}
Expand Down Expand Up @@ -227,7 +227,7 @@ mod tests {
fn test_run_with_pnpm() {
let app_file_tree = setup_filetree("pnpm-lock.yaml");
let package_manager = PackageManager::try_from(&app_file_tree).unwrap();
let expected_command = "pnpm -r install";
let expected_command = "pnpm install";
let actual_command = package_manager.run_command_string(SubCommand::Install, None);
assert_eq!(expected_command, actual_command);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packages:
- "ui"
- "tests"

0 comments on commit f2e31b3

Please sign in to comment.