(projectRoot)
| 27 | } |
| 28 | |
| 29 | function isYarnProject(projectRoot) { |
| 30 | if (fs.existsSync(`${projectRoot}/yarn.lock`)) { |
| 31 | return true; |
| 32 | } |
| 33 | |
| 34 | const findWorkspaceRoot = require('find-yarn-workspace-root'); |
| 35 | |
| 36 | if (findWorkspaceRoot(projectRoot)) { |
| 37 | return true; |
| 38 | } |
| 39 | |
| 40 | return false; |
| 41 | } |
| 42 | |
| 43 | module.exports = { |
| 44 | determineInstallCommand, |
no outgoing calls
no test coverage detected
searching dependent graphs…