Commit b7cba1e69e for woocommerce

commit b7cba1e69ebdc92d15c9e067db12d91ad804b701
Author: Thomas Roberts <5656702+opr@users.noreply.github.com>
Date:   Mon Jan 26 10:25:13 2026 +0000

    [`@woocommerce/extend-cart-checkout-block`] Ensure all relevant files are included in built zip (#62910)

    * include all php, build, & block.json files in extend-cart-checkout-block

    * Add changelog

    * Use correct hook args

    * Null check to prevent warnings

diff --git a/packages/js/extend-cart-checkout-block/$slug.php.mustache b/packages/js/extend-cart-checkout-block/$slug.php.mustache
index 3efbb91632..540c406130 100644
--- a/packages/js/extend-cart-checkout-block/$slug.php.mustache
+++ b/packages/js/extend-cart-checkout-block/$slug.php.mustache
@@ -100,14 +100,14 @@ function {{slugPascalCase}}_register_custom_checkout_fields() {
 	 */
 	add_action(
 		'woocommerce_sanitize_additional_field',
-		function ( $value, $key, $group ) {
+		function ( $value, $key ) {
 			if ( '{{slug}}/custom-text-input' === $key ) {
 				return strtoupper( $value );
 			}
 			return $value;
 		},
 		10,
-		3
+		2
 	);

 	/**
@@ -115,13 +115,13 @@ function {{slugPascalCase}}_register_custom_checkout_fields() {
 	 */
 	add_action(
 		'woocommerce_blocks_validate_location_address_fields',
-		function ( \WP_Error $errors, $fields, $group ) {
-			if ( 'INVALID' === $fields['{{slug}}/custom-text-input'] ) {
+		function ( \WP_Error $errors, $fields ) {
+			if ( isset( $fields['{{slug}}/custom-text-input'] ) && 'INVALID' === $fields['{{slug}}/custom-text-input'] ) {
 				$errors->add( 'invalid_text_detected', 'Please ensure your custom text input is not "INVALID".' );
 			}
 		},
 		10,
-		3
+		2
 	);

 	woocommerce_register_additional_checkout_field(
diff --git a/packages/js/extend-cart-checkout-block/changelog/wooplug-6127-woocommerceextend-cart-checkout-block-template-produces b/packages/js/extend-cart-checkout-block/changelog/wooplug-6127-woocommerceextend-cart-checkout-block-template-produces
new file mode 100644
index 0000000000..95ae78e8be
--- /dev/null
+++ b/packages/js/extend-cart-checkout-block/changelog/wooplug-6127-woocommerceextend-cart-checkout-block-template-produces
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Ensure correct files are included when building a zip using build-zip
diff --git a/packages/js/extend-cart-checkout-block/index.js b/packages/js/extend-cart-checkout-block/index.js
index 682f65f7a3..c302d12fea 100644
--- a/packages/js/extend-cart-checkout-block/index.js
+++ b/packages/js/extend-cart-checkout-block/index.js
@@ -11,5 +11,8 @@ module.exports = {
 			'@wordpress/prettier-config@2.18.2',
 			'@wordpress/scripts',
 		],
+		customPackageJSON: {
+			files: [ '*.php', 'build', 'block.json' ],
+		},
 	},
 };