Skip to content

Commit be9d033

Browse files
Copilotswissspidy
andcommitted
Move wp-cli/package-command from require to require-dev
This change removes package-command and its 20+ dependencies (including composer/composer) from production installations while keeping it available for: - Phar builds (built with dev dependencies) - Development environments - Users who explicitly install it Reduces the dependency count from 64 to 38 packages when installing wp-cli-bundle in a project via Composer. Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 5159d35 commit be9d033

File tree

2 files changed

+5128
-5118
lines changed

2 files changed

+5128
-5118
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"wp-cli/language-command": "^2",
2828
"wp-cli/maintenance-mode-command": "^2",
2929
"wp-cli/media-command": "^2",
30-
"wp-cli/package-command": "^2.1",
3130
"wp-cli/rewrite-command": "^2",
3231
"wp-cli/role-command": "^2",
3332
"wp-cli/scaffold-command": "^2",
@@ -40,10 +39,12 @@
4039
},
4140
"require-dev": {
4241
"roave/security-advisories": "dev-latest",
42+
"wp-cli/package-command": "^2.1",
4343
"wp-cli/wp-cli-tests": "^5"
4444
},
4545
"suggest": {
46-
"psy/psysh": "Enhanced `wp shell` functionality"
46+
"psy/psysh": "Enhanced `wp shell` functionality",
47+
"wp-cli/package-command": "Manage WP-CLI packages (included in Phar builds, needed for package management when using Composer-based installation)"
4748
},
4849
"config": {
4950
"allow-plugins": {

0 commit comments

Comments
 (0)