php: composer-json ignore platform reqs & scripts

This commit is contained in:
Martin Toman 2022-09-19 10:21:16 -07:00
parent f49af63180
commit 685efe73de

View File

@ -58,9 +58,9 @@
echo "excluding dev dependencies"
jq '.require-dev = {}' ./composer.json > composer.json.mod
mv composer.json.mod composer.json
composer update --no-install --no-dev
composer update --ignore-platform-reqs --no-scripts --no-plugins --no-install --no-dev
else
composer update --no-install
composer update --ignore-platform-reqs --no-scripts --no-plugins --no-install
fi
jq ".source = \"$newSource\"" -c -r $jsonInput > $TMPDIR/newJsonInput