Skip to content

Commit

Permalink
fix: apply patch from tinylibs/tinyexec#41
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Dec 11, 2024
1 parent 56ecb3c commit fc371df
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 15 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@
"[email protected]": "patches/[email protected]",
"@types/[email protected]": "patches/@[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
"[email protected]": "patches/[email protected]",
"tinyexec": "patches/tinyexec.patch"
}
}
}
40 changes: 40 additions & 0 deletions patches/tinyexec.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
diff --git a/dist/main.cjs b/dist/main.cjs
index dcc8a29741f99dc5dbe2d812197ec512d92db682..9fcd951769284bf645a15833b1efc976816f9e71 100644
--- a/dist/main.cjs
+++ b/dist/main.cjs
@@ -509,12 +509,12 @@ var y = class {
if (!e)
throw new Error("No process was started");
let n = "", r = "";
- if (this._streamErr)
- for await (let o of this._streamErr)
- n += o.toString();
if (this._streamOut)
for await (let o of this._streamOut)
r += o.toString();
+ if (this._streamErr)
+ for await (let o of this._streamErr)
+ n += o.toString();
if (await this._processClosed, this._options?.stdin && await this._options.stdin, e.removeAllListeners(), this._thrownError)
throw this._thrownError;
let s = {
diff --git a/dist/main.js b/dist/main.js
index 52f8f317d27fff0279305dbaf998e310b46a34f4..cba25835975aa12fb3e01ee463bc89d7cf51ab92 100644
--- a/dist/main.js
+++ b/dist/main.js
@@ -513,12 +513,12 @@ var R = class {
if (!e)
throw new Error("No process was started");
let n = "", r = "";
- if (this._streamErr)
- for await (let o of this._streamErr)
- n += o.toString();
if (this._streamOut)
for await (let o of this._streamOut)
r += o.toString();
+ if (this._streamErr)
+ for await (let o of this._streamErr)
+ n += o.toString();
if (await this._processClosed, this._options?.stdin && await this._options.stdin, e.removeAllListeners(), this._thrownError)
throw this._thrownError;
let s = {
22 changes: 10 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test": "vitest --typecheck.enabled"
},
"devDependencies": {
"tinyexec": "^0.3.0",
"tinyexec": "^0.3.1",
"vite": "latest",
"vitest": "workspace:*"
}
Expand Down
2 changes: 1 addition & 1 deletion test/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "echo \"No tests\""
},
"devDependencies": {
"tinyexec": "^0.3.0",
"tinyexec": "^0.3.1",
"tinyrainbow": "^1.2.0",
"vite": "latest",
"vite-node": "workspace:*",
Expand Down

0 comments on commit fc371df

Please sign in to comment.