make sure lib/vendor folder is cleared on composer update
this stops old libs from still being cached by mistake
This commit is contained in:
parent
9e7c318df0
commit
3ebf78e252
@ -43,6 +43,13 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"pre-install-cmd" : [
|
||||||
|
"php -r \"array_map('unlink', array_merge(glob('lib/vendor/js/*.{js,map}', GLOB_BRACE), glob('lib/vendor/css/*.css'), glob('lib/vendor/swf/*.swf')));\""
|
||||||
|
],
|
||||||
|
"pre-update-cmd" : [
|
||||||
|
"php -r \"array_map('unlink', array_merge(glob('lib/vendor/js/*.{js,map}', GLOB_BRACE), glob('lib/vendor/css/*.css'), glob('lib/vendor/swf/*.swf')));\""
|
||||||
|
],
|
||||||
|
|
||||||
"post-install-cmd" : [
|
"post-install-cmd" : [
|
||||||
"php -r \"array_map('copy', array_keys(json_decode(file_get_contents('composer.json'), TRUE)['vendor-copy']), json_decode(file_get_contents('composer.json'), TRUE)['vendor-copy']);\""
|
"php -r \"array_map('copy', array_keys(json_decode(file_get_contents('composer.json'), TRUE)['vendor-copy']), json_decode(file_get_contents('composer.json'), TRUE)['vendor-copy']);\""
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user