fix(core): update

This commit is contained in:
Philipp Kunz 2022-03-12 18:54:19 +01:00
parent ab3ec90245
commit 61ceb03962

View File

@ -19,6 +19,8 @@ export const runCli = async () => {
executor: 'bash'
});
// note: -> reduce on emtpy array does not work
// thus check needed before reducing the argv array
smartshellInstance.exec(`node --loader ${tsNodeLoaderPath} ${pathToLoad} ${process.argv.length > 0 ? process.argv.reduce((prevArg, currentArg) => {
return prevArg + ' ' + currentArg;
}) : ''}`);