Skip to content

Commit

Permalink
fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Aug 19, 2024
1 parent 1462f5c commit ea109cb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion demo/angular/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ fs.writeFileSync(

const command = (process.platform === "win32") ? "npx.cmd" : "npx";

child_process.fork("ng", commands, {
child_process.spawn("ng", commands, {
execPath: command,
shell: true
});
3 changes: 2 additions & 1 deletion demo/react-native/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ fs.writeFileSync(

const command = process.platform === 'win32' ? 'npx.cmd' : 'npx';

child_process.fork('react-native', commands, {
child_process.spawn("react-native", commands, {
execPath: command,
shell: true
});
3 changes: 2 additions & 1 deletion demo/react/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ fs.writeFileSync(

const command = (process.platform === "win32") ? "npx.cmd" : "npx";

child_process.fork("react-scripts", commands, {
child_process.spawn("react-scripts", commands, {
execPath: command,
shell: true
});
3 changes: 2 additions & 1 deletion demo/vue/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export default porcupineModel;

const command = (process.platform === "win32") ? "npx.cmd" : "npx";

child_process.fork("vite", commands, {
child_process.spawn("vite", commands, {
execPath: command,
shell: true
});
3 changes: 2 additions & 1 deletion demo/web/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ fs.writeFileSync(

const command = (process.platform === "win32") ? "npx.cmd" : "npx";

child_process.fork("http-server", ["-a", "localhost", "-p", "5000"], {
child_process.spawn("http-server", ["-a", "localhost", "-p", "5000"], {
execPath: command,
shell: true
});

0 comments on commit ea109cb

Please sign in to comment.