Packages

Lightweight Erlang validator (erlang_standard default, LIVR opt-in)

Current section

Files

Jump to
liver rebar.config.script
Raw

rebar.config.script

%% rebar.config.script — jsx only when OTP json is unavailable (< 27).
OTP = list_to_integer(erlang:system_info(otp_release)),
Deps = case OTP < 27 of
    true -> [{jsx, "3.1.0"}];
    false -> []
end,
NewConfig = lists:keystore(deps, 1, CONFIG, {deps, Deps}),
NewConfig.