I'm using composer version 1.0-dev
I read https://getcomposer.org/doc/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md and https://github.com/composer/installershave
I have a custom module in bitbucket with this simple composer.json:
{
"name": "mybitbucketuser/base",
"type": "puppet-module",
"require": {
"composer/installers": "~1.0"
}
}
In my main project I have this composer.json:
{
"minimum-stability": "stable",
"repositories": [
{
"type": "vcs",
"url": "https://bitbucket.org/mybitbucketuser/fluzu-base.git"
}
],
"require": {
"mybitbucketuser/base": "*"
},
"extra": {
"installer-paths": {
"modules/{$name}/": ["mybitbucketuser/base"]
}
}
}
I tried with this too:
"extra": {
"installer-paths": {
"modules/{$name}/": ["type:puppet-module"]
}
}
All seems works fine but composer install the module in the default vendor dir instead in modules dir.
Whats wrong? Thanks.
By the way, I'm using type puppet-module but in reality is a phalcon module.