Skip to content

Commit

Permalink
run setup tasks synchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
thisistonydang authored and woutdp committed Nov 26, 2023
1 parent c099c22 commit 5e1b3fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/mix/tasks/setup.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ defmodule Mix.Tasks.LiveSvelte.Setup do
"configure_phoenix",
"configure_esbuild"
]
|> Enum.map(&Task.async(fn -> Mix.Task.run("live_svelte." <> &1) end))
|> Enum.map(&Task.await(&1, :infinity))
|> Enum.map(
&(Task.async(fn -> Mix.Task.run("live_svelte." <> &1) end)
|> Task.await(:infinity))
)

log_success("live_svelte setup finished.")
end
Expand Down

0 comments on commit 5e1b3fa

Please sign in to comment.