Fix "bin not installed" error on "composer install no-dev"

We introduced the Composer Bin package as a dev dependency, and this
required a "composer bin install" post-install/update Composer command.
However when doing "composer install no-dev" this throws a
"Command 'bin' is not defined" error.

The solution is to add a dummy "bin" command in composer.json that
will run in lieu of the Composer Bin one when doing a no-dev install.
This commit is contained in:
Nestor Soriano 2020-10-09 08:21:57 +02:00
parent c15488d840
commit d083a08a1f
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@
],
"makepot": [
"@makepot-audit --skip-audit"
],
"bin": [
"echo 'bin not installed'"
]
},
"extra": {