Эх сурвалжийг харах

fix(cta): account for null args

amrbashir 3 жил өмнө
parent
commit
e25fc68da6

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

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