got a question about composer.json -> extra -> installer-name, recently we developed a vendor module which has a really long name, e.g.
mycompany/silverstripe-several-words-very-long and for installation, I want the directory name to be a little shorter than
silverstripe-several-words-very-long. I thought the
composer.json is the place I could customize the directory name, but I am wrong, as I give it a short name there, but it doesn't affect. Anyone knows what do I need to do, instead of using the
Yeah, installer-name doesn't apply anymore
The vendor-module should be very concise, and not contain
silverstripe-, so it would by
mycompany/concise-name, and that would make it install in to
Your repo can still be
@Firesphere thanks. I will try to shorten the module name then.
let’s take this internal, @Normann
Normann and I work together and knew what the question was related to
It's an innocent question though
And other people may have similar questions
For those wondering:
installer-name is something specific to
"type": "silverstripe-module", and is not a general composer command (afaik). This is also what installed the dependencies into the project root, instead of the
This no longer applies with SS4 using
"type": "silverstripe-vendormodule" - this puts things in normal PSR-4 style (in
vendor - i.e. does nothing special with the install) and exists more for
But, a reminder that the packagist
vendor/module-name format doesn't have to mirror the repository address (e.g. on github). Furthermore there is the
replace composer config directive which one can use to rename their modules (c.f.
@nightjarnz understood. thanks
That moment you find what you're looking for in the docs, but then it just says TODO..