Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
use spawn instead of spawnSync in async methods
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Apr 19, 2024
1 parent 4afc04c commit 43d2692
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion for-js/Velopack.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function nativeStartProcessBlocking(command_line) {
}
function nativeStartProcessAsync(command_line) {
return new Promise((resolve, reject) => {
const process = spawnSync(command_line[0], command_line.slice(1), {
const process = spawn(command_line[0], command_line.slice(1), {
encoding: "utf8",
});
let output = "";
Expand Down
2 changes: 1 addition & 1 deletion for-js/Velopack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function nativeStartProcessAsync(
command_line: readonly string[],
): Promise<string> {
return new Promise((resolve, reject) => {
const process = spawnSync(command_line[0], command_line.slice(1), {
const process = spawn(command_line[0], command_line.slice(1), {
encoding: "utf8",
});

Expand Down
2 changes: 1 addition & 1 deletion src/include/ts_begin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function nativeStartProcessBlocking(command_line: readonly string[]): string {

function nativeStartProcessAsync(command_line: readonly string[]): Promise<string> {
return new Promise((resolve, reject) => {
const process = spawnSync(command_line[0], command_line.slice(1), { encoding: "utf8" });
const process = spawn(command_line[0], command_line.slice(1), { encoding: "utf8" });

let output = '';
process.stdout.on('data', (data) => {
Expand Down

0 comments on commit 43d2692

Please sign in to comment.