mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-28 06:05:31 +03:00
Run lamdera compiler instead of elm to make wire encoders available.
This commit is contained in:
parent
ffb3656d12
commit
b979c5bc3c
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user