(options?: { force?: boolean })
| 12 | } |
| 13 | |
| 14 | export async function installWorkspacePackages(options?: { force?: boolean }): Promise<void> { |
| 15 | switch (getActivePackageManager()) { |
| 16 | case 'npm': |
| 17 | const npmArgs = ['install']; |
| 18 | if (options?.force) { |
| 19 | npmArgs.push('--force'); |
| 20 | } |
| 21 | await silentNpm(...npmArgs); |
| 22 | break; |
| 23 | case 'yarn': |
| 24 | await silentYarn('install'); |
| 25 | break; |
| 26 | case 'pnpm': |
| 27 | await silentPnpm('install'); |
| 28 | break; |
| 29 | case 'bun': |
| 30 | await silentBun('install'); |
| 31 | break; |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | export function installPackage(specifier: string, registry?: string): Promise<ProcessOutput> { |
| 36 | const registryOption = registry ? [`--registry=${registry}`] : []; |
no test coverage detected