From b51cda08c451f60fcb0f71a3cfb8500d2f64aafb Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sat, 12 Mar 2022 18:50:17 +0100 Subject: [PATCH] fix(core): update --- ts/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/index.ts b/ts/index.ts index 248d37e..d7455b5 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -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; - })}`); + }) : ''}`); };