소스 검색

fix(cta): account for null args

amrbashir 3 년 전
부모
커밋
e25fc68da6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tooling/create-tauri-app/src/shell.ts

+ 1 - 1
tooling/create-tauri-app/src/shell.ts

@@ -24,7 +24,7 @@ export const shell = async (
       if (log) console.log(`[running]: ${command}`)
       return await execa(
         command,
-        args.filter((e) => e !== ''),
+        (args ?? []).filter((e) => e !== ''),
         {
           stdio: 'inherit',
           cwd: process.cwd(),