From fae7cebcd129a540ab671b8b583536d0a59dc34a Mon Sep 17 00:00:00 2001 From: Yuri Kovalov Date: Tue, 4 Jul 2023 15:57:49 +0800 Subject: [PATCH] Add dialyxir to children apps Temporary fix: https://github.com/jeremyjh/dialyxir/issues/508#issuecomment-1612431161 --- apps/examples/mix.exs | 4 +++- apps/tai/mix.exs | 4 +++- mix.exs | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/examples/mix.exs b/apps/examples/mix.exs index 5850d6af4..12b5b2974 100644 --- a/apps/examples/mix.exs +++ b/apps/examples/mix.exs @@ -27,7 +27,9 @@ defmodule Examples.MixProject do defp deps do [ {:tai, in_umbrella: true}, - {:libcluster, "~> 3.2"} + {:libcluster, "~> 3.2"}, + + {:dialyxir, "~> 1.3", only: [:dev, :test], runtime: false} # TODO: remove after dialyzer umbprella support is added ] end diff --git a/apps/tai/mix.exs b/apps/tai/mix.exs index 57b353a8c..f261e3f64 100644 --- a/apps/tai/mix.exs +++ b/apps/tai/mix.exs @@ -84,7 +84,9 @@ defmodule Tai.Mixfile do {:logger_file_backend_with_formatters_stackdriver, "~> 0.0.4", only: [:dev, :test]}, {:echo_boy, "~> 0.6", runtime: false, optional: true}, {:mock, "~> 0.3", only: :test}, - {:ex_doc, ">= 0.0.0", only: :dev} + {:ex_doc, ">= 0.0.0", only: :dev}, + + {:dialyxir, "~> 1.3", only: [:dev, :test], runtime: false} # TODO: remove after dialyzer umbrella support is added ] end diff --git a/mix.exs b/mix.exs index 6f4632017..f889c5891 100644 --- a/mix.exs +++ b/mix.exs @@ -30,7 +30,7 @@ defmodule TaiMonorepo.MixProject do [ {:excoveralls, "~> 0.8", only: :test}, {:ex_unit_notifier, "~> 1.0", only: :test}, - {:dialyxir, "~> 1.3", only: :dev, runtime: false}, + {:dialyxir, "~> 1.3", only: [:dev, :test], runtime: false}, {:mix_test_watch, "~> 1.0", only: :dev, runtime: false}, {:licensir, "~> 0.6", only: :dev, runtime: false} ]