diff --git a/bin/package-update.sh b/bin/package-update.sh index 14e5e0b7442..65bf65e53ba 100755 --- a/bin/package-update.sh +++ b/bin/package-update.sh @@ -29,7 +29,7 @@ output 2 "Done" output 3 "Updating package textdomains..." # Replace text domains within packages with woocommerce -find ./packages/woocommerce-blocks -iname '*.php' -exec sed -i.bak -e "s/, 'woo-gutenberg-products-block'/, 'woocommerce'/g" {} \; +find ./packages/woocommerce-blocks \( -iname '*.php' -o -iname '*.js' \) -exec sed -i.bak -e "s/'woo-gutenberg-products-block'/'woocommerce'/g" -e "s/\"woo-gutenberg-products-block\"/'woocommerce'/g" {} \; find ./packages/woocommerce-rest-api -iname '*.php' -exec sed -i.bak -e "s/, 'woocommerce-rest-api'/, 'woocommerce'/g" {} \; # Cleanup backup files