Skip to content

Commit 3954a36

Browse files
committed
fix: apply patch from tinylibs/tinyexec#41
1 parent ef1a5d7 commit 3954a36

File tree

5 files changed

+54
-15
lines changed

5 files changed

+54
-15
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787
8888
"@types/[email protected]": "patches/@[email protected]",
8989
90-
90+
91+
"tinyexec": "patches/tinyexec.patch"
9192
}
9293
}
9394
}

patches/tinyexec.patch

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
diff --git a/dist/main.cjs b/dist/main.cjs
2+
index dcc8a29741f99dc5dbe2d812197ec512d92db682..9fcd951769284bf645a15833b1efc976816f9e71 100644
3+
--- a/dist/main.cjs
4+
+++ b/dist/main.cjs
5+
@@ -509,12 +509,12 @@ var y = class {
6+
if (!e)
7+
throw new Error("No process was started");
8+
let n = "", r = "";
9+
- if (this._streamErr)
10+
- for await (let o of this._streamErr)
11+
- n += o.toString();
12+
if (this._streamOut)
13+
for await (let o of this._streamOut)
14+
r += o.toString();
15+
+ if (this._streamErr)
16+
+ for await (let o of this._streamErr)
17+
+ n += o.toString();
18+
if (await this._processClosed, this._options?.stdin && await this._options.stdin, e.removeAllListeners(), this._thrownError)
19+
throw this._thrownError;
20+
let s = {
21+
diff --git a/dist/main.js b/dist/main.js
22+
index 52f8f317d27fff0279305dbaf998e310b46a34f4..cba25835975aa12fb3e01ee463bc89d7cf51ab92 100644
23+
--- a/dist/main.js
24+
+++ b/dist/main.js
25+
@@ -513,12 +513,12 @@ var R = class {
26+
if (!e)
27+
throw new Error("No process was started");
28+
let n = "", r = "";
29+
- if (this._streamErr)
30+
- for await (let o of this._streamErr)
31+
- n += o.toString();
32+
if (this._streamOut)
33+
for await (let o of this._streamOut)
34+
r += o.toString();
35+
+ if (this._streamErr)
36+
+ for await (let o of this._streamErr)
37+
+ n += o.toString();
38+
if (await this._processClosed, this._options?.stdin && await this._options.stdin, e.removeAllListeners(), this._thrownError)
39+
throw this._thrownError;
40+
let s = {

pnpm-lock.yaml

Lines changed: 10 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"test": "vitest --typecheck.enabled"
77
},
88
"devDependencies": {
9-
"tinyexec": "^0.3.0",
9+
"tinyexec": "^0.3.1",
1010
"vite": "latest",
1111
"vitest": "workspace:*"
1212
}

test/test-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test": "echo \"No tests\""
88
},
99
"devDependencies": {
10-
"tinyexec": "^0.3.0",
10+
"tinyexec": "^0.3.1",
1111
"tinyrainbow": "^1.2.0",
1212
"vite": "latest",
1313
"vite-node": "workspace:*",

0 commit comments

Comments
 (0)