Skip to content

Commit

Permalink
Fix usage of generated package that won't contain blend/premix.exs
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoefmoraes committed Sep 13, 2024
1 parent 615702e commit 067d028
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 067d028

Please sign in to comment.