Instead of target-dir
you need to use Composer Installers and change the package type to typo3-flow-package
, so your package definition can be:
"repositories": [{
"type": "package",
"package": {
"version": "dev-master",
"name": "vendor/package",
"type": "typo3-flow-package",
"source": {
"url": "https://github.com/mycompany/mypackagerepo.git",
"type": "git",
"reference": "master"
},
"require": {
"composer/installers": "~1.0"
}
}
]}
By default your package will be installed under Packages/Application/package
, but if you want to prefix the package folder with vendor name and get it under Packages/Application/vendor.package
just add:
"extra": {
"installer-paths": {
"Packages/Application/{$vendor}.{$name}/": ["type:typo3-flow-package"]
}
}