Composer asset plugin ignores "bower-asset-library" setting

I’m trying to deploy an advanced app template (with small modificiations only) to an Amazon EC2 instance that runs Amazon Linux. I have these settings in project’s composer.json:




"extra": {

  "asset-installer-paths": {

	"npm-asset-library": "vendor/npm",

	"bower-asset-library": "vendor/bower"

  }

}



When I run


composer install

the above settings are ignored by the composer asset plugin and assets are installed in (the plugin’s default) vendor/bower-asset directory. I’ve double checked and the settings are there and work on my localhost.

I’ve already tried deleting vendor directory, clearing composer cache and reinstalling. I’m using version 1.0.3 of the plugin and the latest Composer.

Any ideas?

Additional question: what’s the rationale behind changing the plugin’s default asset installer paths in Yii2 application templates?

… and hardcode them in yii\base\Application?