(plugin: string)
| 272 | } |
| 273 | |
| 274 | async removePlugin(plugin: string): Promise<void> { |
| 275 | const { importPath } = this.getImportPath(plugin) |
| 276 | try { |
| 277 | await this.pluginManager.uninstall(importPath) |
| 278 | } catch (error: any) { |
| 279 | this.logger.error( |
| 280 | `There was an error uninstalling ${this.pluginType} ${plugin}` |
| 281 | ) |
| 282 | this.logger.debug(error) |
| 283 | } |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | export default Manager |
no test coverage detected