mirror of
https://github.com/mdgriffith/elm-optimize-level-2.git
synced 2024-11-25 22:50:42 +03:00
Throw an error if outputFilePath is not defined
This commit is contained in:
parent
ac3d1349af
commit
07dd5d2fe9
@ -19,6 +19,10 @@ export async function run(
|
|||||||
},
|
},
|
||||||
log: (message?: any, ...optionalParams: any[]) => void
|
log: (message?: any, ...optionalParams: any[]) => void
|
||||||
) {
|
) {
|
||||||
|
if (!options.outputFilePath) {
|
||||||
|
throw new Error('Missing an output file path');
|
||||||
|
}
|
||||||
|
|
||||||
const dirname = process.cwd();
|
const dirname = process.cwd();
|
||||||
let jsSource: string = '';
|
let jsSource: string = '';
|
||||||
let elmFilePath = undefined;
|
let elmFilePath = undefined;
|
||||||
|
Loading…
Reference in New Issue
Block a user