I created a custom module, this module depends on thirt party module(tecnickcom/tcpdf), I added this library in my custom module composer.json file
{
"name": "packagename/mymodule",
"description": "N/A",
"require": {
"php": "~5.5.0|~5.6.0",
"magento/magento-composer-installer": "*",
"tecnickcom/tcpdf":"*"
},
"type": "magento2-module",
"version": "2.0.0",
"license": [
"GPL-3.0"
],
"autoload": {
"files": [
"registration.php"
],
"psr-4": {
"Packagename\\Mymodule\\": ""
}
}
}
when i run this composer.json file its create vendor folder in my custom module and download "tecnickcom/tcpdf" library, but it should be in root vendor folder. how can i achieve this.