Fix condition for adding lamdera/codecs.

This commit is contained in:
Dillon Kearns 2023-03-24 11:40:10 -07:00
parent c418ab39c6
commit a18075eea1

View File

@ -31,7 +31,10 @@ function rewriteElmJsonHelp(elmJson, options) {
elmJson["source-directories"] = elmJson["source-directories"].map((item) => {
return "../../" + item;
});
if (options && options.executableName !== "elm") {
if (options && options.executableName === "elm") {
// elm, don't add lamdera/codecs
} else {
// lamdera, add codecs dependency
elmJson["dependencies"]["direct"]["lamdera/codecs"] = "1.0.0";
}
// 3. add our own secret My.elm module 😈