From f78aa34c10875e1091b5fecebb224e4297991507 Mon Sep 17 00:00:00 2001 From: Vrganj Date: Sat, 16 Jan 2021 13:14:46 +0100 Subject: [PATCH] Read file as string in CLI --- cli/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/index.js b/cli/src/index.js index c53d132..02fdd56 100644 --- a/cli/src/index.js +++ b/cli/src/index.js @@ -15,7 +15,7 @@ const [languageName, sourceFile, ...args] = process.argv.slice(2); return; } - const source = readFileSync(sourceFile); + const source = readFileSync(sourceFile).toString(); const language = languages.find(language => language.name === languageName);