Skip to content

Commit

Permalink
Add support for detecting pnpm build tool
Browse files Browse the repository at this point in the history
  • Loading branch information
jkogara committed Jul 21, 2024
1 parent c73fc65 commit 949cbf6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/generators/turbo_mount/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def install_nodejs
case build_tool
when "npm"
run "npm install turbo-mount #{FRAMEWORKS[framework][:npm_packages]}"
when "pnpm"
run "pnpm install turbo-mount #{FRAMEWORKS[framework][:npm_packages]}"
when "yarn"
run "yarn add turbo-mount #{FRAMEWORKS[framework][:npm_packages]}"
when "bun"
Expand Down Expand Up @@ -106,6 +108,8 @@ def detect_build_tool
if Rails.root.join("package.json").exist?
if Rails.root.join("package-lock.json").exist?
"npm"
elsif Rails.root.join("pnpm-lock.yaml").exist?
"pnpm"
elsif Rails.root.join("bun.config.js").exist?
"bun"
else
Expand Down

0 comments on commit 949cbf6

Please sign in to comment.