Revert "Monorepo: don't optimize composer autoloading by default. (#48971)" (#48982)

This reverts commit 76b1bd4ae7.
This commit is contained in:
Vladimir Reznichenko 2024-07-01 15:13:25 +02:00 committed by GitHub
parent e2ce65d02d
commit f1b974a910
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 8 deletions

View File

@ -56,12 +56,12 @@ jobs:
bash bin/build-zip.sh
mkdir "$GITHUB_WORKSPACE/zips"
mv "$GITHUB_WORKSPACE/plugins/woocommerce/woocommerce.zip" "$GITHUB_WORKSPACE/zips/woocommerce.zip"
cp "$GITHUB_WORKSPACE/plugins/woocommerce/woocommerce.zip" "$GITHUB_WORKSPACE/zips/woocommerce.zip"
cd "$GITHUB_WORKSPACE/zips"
unzip -qq woocommerce.zip
rm woocommerce.zip
mv woocommerce woocommerce-dev
zip -q -r -9 "woocommerce-dev.zip" "woocommerce-dev/"
zip -q -r "woocommerce-dev.zip" "woocommerce-dev/"
rm -fR "$GITHUB_WORKSPACE/zips/woocommerce-dev"
# Plugin data is passed as a JSON object.

View File

@ -66,13 +66,13 @@ jobs:
mkdir "$GITHUB_WORKSPACE/zips"
mkdir -p "$GITHUB_WORKSPACE/unzips/woocommerce"
mv "$GITHUB_WORKSPACE/plugins/woocommerce/woocommerce.zip" "$GITHUB_WORKSPACE/zips/woocommerce.zip"
cp "$GITHUB_WORKSPACE/plugins/woocommerce/woocommerce.zip" "$GITHUB_WORKSPACE/zips/woocommerce.zip"
cd "$GITHUB_WORKSPACE/zips"
unzip -qq woocommerce.zip
cp -r woocommerce "$GITHUB_WORKSPACE/unzips/woocommerce/woocommerce"
rm woocommerce.zip
mv woocommerce woocommerce-dev
zip -q -r -9 "woocommerce-dev.zip" "woocommerce-dev/"
zip -q -r "woocommerce-dev.zip" "woocommerce-dev/"
rm -fR "$GITHUB_WORKSPACE/zips/woocommerce-dev"
# Plugin data is passed as a JSON object.
PLUGIN_DATA="{}"

View File

@ -1,4 +0,0 @@
Significance: patch
Type: dev
Build: speedup dependencies installation by disabling composer optimize autoloading by default.

View File

@ -40,6 +40,7 @@
"yoast/phpunit-polyfills": "^2.0"
},
"config": {
"optimize-autoloader": true,
"preferred-install": {
"woocommerce/action-scheduler": "dist"
},