From 067d028a69a1944486cd57b1af757cf337b6f024 Mon Sep 17 00:00:00 2001 From: Tiago Moraes Date: Thu, 12 Sep 2024 22:36:16 -0300 Subject: [PATCH] Fix usage of generated package that won't contain blend/premix.exs --- mix.exs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 0775ffc..7c5d61d 100644 --- a/mix.exs +++ b/mix.exs @@ -1,4 +1,11 @@ -Code.compile_file("blend/premix.exs") +if File.exists?("blend/premix.exs") do + Code.compile_file("blend/premix.exs") +else + defmodule Blend.Premix do + def patch_project(project), do: project + def patch_deps(deps), do: deps + end +end defmodule Surface.Catalogue.MixProject do use Mix.Project