The "roll your own path" thing should really be removed from the package definition, and moved to the consumer side. I think something like this would make more sense:
{
"extra": {
"baton-paths": {
"sites/example.org/modules/{name}": ["vendor/package", "vendor/package2"]
}
}
}
Although we could maybe just add that at the top level and add support for it in composer, that way people can define where they want their stuff installed, and the baton installers would respect this if present, otherwise fallback to default dir. I think it would fit well with the planned stuff for assets in composer/composer#524.
The "roll your own path" thing should really be removed from the package definition, and moved to the consumer side. I think something like this would make more sense:
{ "extra": { "baton-paths": { "sites/example.org/modules/{name}": ["vendor/package", "vendor/package2"] } } }Although we could maybe just add that at the top level and add support for it in composer, that way people can define where they want their stuff installed, and the baton installers would respect this if present, otherwise fallback to default dir. I think it would fit well with the planned stuff for assets in composer/composer#524.