1 parent e47f89e commit 13554aaCopy full SHA for 13554aa
1 file changed
scripts/repo/cli-build/sea/check.mts
@@ -71,14 +71,14 @@ export async function main(): Promise<void> {
71
}
72
).header.glibcVersionRuntime,
73
)
74
- for (const arg of ['--version', '--help']) {
75
- const result = await spawn(seaBinaryPath(host), [arg], {
+ for (const args of [['--version'], ['--help'], ['npm', '--version']]) {
+ const result = await spawn(seaBinaryPath(host), args, {
76
stdio: 'pipe',
77
timeout: 60_000,
78
})
79
if (result.code !== 0 || !result.stdout.toString().trim()) {
80
throw new Error(
81
- `SEA smoke test failed for ${arg}: ${result.stderr}. Rebuild the executable.`,
+ `SEA smoke test failed for ${args.join(' ')}: ${result.stderr}. Rebuild the executable.`,
82
83
84
0 commit comments