Skip to content

Commit 1bb2e0a

Browse files
committed
make debounce-cmd fail if command fails
1 parent 42d736e commit 1bb2e0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/run.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function debounceCommand({
2323
command,
2424
}: DebounceCommandProps) {
2525
if (!debounceByTime && debounceByFiles.length === 0) {
26-
execSh(command)
26+
await execSh.promise(command)
2727
return
2828
}
2929

@@ -63,5 +63,5 @@ export async function debounceCommand({
6363
})
6464
cache.save(true)
6565

66-
execSh(command)
66+
await execSh.promise(command)
6767
}

0 commit comments

Comments
 (0)