@@ -24,7 +24,6 @@ function getFs() {
2424
2525 _fs = /*@__PURE__ */ require ( 'node:fs' )
2626 }
27- // biome-ignore lint/style/noNonNullAssertion: Initialized above.
2827 return _fs !
2928}
3029
@@ -39,7 +38,6 @@ function getPath() {
3938
4039 _path = /*@__PURE__ */ require ( 'node:path' )
4140 }
42- // biome-ignore lint/style/noNonNullAssertion: Initialized above.
4341 return _path !
4442}
4543
@@ -52,7 +50,6 @@ function getWhich() {
5250 if ( _which === undefined ) {
5351 _which = /*@__PURE__ */ require ( './external/which' )
5452 }
55- // biome-ignore lint/style/noNonNullAssertion: Initialized above.
5653 return _which !
5754}
5855
@@ -80,8 +77,7 @@ export async function execBin(
8077
8178 // Execute the binary directly.
8279 const binCommand = Array . isArray ( resolvedPath )
83- ? // biome-ignore lint/style/noNonNullAssertion: which always returns non-empty array.
84- resolvedPath [ 0 ] !
80+ ? resolvedPath [ 0 ] !
8581 : resolvedPath
8682 return await spawn ( binCommand , args ?? [ ] , options )
8783}
@@ -311,14 +307,12 @@ export function resolveBinPathSync(binPath: string): string {
311307 try {
312308 const resolved = whichBinSync ( binPath )
313309 if ( resolved ) {
314- // biome-ignore lint/style/noParameterAssign: Reassigning for normalization.
315310 binPath = resolved as string
316311 }
317312 } catch { }
318313 }
319314
320315 // Normalize the path once for consistent pattern matching.
321- // biome-ignore lint/style/noParameterAssign: Normalizing path for consistent handling.
322316 binPath = normalizePath ( binPath )
323317
324318 // Handle empty string that normalized to '.' (current directory)
@@ -339,9 +333,7 @@ export function resolveBinPathSync(binPath: string): string {
339333 const voltaPlatform = readJsonSync (
340334 path ?. join ( voltaUserPath , 'platform.json' ) ,
341335 { throws : false } ,
342- ) as
343- // biome-ignore lint/suspicious/noExplicitAny: Volta platform config structure is dynamic.
344- any
336+ ) as any
345337 const voltaNodeVersion = voltaPlatform ?. node ?. runtime
346338 const voltaNpmVersion = voltaPlatform ?. node ?. npm
347339 let voltaBinPath = ''
@@ -367,9 +359,7 @@ export function resolveBinPathSync(binPath: string): string {
367359 const binInfo = readJsonSync (
368360 path ?. join ( voltaUserBinPath , `${ basename } .json` ) ,
369361 { throws : false } ,
370- ) as
371- // biome-ignore lint/suspicious/noExplicitAny: Volta bin info structure is dynamic.
372- any
362+ ) as any
373363 const binPackage = binInfo ?. package
374364 if ( binPackage ) {
375365 voltaBinPath = path ?. join (
@@ -581,7 +571,6 @@ export function resolveBinPathSync(binPath: string): string {
581571 relPath = / (?< = " \$ b a s e d i r \/ ) .* (? = " $ a r g s \n ) / . exec ( source ) ?. [ 0 ] || ''
582572 }
583573 if ( relPath ) {
584- // biome-ignore lint/style/noParameterAssign: Resolving wrapper script target.
585574 binPath = normalizePath ( path ?. resolve ( path ?. dirname ( binPath ) , relPath ) )
586575 }
587576 }
@@ -607,7 +596,6 @@ export function resolveBinPathSync(binPath: string): string {
607596 const stats = fs ?. statSync ( baseBinPath )
608597 // Only use this path if it's a file (the shell script).
609598 if ( stats . isFile ( ) ) {
610- // biome-ignore lint/style/noParameterAssign: Fixing pnpm nested bin structure.
611599 binPath = normalizePath ( baseBinPath )
612600 // Recompute hasNoExt since we changed the path.
613601 hasNoExt = ! path ?. extname ( binPath )
@@ -670,7 +658,6 @@ export function resolveBinPathSync(binPath: string): string {
670658
671659 if ( relPath ) {
672660 // Resolve the relative path to handle .. segments properly.
673- // biome-ignore lint/style/noParameterAssign: Resolving shell script target.
674661 binPath = normalizePath ( path ?. resolve ( path ?. dirname ( binPath ) , relPath ) )
675662 }
676663 }
0 commit comments