Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ben McCann <[email protected]>
  • Loading branch information
antfu and benmccann authored Aug 26, 2024
1 parent 54eaeb3 commit 7782135
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"picocolors": "^1.0.1",
"taze": "^0.16.3",
"terminal-link": "^3.0.0",
"tinyexec": "^0.2.0",
"tinyexec": "^0.3.0",
"tinyglobby": "^0.2.2",
"tsx": "^4.17.0",
"typescript": "^5.5.4",
Expand Down
1 change: 1 addition & 0 deletions src/detect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export async function detect({ autoInstall, programmatic, cwd }: DetectOptions =
stdio: 'inherit',
cwd,
},
throwOnError: true,
},
)
}
Expand Down
2 changes: 2 additions & 0 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export async function run(fn: Runner, args: string[], options: DetectOptions = {
nodeOptions: {
cwd,
},
throwOnError: true,
} satisfies Partial<TinyExecOptions>
const getV = (a: string) => {
const [command, ...xArguments] = getCmd(a as Agent).split(' ')
Expand Down Expand Up @@ -155,5 +156,6 @@ export async function run(fn: Runner, args: string[], options: DetectOptions = {
stdio: 'inherit',
cwd,
},
throwOnError: true,
})
}

0 comments on commit 7782135

Please sign in to comment.