@oclif/core 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/config/config.js
CHANGED
|
@@ -527,6 +527,13 @@ class Config {
|
|
|
527
527
|
const command = await c.load();
|
|
528
528
|
await this.runHook('prerun', { Command: command, argv });
|
|
529
529
|
const result = (await command.run(argv, this));
|
|
530
|
+
// If plugins:uninstall was run, we need to remove all the uninstalled plugins
|
|
531
|
+
// from this.plugins so that the postrun hook doesn't attempt to run any
|
|
532
|
+
// hooks that might have existed in the uninstalled plugins.
|
|
533
|
+
if (c.id === 'plugins:uninstall') {
|
|
534
|
+
for (const arg of argv)
|
|
535
|
+
this.plugins.delete(arg);
|
|
536
|
+
}
|
|
530
537
|
await this.runHook('postrun', { Command: command, argv, result });
|
|
531
538
|
marker?.addDetails({ command: id, plugin: c.pluginName });
|
|
532
539
|
marker?.stop();
|