From 8c7ef919ceb3d25c27387a0a7504110b246f809d Mon Sep 17 00:00:00 2001 From: Ian Lavery Date: Mon, 19 Aug 2024 16:14:57 -0700 Subject: [PATCH] fix --- demo/angular/scripts/run_demo.js | 2 +- demo/react-native/scripts/run_demo.js | 2 +- demo/react/scripts/run_demo.js | 2 +- demo/vue/scripts/run_demo.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/angular/scripts/run_demo.js b/demo/angular/scripts/run_demo.js index eb87fda41..4bc6eb870 100644 --- a/demo/angular/scripts/run_demo.js +++ b/demo/angular/scripts/run_demo.js @@ -106,7 +106,7 @@ fs.writeFileSync( const command = (process.platform === "win32") ? "npx.cmd" : "npx"; -child_process.execSync(`${command} ng ${args}`, { +child_process.execSync(`${command} ng ${args.join(" ")}`, { shell: true, stdio: 'inherit' }); diff --git a/demo/react-native/scripts/run_demo.js b/demo/react-native/scripts/run_demo.js index 1b1b5a47f..dca3d02e1 100644 --- a/demo/react-native/scripts/run_demo.js +++ b/demo/react-native/scripts/run_demo.js @@ -95,7 +95,7 @@ fs.writeFileSync( const command = process.platform === 'win32' ? 'npx.cmd' : 'npx'; -child_process.execSync(`${command} react-native ${args}`, { +child_process.execSync(`${command} react-native ${args.join(" ")}`, { shell: true, stdio: 'inherit' }); diff --git a/demo/react/scripts/run_demo.js b/demo/react/scripts/run_demo.js index 23425c080..b0c5e3cc0 100644 --- a/demo/react/scripts/run_demo.js +++ b/demo/react/scripts/run_demo.js @@ -106,7 +106,7 @@ fs.writeFileSync( const command = (process.platform === "win32") ? "npx.cmd" : "npx"; -child_process.execSync(`${command} react-scripts ${args}`, { +child_process.execSync(`${command} react-scripts ${args.join(" ")}`, { shell: true, stdio: 'inherit' }); diff --git a/demo/vue/scripts/run_demo.js b/demo/vue/scripts/run_demo.js index 408526db5..52c90e8d6 100644 --- a/demo/vue/scripts/run_demo.js +++ b/demo/vue/scripts/run_demo.js @@ -102,7 +102,7 @@ export default porcupineModel; const command = (process.platform === "win32") ? "npx.cmd" : "npx"; -child_process.execSync(`${command} vite ${args}`, { +child_process.execSync(`${command} vite ${args.join(" ")}`, { shell: true, stdio: 'inherit' });