Skip to content

Commit 80c62dd

Browse files
committed
Fix preferred_envs warning in mix.exs
1 parent f869654 commit 80c62dd

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

mix.exs

+12-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ defmodule Cmp.MixProject do
1111
elixir: "~> 1.13",
1212
start_permanent: Mix.env() == :prod,
1313
deps: deps(),
14-
preferred_cli_env: [
15-
docs: :docs,
16-
"hex.publish": :docs,
17-
dialyzer: :test,
18-
"test.unit": :test,
19-
"test.prop": :test
20-
],
2114
dialyzer: [flags: [:missing_return, :extra_return]],
2215
aliases: aliases(),
2316
consolidate_protocols: Mix.env() != :test,
@@ -63,6 +56,18 @@ defmodule Cmp.MixProject do
6356
]
6457
end
6558

59+
def cli do
60+
[
61+
preferred_envs: [
62+
docs: :docs,
63+
"hex.publish": :docs,
64+
dialyzer: :test,
65+
"test.unit": :test,
66+
"test.prop": :test
67+
]
68+
]
69+
end
70+
6671
defp docs do
6772
[
6873
main: "Cmp",

0 commit comments

Comments
 (0)