Skip to content

Commit 0e9ad2f

Browse files
committed
trying to get a good pathBase for removing files
1 parent bc59a0b commit 0e9ad2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PatternLab/InstallerUtil.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,9 @@ public static function prePackageUninstallCmd($event) {
532532
$package = $event->getOperation()->getPackage();
533533
$type = $package->getType();
534534
$name = $package->getName();
535-
$pathBase = $package->getTargetDir();
535+
$pathBase = $event->getComposer()->getInstallationManager()->getInstallPath($package);
536+
537+
print "pathBase: ".$pathBase;
536538

537539
// see if the package has a listener and remove it
538540
self::scanForListener($pathBase,true);

0 commit comments

Comments
 (0)