(projectRoot)
| 3 | const fs = require('fs'); |
| 4 | |
| 5 | async function determineInstallCommand(projectRoot) { |
| 6 | if (await isPnpmProject(projectRoot)) { |
| 7 | return 'pnpm install'; |
| 8 | } else if (isYarnProject(projectRoot)) { |
| 9 | return 'yarn install'; |
| 10 | } else { |
| 11 | return 'npm install'; |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | async function isPnpmProject(projectRoot) { |
| 16 | if (fs.existsSync(`${projectRoot}/pnpm-lock.yaml`)) { |
no test coverage detected
searching dependent graphs…