Answer the question
In order to leave comments, you need to log in
How to properly use composer/installers with installer-paths?
Good afternoon!
Can't figure out how to properly use custom install paths with the installer(composer/installers)?
Registered in the require of the package:
"require": {
"php": ">=5.4.0",
"composer/installers": "~1.0"
}
"extra": {
"installer-paths": {
"modules/{$name}": ["type:my-module"]
}
}
"type": "my-module",
"extra": {
"installer-paths": {
"modules/{$name}": ["repositoryName/packageName"]
}
}
"extra": {
"installer-paths": {
"modules/{$name}/": ["repositoryName/packageName", "vendor/package"]
}
}
"installer-paths": {
"modules/{$name}": ["type:my-module"]
}
Answer the question
In order to leave comments, you need to log in
Packages are not (shouldn't) installed inside your package. They go in the require section as used by your package. Those .. If they were not in the vendor before, then yes .. they will be pumped ... If they already were, there will be a check for the correct versions and they will not download ...
And I add my packages through the internal repository (which I collect in a separate folder)
"repositories": [
{
"type": "path",
"url": "packages/MyRepo/*"
},
{
"type": "path",
"url": "packages/MyRepo/CMSModules /*"
}
],
and if necessary,
"php": ">=5.6.4",
......
"MyRepo/MyModule1":"*"
},
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question