We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c271a3f commit 6e6b50eCopy full SHA for 6e6b50e
lib/generators/ruby_ui/javascript_utils.rb
@@ -8,6 +8,8 @@ def install_js_package(package)
8
run "yarn add #{package}"
9
elsif using_npm?
10
run "npm install #{package}"
11
+ elsif using_pnpm?
12
+ run "pnpm install #{package}"
13
else
14
say "Could not detect the package manager, you need to install '#{package}' manually", :red
15
end
@@ -30,6 +32,8 @@ def using_importmap?
30
32
31
33
def using_npm? = File.exist?(Rails.root.join("package-lock.json"))
34
35
+ def using_pnpm? = File.exist?(Rails.root.join("pnpm-lock.yaml"))
36
+
37
def using_yarn? = File.exist?(Rails.root.join("yarn.lock"))
38
39
def pin_motion
0 commit comments