File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
15
15
import assert from 'node:assert'
16
- import { spawn , StdioNull , StdioPipe } from 'node:child_process'
16
+ import { spawn , spawnSync , StdioNull , StdioPipe } from 'node:child_process'
17
17
import { AsyncLocalStorage , createHook } from 'node:async_hooks'
18
18
import { Readable , Writable } from 'node:stream'
19
19
import { inspect } from 'node:util'
@@ -65,6 +65,7 @@ export interface Options {
65
65
quote : typeof quote
66
66
quiet : boolean
67
67
spawn : typeof spawn
68
+ spawnSync : typeof spawnSync
68
69
log : typeof log
69
70
}
70
71
@@ -92,6 +93,7 @@ export const defaults: Options = {
92
93
throw new Error ( 'No quote function is defined: https://ï.at/no-quote-func' )
93
94
} ,
94
95
spawn,
96
+ spawnSync,
95
97
log,
96
98
}
97
99
const isWin = process . platform == 'win32'
@@ -238,6 +240,7 @@ export class ProcessPromise extends Promise<ProcessOutput> {
238
240
shell : typeof $ . shell === 'string' ? $ . shell : true ,
239
241
env : $ . env ,
240
242
spawn : $ . spawn ,
243
+ spawnSync : $ . spawnSync ,
241
244
stdio : this . _stdio as any ,
242
245
sync : $ [ syncExec ] ,
243
246
detached : ! isWin ,
You can’t perform that action at this time.
0 commit comments