我正在通过 Composer 捆绑一个 Web 应用程序。在我的配置部分中,定义了框架(TYPO3 Flow)所需的供应商目录:
"config": {
"vendor-dir": "Packages/Libraries",
"bin-dir": "bin"
},
现在我有一个不是来自 Packagist 而是来自 Github 的自定义包。这个包需要签出到 Packages/Application/Vendor.PackageName。所以我尝试使用目标目录:
"repositories": [{
"type": "package",
"package": {
"version": "dev-master",
"name": "vendor/package",
"source": {
"url": "https://github.com/mycompany/mypackagerepo.git",
"type": "git",
"reference": "master"
},
"target-dir": "Packages/Application/Vendor.Package",
}
}],
"require": {
"typo3/flow": "2.0.*",
"vendor/package": "dev-master"
}
从 Github 克隆工作正常,但包现在已签出到
Packages/Libraries/vendor/package/Packages/Application/Vendor.Package
这意味着 vendor-dir 和 target-dir 是连接在一起的。
如何完全覆盖单个包的供应商目录?谢谢你的帮助。