()
| 145 | } |
| 146 | |
| 147 | function getPluginVersions() { |
| 148 | const paths_ = paths.plugins.concat(paths.localPlugins); |
| 149 | return paths_.map((path_) => { |
| 150 | let version: string | null = null; |
| 151 | try { |
| 152 | // eslint-disable-next-line @typescript-eslint/no-var-requires |
| 153 | version = require(resolve(path_, 'package.json')).version; |
| 154 | //eslint-disable-next-line no-empty |
| 155 | } catch (err) {} |
| 156 | return [basename(path_), version]; |
| 157 | }); |
| 158 | } |
| 159 | |
| 160 | function clearCache() { |
| 161 | // trigger unload hooks |
no test coverage detected