diff --git a/composer.json b/composer.json index 2358a35..7967c52 100644 --- a/composer.json +++ b/composer.json @@ -38,16 +38,13 @@ } }, "scripts": { + "post-install-cmd": [ + "yii\\composer\\Installer::postInstall" + ], "post-create-project-cmd": [ "yii\\composer\\Installer::postCreateProject" ] }, - "repositories": [ - { - "type": "composer", - "url": "https://asset-packagist.org" - } - ], "extra": { "yii\\composer\\Installer::postCreateProject": { "setPermission": [ @@ -56,10 +53,22 @@ "web/assets": "0777", "yii": "0755" } - ], + ] + }, + "yii\\composer\\Installer::postInstall": { "generateCookieValidationKey": [ "config/web.php" ] + }, + "asset-installer-paths": { + "npm-asset-library": "vendor/npm", + "bower-asset-library": "vendor/bower" } - } + }, + "repositories": [ + { + "type": "composer", + "url": "https://asset-packagist.org" + } + ] }