composer/composer — pull request #1331 by christeredvartsen (2012-11-15 11:42:10+00:00)
Title: Scripts can now be "dev-aware"

As far as I can see scripts added to the `scripts` section of the composer.json file has no way of detecting whether or not composer was triggered with the `--dev` option. This PR includes an `isDev()` method in the `IOInterface` (and implemented in `ConsoleIO` and `NullIO`) that can be used to check for this.

If there already is a way to achieve this, feel free to tell me to RTFM and close the PR.