Skip to content

Commit

Permalink
fix: use pnpm workspace yaml file with pnpm happs (holochain#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
c12i authored Jul 22, 2024
1 parent 6cb5a8d commit 84daa95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ setup_and_build_happ() {

nix develop --command bash -c "
set -e
pnpm -r install
pnpm install
pnpm --filter ui build
pnpm test
pnpm package
Expand All @@ -77,7 +77,7 @@ setup_and_build_hello_world() {

nix develop --command bash -c "
set -e
pnpm -r install
pnpm install
pnpm test
"
cd ..
Expand Down
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 84daa95

Please sign in to comment.