From 2549a8d90c6546ded50e25efff09f7d84b5e5dd7 Mon Sep 17 00:00:00 2001 From: Darren Ethier Date: Thu, 26 Sep 2019 17:24:42 -0400 Subject: [PATCH] improve domain replacement for blocks package --- bin/package-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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