diff --git a/src/Composer/Command/RunScriptCommand.php b/src/Composer/Command/RunScriptCommand.php index 810325243..c45507b1f 100644 --- a/src/Composer/Command/RunScriptCommand.php +++ b/src/Composer/Command/RunScriptCommand.php @@ -103,6 +103,9 @@ EOT ProcessExecutor::setTimeout((int) $timeout); } + $_SERVER['COMPOSER_DEV_MODE'] = $devMode ? '1' : '0'; + putenv('COMPOSER_DEV_MODE='.$_SERVER['COMPOSER_DEV_MODE']); + return $composer->getEventDispatcher()->dispatchScript($script, $devMode, $args); }