()
| 146 | } |
| 147 | |
| 148 | private checkForYarn() { |
| 149 | try { |
| 150 | const userAgent = process.env.npm_config_user_agent |
| 151 | if (userAgent) { |
| 152 | return Boolean(userAgent && userAgent.startsWith('yarn')) |
| 153 | } |
| 154 | execa.sync('yarnpkg', ['--version'], { stdio: 'ignore' }) |
| 155 | return true |
| 156 | } catch (e) { |
| 157 | console.log('error', e) |
| 158 | return false |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | private logCreate(...args: any[]) { |
| 163 | if (this.shouldLogInfo) { |
no test coverage detected