Skip to content

Commit 8d1a626

Browse files
committed
Support PNPM
1 parent d5420c6 commit 8d1a626

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/tasks/cssbundling/build.rake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module Cssbundling
2525
case tool
2626
when :bun then "bun install"
2727
when :yarn then "yarn install"
28+
when :pnpm then "pnpm install"
2829
when :npm then "npm install"
2930
else raise "cssbundling-rails: No suitable tool found for installing JavaScript dependencies"
3031
end
@@ -34,6 +35,7 @@ module Cssbundling
3435
case tool
3536
when :bun then "bun run build:css"
3637
when :yarn then "yarn build:css"
38+
when :pnpm then "pnpm build:css"
3739
when :npm then "npm run build:css"
3840
else raise "cssbundling-rails: No suitable tool found for building CSS"
3941
end
@@ -43,9 +45,11 @@ module Cssbundling
4345
case
4446
when File.exist?('bun.lockb') then :bun
4547
when File.exist?('yarn.lock') then :yarn
46-
when File.exists('package-lock.json') then :npm
48+
when File.exist?('pnpm-lock.yaml') then :pnpm
49+
when File.exist?('package-lock.json') then :npm
4750
when tool_exists?('bun') then :bun
4851
when tool_exists?('yarn') then :yarn
52+
when tool_exists?('pnpm') then :pnpm
4953
when tool_exists?('npm') then :npm
5054
end
5155
end

0 commit comments

Comments
 (0)