mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-27 11:05:46 +03:00
Fix condition for adding lamdera/codecs.
This commit is contained in:
parent
c418ab39c6
commit
a18075eea1
@ -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 😈
|
||||
|
Loading…
Reference in New Issue
Block a user