Skip to content

Commit 9fc21c6

Browse files
authored
Fix precommit task to use correct --warnings-as-errors flag (#6507)
1 parent 20b36ea commit 9fc21c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

installer/templates/phx_single/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ defmodule <%= @app_module %>.MixProject do
9090
"assets.deploy": [
9191
<%= Enum.map(@asset_builders, &" \"#{&1} #{@app_name} --minify\",\n") ++ [" \"phx.digest\""] %>
9292
]<% end %>,
93-
precommit: ["compile --warning-as-errors", "deps.unlock --unused", "format", "test"]
93+
precommit: ["compile --warnings-as-errors", "deps.unlock --unused", "format", "test"]
9494
]
9595
end
9696
end

installer/templates/phx_umbrella/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ defmodule <%= @root_app_module %>.MixProject do
5252
[
5353
# run `mix setup` in all child apps
5454
setup: ["cmd mix setup"],
55-
precommit: ["compile --warning-as-errors", "deps.unlock --unused", "format", "test"]
55+
precommit: ["compile --warnings-as-errors", "deps.unlock --unused", "format", "test"]
5656
]
5757
end
5858
end

0 commit comments

Comments
 (0)