Skip to content

Commit 3b6c120

Browse files
authored
fix: handle nullable stdout/stderr (#943)
closes #942
1 parent 7711a5c commit 3b6c120

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

package-lock.json

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zx",
3-
"version": "8.2.1",
3+
"version": "8.2.2",
44
"description": "A tool for writing better scripts",
55
"type": "module",
66
"main": "./build/index.cjs",
@@ -80,7 +80,7 @@
8080
"test:smoke:tsx": "tsx test/smoke/ts.test.ts",
8181
"test:smoke:tsc": "cd test/smoke && mkdir -p node_modules && ln -s ../../../ ./node_modules/zx; ../../node_modules/typescript/bin/tsc -v && ../../node_modules/typescript/bin/tsc --esModuleInterop --module node16 --rootDir . --outdir ./temp ts.test.ts && node ./temp/ts.test.js",
8282
"test:smoke:ts-node": "node --loader ts-node/esm test/smoke/ts.test.ts",
83-
"test:smoke:bun": "bun test ./test/smoke/bun.test.js",
83+
"test:smoke:bun": "bun test ./test/smoke/bun.test.js && bun ./test/smoke/node.test.mjs",
8484
"test:smoke:win32": "node ./test/smoke/win32.test.js",
8585
"test:smoke:cjs": "node ./test/smoke/node.test.cjs",
8686
"test:smoke:mjs": "node ./test/smoke/node.test.mjs",
@@ -97,7 +97,7 @@
9797
"@types/node": ">=20.11.30",
9898
"@types/which": "^3.0.4",
9999
"@webpod/ingrid": "^0.0.0-beta.3",
100-
"@webpod/ps": "^0.0.0-beta.10",
100+
"@webpod/ps": "^0.0.0-beta.11",
101101
"c8": "^10.1.2",
102102
"chalk": "^5.3.0",
103103
"create-require": "^1.1.1",
@@ -124,7 +124,7 @@
124124
"typescript": "^5.6.3",
125125
"which": "^5.0.0",
126126
"yaml": "^2.5.1",
127-
"zurk": "^0.6.0"
127+
"zurk": "^0.6.2"
128128
},
129129
"publishConfig": {
130130
"registry": "https://wombat-dressing-room.appspot.com"

test/core.test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ describe('core', () => {
274274
})
275275

276276
test('inherit', async () => {
277-
await $({ stdio: 'inherit' })`ls`
277+
const r1 = (await $({ stdio: 'inherit' })`ls`).stdout
278+
const r2 = $.sync({ stdio: 'inherit' })`ls`.stdout
279+
assert.equal(r1, r2)
278280
})
279281

280282
test('file stream as stdout', async () => {

0 commit comments

Comments
 (0)