We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec0f285 commit e1370deCopy full SHA for e1370de
src/index.ts
@@ -365,16 +365,15 @@ prog
365
let successKiller: Killer = null;
366
let failureKiller: Killer = null;
367
368
- function run(command: string) {
369
- if (command) {
370
- const [exec, ...args] = command.split(' ');
371
-
372
- return execa(exec, args, {
373
- stdio: 'inherit',
374
- });
+ function run(command?: string) {
+ if (!command) {
+ return null;
375
}
376
377
- return null;
+ const [exec, ...args] = command.split(' ');
+ return execa(exec, args, {
+ stdio: 'inherit',
+ });
378
379
380
function killHooks() {
0 commit comments