Hi!
I've stumbled over a strange implementation in the composer installer for MediaWiki
related projects:
A package with the name "some-cool-extension" and type
"mediawiki-extension" will be installed as
"<mediawiki>/extensions/SomeCoolExtension". --> The name gets
translated from "dashed-lowecase" into "UpperCamelCase" [1].
A package with the name "some-cool-skin" and type "mediawiki-skin"
will be installed as "<mediawiki>/skins/some-cool". --> The
"-skin" suffix is being removed, but no further transformation is being applied
[2]. (Not even some uppercaseing. E.g. Vector skin circumvents this by the declaration of
an "installer-name" [3]).
Does anybody know _why_ this difference is being made?
[1]
https://github.com/composer/installers/blob/master/src/Composer/Installers/…
[2]
https://github.com/composer/installers/blob/master/src/Composer/Installers/…
[3]
https://github.com/wikimedia/mediawiki-skins-Vector/blob/master/composer.js…
--
Robert Vogel