File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ module Cssbundling
25
25
case tool
26
26
when :bun then "bun install"
27
27
when :yarn then "yarn install"
28
+ when :pnpm then "pnpm install"
28
29
when :npm then "npm install"
29
30
else raise "cssbundling-rails: No suitable tool found for installing JavaScript dependencies"
30
31
end
@@ -34,6 +35,7 @@ module Cssbundling
34
35
case tool
35
36
when :bun then "bun run build:css"
36
37
when :yarn then "yarn build:css"
38
+ when :pnpm then "pnpm build:css"
37
39
when :npm then "npm run build:css"
38
40
else raise "cssbundling-rails: No suitable tool found for building CSS"
39
41
end
@@ -43,9 +45,11 @@ module Cssbundling
43
45
case
44
46
when File . exist? ( 'bun.lockb' ) then :bun
45
47
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
47
50
when tool_exists? ( 'bun' ) then :bun
48
51
when tool_exists? ( 'yarn' ) then :yarn
52
+ when tool_exists? ( 'pnpm' ) then :pnpm
49
53
when tool_exists? ( 'npm' ) then :npm
50
54
end
51
55
end
You can’t perform that action at this time.
0 commit comments