You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prompt users to use --dev flag for development-only packages (#407)
This PR introduces a mechanism to significantly improve the developer experience by guiding users to correctly place development-only dependencies into the require-dev block.
When a package is internally tagged with the new "dev" keyword, and a user attempts to install it using composer require without the --dev flag, Composer will now intelligently prompt them:
```
The package you required is recommended to be placed in require-dev (because it is tagged as "testing") but you did not use --dev.
Do you want to re-run the command with --dev? [yes]?
```
0 commit comments