By default, dependencies from http://wpackagist.org/ are set to /wp-content/plugins or /wp-content/themes to mimic the default locations for WordPress, but I was previously able to indicate that dependencies are http: / /wpackagist.org/ should go in a specific directory with the following:
"extra": { "installer-paths": { "vendor/{$name}/": ["type:wordpress-plugin"], "vendor/{$name}/": ["type:wordpress-theme"] } }
i.e. to put them in the /vendor shared directory, which will be considered code dependent. However, this does not work in the new project. Similar searches show that type looking for the value set in the composer.json dependency, but seeing that WPackagist reflects the WordPress repository, plugins and themes from WPackagist do not have composer.json .
I tried to explicitly specify vendor-dir , but that didn't matter, but interestingly, setting the installer path for each dependency works as expected, for example.
"extra": { "installer-paths": { "vendor/cmb2/": ["wpackagist-plugin/cmb2"] } }
Can anyone see what I'm doing wrong?
source share