Run lamdera compiler instead of elm to make wire encoders available.

This commit is contained in:
Dillon Kearns 2022-01-26 14:27:15 -08:00
parent ffb3656d12
commit b979c5bc3c
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ async function ensureRequiredDirs() {
async function ensureRequiredExecutables() {
try {
await which("elm");
await which("lamdera");
} catch (error) {
throw "I couldn't find elm on the PATH. Please ensure it's installed, either globally, or locally. If it's installed locally, ensure you're running through an NPM script or with npx so the PATH is configured to include it.";
}
@ -234,7 +234,7 @@ async function spawnElmMake(options, elmEntrypointPath, outputPath, cwd) {
function runElmMake(options, elmEntrypointPath, outputPath, cwd) {
return new Promise(async (resolve, reject) => {
const subprocess = spawnCallback(
`elm`,
`lamdera`,
[
"make",
elmEntrypointPath,

View File

@ -53,7 +53,7 @@ async function runElm(options, elmEntrypointPath, outputPath, cwd) {
const startTime = Date.now();
return new Promise((resolve, reject) => {
const child = spawnCallback(
`elm`,
`lamdera`,
[
"make",
elmEntrypointPath,