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