From 4bfe4834e2b93eb0f4baf9816df2b1063a249606 Mon Sep 17 00:00:00 2001 From: mdgriffith Date: Sun, 25 Oct 2020 15:33:12 -0400 Subject: [PATCH] exist with failure if no js output is generated fromt he elm-compiler --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index cd54710..c3d92a8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -47,6 +47,8 @@ async function run(inputFilePath: string | undefined) { }); if (jsSource != '') { console.log('Compiled, optimizing JS...'); + } else { + process.exit(1) } } else { console.error('Please provide a path to an Elm file.');