はじめに
composer require composer/installers
インストール先を変える
インストール先を変更するにはextra.installer-paths
を触る。配列で、パッケージ名を突っ込む感じ。
{
"extra": {
"installer-paths": {
"your/custom/path/{$name}/": ["shama/ftp", "vendor/package"]
}
}
}
いちいちパッケージ名を特定していられない場合には、typeによる絞込や、Vendorによる絞込が可能。
{
"extra": {
"installer-paths": {
"your/custom/path/{$name}/": ["type:wordpress-plugin"]
}
}
}
{
"extra": {
"installer-paths": {
"your/custom/path/{$name}/": ["vendor:my_organization"]
}
}
}