help wanted
Description
Do we ever consolidate protocols? Could have an issue for adding it later to avoid it blocking this addition.
Originally posted by @lpil in https://github.com/gleam-lang/gleam/pull/1741#discussion_r957089836
At the moment we don't. Here's how rebar_mix used to do it.
https://github.com/Supersonido/rebar_mix/blob/00ea7c800446f87a31db00b9c5987d0b76736226/src/rebar_mix_protocol_consolidation.exs
We could use the same or a similar Elixir script and make a directory alongside everything in build/dev/erlang. With something like consolidated/ebin there, it might just work?