File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -120,13 +120,14 @@ if Code.ensure_loaded?(Igniter) do
120
120
defp install_daisyui ( igniter ) do
121
121
app_css_path = igniter . args . options [ :app_css_path ]
122
122
123
- with false <- Helpers . npm_package_installed? ( @ daisyui_version ) ,
123
+ with false <- Igniter . exists? ( igniter , "assets/vendor/daisyui.js" ) ,
124
+ false <- Helpers . npm_package_installed? ( @ daisyui_version ) ,
124
125
:ok <- install_daisyui_via_npm ( ) ,
125
126
igniter <- Helpers . add_line_to_file ( igniter , app_css_path , "@plugin \" daisyui\" " ) do
126
127
Igniter . add_notice ( igniter , "Installed daisyUI via npm." )
127
128
else
128
129
true ->
129
- Mix . shell ( ) . info ( "daisyui is already in package.json with the desired version . Skipping." )
130
+ Mix . shell ( ) . info ( "daisyui is already installed . Skipping." )
130
131
igniter
131
132
132
133
{ :error , error } ->
You can’t perform that action at this time.
0 commit comments