@@ -42,15 +42,13 @@ export async function main(): Promise<void> {
4242 }
4343 const targets = process . argv . includes ( '--host' )
4444 ? [
45- resolveSeaTarget (
46- process . platform ,
47- process . arch ,
48- (
45+ resolveSeaTarget ( process . platform , process . arch , {
46+ glibc : (
4947 process . report . getReport ( ) as {
5048 header : { glibcVersionRuntime ?: string | undefined }
5149 }
5250 ) . header . glibcVersionRuntime ,
53- ) ,
51+ } ) ,
5452 ]
5553 : SEA_TARGETS
5654 for ( const target of targets ) {
@@ -62,15 +60,13 @@ export async function main(): Promise<void> {
6260 )
6361 }
6462 }
65- const host = resolveSeaTarget (
66- process . platform ,
67- process . arch ,
68- (
63+ const host = resolveSeaTarget ( process . platform , process . arch , {
64+ glibc : (
6965 process . report . getReport ( ) as {
7066 header : { glibcVersionRuntime ?: string | undefined }
7167 }
7268 ) . header . glibcVersionRuntime ,
73- )
69+ } )
7470 for ( const args of [ [ '--version' ] , [ '--help' ] , [ 'npm' , '--version' ] ] ) {
7571 const result = await spawn ( seaBinaryPath ( host ) , args , {
7672 stdio : 'pipe' ,
@@ -89,11 +85,13 @@ export async function main(): Promise<void> {
8985 }
9086}
9187
88+ const SCRIPT_META = {
89+ describe : 'verify socket SEA artifact integrity and execution' ,
90+ heavyJob : 'test' as const ,
91+ help : 'Usage: pnpm run check:sea-package [--host]' ,
92+ json : 'native' as const ,
93+ }
94+
9295if ( isMainModule ( import . meta. url ) ) {
93- runMain ( main , {
94- describe : 'verify socket SEA artifact integrity and execution' ,
95- help : 'Usage: pnpm run check:sea-package [--host]' ,
96- json : 'native' ,
97- heavyJob : 'test' ,
98- } )
96+ runMain ( main , SCRIPT_META )
9997}
0 commit comments