Skip to content

Commit 281e0e2

Browse files
committed
fix: kill process signal
1 parent 07af86a commit 281e0e2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,11 @@ export async function buildSingle(
168168
ab = new AbortController()
169169
if (typeof onSuccess === 'string') {
170170
const p = exec(onSuccess, [], {
171-
nodeOptions: { shell: true, stdio: 'inherit' },
172-
signal: ab.signal,
171+
nodeOptions: {
172+
shell: true,
173+
stdio: 'inherit',
174+
signal: ab.signal,
175+
},
173176
})
174177
p.then(({ exitCode }) => {
175178
if (exitCode) {

0 commit comments

Comments
 (0)