()
| 166 | } |
| 167 | |
| 168 | getPackageManager() { |
| 169 | const userAgent = process.env.npm_config_user_agent || ''; |
| 170 | if (userAgent.startsWith('yarn')) { |
| 171 | return 'yarn'; |
| 172 | } |
| 173 | if (userAgent.startsWith('pnpm')) { |
| 174 | return 'pnpm'; |
| 175 | } |
| 176 | return 'npm'; |
| 177 | } |
| 178 | |
| 179 | /** |
| 180 | * |