(info: YarnCommandInfo)
| 140 | } |
| 141 | |
| 142 | async function getYarnVersion(info: YarnCommandInfo): Promise<string | null> { |
| 143 | try { |
| 144 | return ( |
| 145 | await ChildProcess.spawn(info.binary, [...info.args, '--version'], {mode: 'silent'}) |
| 146 | ).stdout.trim(); |
| 147 | } catch (e) { |
| 148 | Log.debug('Could not determine Yarn version. Error:', e); |
| 149 | return null; |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | /** Finds and parses the Yarn configuration file for the given project. */ |
| 154 | async function findAndParseYarnConfiguration( |
no outgoing calls
no test coverage detected