diff --git a/src/Plugin.php b/src/Plugin.php index 3424afd..d49b0a3 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -74,8 +74,10 @@ public function postCmd(\Composer\Script\Event $event) { */ public static function scaffold(\Composer\Script\Event $event) { $handler = new Handler($event->getComposer(), $event->getIO()); - $handler->downloadScaffold(); - // Generate the autoload.php file after generating the scaffold files. - $handler->generateAutoload(); + if ($handler->getDrupalCorePackage()) { + $handler->downloadScaffold(); + // Generate the autoload.php file after generating the scaffold files. + $handler->generateAutoload(); + } } }