Skip to content

Commit 0a438bc

Browse files
authored
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]? ```
1 parent bb15d11 commit 0a438bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "laravel/pint",
33
"description": "An opinionated code formatter for PHP.",
4-
"keywords": ["php", "format", "formatter", "lint", "linter"],
4+
"keywords": ["php", "format", "formatter", "lint", "linter", "dev"],
55
"homepage": "https://laravel.com",
66
"type": "project",
77
"license": "MIT",

0 commit comments

Comments
 (0)