fix(core): update

This commit is contained in:
Philipp Kunz 2022-03-12 18:50:17 +01:00
parent b8332e1de4
commit b51cda08c4

View File

@ -19,8 +19,8 @@ export const runCli = async () => {
executor: 'bash'
});
smartshellInstance.exec(`node --loader ${tsNodeLoaderPath} ${pathToLoad} ${process.argv.reduce((prevArg, currentArg) => {
smartshellInstance.exec(`node --loader ${tsNodeLoaderPath} ${pathToLoad} ${process.argv.length > 0 ? process.argv.reduce((prevArg, currentArg) => {
return prevArg + ' ' + currentArg;
})}`);
}) : ''}`);
};