We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cee5e6 commit bc59a0bCopy full SHA for bc59a0b
src/PatternLab/InstallerUtil.php
@@ -542,7 +542,11 @@ public static function prePackageUninstallCmd($event) {
542
self::scanForPatternEngineRule($pathBase,true);
543
}
544
545
- // go over .json in patternlab-components/, remove references to packagename
+ // remove the component package file if it exists
546
+ $jsonFile = Config::getOption("componentDir")."/packages/".str_replace("/","-",$name).".json";
547
+ if (file_exists($jsonFile)) {
548
+ unlink($jsonFile);
549
+ }
550
551
552
0 commit comments