我用它自己的composer.json文件制作了“ Package B”,它使用自己的文件夹结构加载了依赖项
现在,我有“ Project A”包含“ Package B”作为依赖项。
当我运行“ Project A”作曲家更新时,似乎它运行了“ Package B” composer.json文件,同时也在“ Project A”供应商文件夹中导入了“ Package B”依赖项。
这是应该如何工作的吗?我只希望“包B”成为我的“项目A”中的独立文件夹结构。
项目A:
"repositories": [
{
"type":"composer",
"url":"https://wpackagist.org"
},
{
"type": "vcs",
"url": "Path/to/PackageB"
},
{
"type": "composer",
"url": "https://packages.metabox.io/"
}
],
"require": {
"johnpbloch/wordpress-core-installer": "*",
"johnpbloch/wordpress": "*",
"composer/installers": "~1.0",
"wpackagist-plugin/wordpress-seo": "*",
"wpackagist-plugin/akismet": "*",
"wp-media/wp-rocket": "*",
"wp-premium/gravityforms": "*",
"mjmc/mjmc-core-plugin": "*"
},
套餐B
"require": {
"google/apiclient": "^2.0",
"aws/aws-sdk-php": "^3.53",
"wpackagist-plugin/meta-box": "^5",
"wpackagist-plugin/meta-box-yoast-seo": "dev-trunk",
"meta-box/mb-term-meta": "dev-master",
"meta-box/mb-settings-page": "dev-master",
"meta-box/mb-admin-columns": "dev-master",
"meta-box/mb-custom-table": "dev-master",
"meta-box/meta-box-columns": "dev-master",
"meta-box/meta-box-tooltip": "dev-master",
"meta-box/meta-box-show-hide": "dev-master",
"meta-box/meta-box-tabs": "dev-master",
"meta-box/meta-box-include-exclude": "dev-master",
"meta-box/mb-blocks": "dev-master"
},
所有“ Package B”软件包都放在我的Project A供应商中,但是它们已经在Package B Vendor文件夹中了,我希望它们只留在那儿