From 04d0d7a1dbd23cb20fd040e6f4c4e2de7a1216e8 Mon Sep 17 00:00:00 2001 From: tynanbe Date: Sun, 4 Dec 2022 20:50:40 -0600 Subject: [PATCH] Remove out dir before running gleam compile-package --- lib/mix/tasks/compile/gleam.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mix/tasks/compile/gleam.ex b/lib/mix/tasks/compile/gleam.ex index 601ae51..ed341ff 100644 --- a/lib/mix/tasks/compile/gleam.ex +++ b/lib/mix/tasks/compile/gleam.ex @@ -166,6 +166,8 @@ defmodule Mix.Tasks.Compile.Gleam do "." end + File.rm_rf!(out) + cmd = "gleam compile-package --target erlang --no-beam --package #{package} --out #{out} --lib #{lib}"