Read file as string in CLI
This commit is contained in:
parent
d8b6379b9a
commit
f78aa34c10
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue