( stagingPath: string, installPath: string, downloadType: 'npm' | 'binary', )
| 410 | } |
| 411 | |
| 412 | async function installVersion( |
| 413 | stagingPath: string, |
| 414 | installPath: string, |
| 415 | downloadType: 'npm' | 'binary', |
| 416 | ) { |
| 417 | // Use the explicit download type instead of guessing |
| 418 | if (downloadType === 'npm') { |
| 419 | await installVersionFromPackage(stagingPath, installPath) |
| 420 | } else { |
| 421 | await installVersionFromBinary(stagingPath, installPath) |
| 422 | } |
| 423 | } |
| 424 | |
| 425 | /** |
| 426 | * Performs the core update operation: download (if needed), install, and update symlink. |
no test coverage detected