Skip to content

Commit b30f7fb

Browse files
Adds scripts to composer.json to secure the vendor directory
Signed-off-by: Jon Stovell <[email protected]>
1 parent 4102282 commit b30f7fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
},
2121
"scripts": {
2222
"lint": "php-cs-fixer --quiet check --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") --allow-risky=yes || php-cs-fixer check --diff --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") --allow-risky=yes",
23-
"lint-fix": "php-cs-fixer fix -v --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") --allow-risky=yes"
23+
"lint-fix": "php-cs-fixer fix -v --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") --allow-risky=yes",
24+
"post-install-cmd": "php ./vendor/simplemachines/build-tools/secure-vendor-dir.php",
25+
"post-update-cmd": "php ./vendor/simplemachines/build-tools/secure-vendor-dir.php"
2426
},
2527
"config": {
2628
"platform": {

0 commit comments

Comments
 (0)