diff --git a/src/Plugin.php b/src/Plugin.php index 46603ae..8bf8a7c 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -20,6 +20,10 @@ public function activate(Composer $composer, IOInterface $io) { $package = $composer->getPackage(); + if (!method_exists($package, 'setScripts')) { + return; + } + $extractor = new PackageScriptsExtractor($io); $devScripts = $extractor->extract($package);