diff --git a/plugins/woocommerce-admin/package.json b/plugins/woocommerce-admin/package.json index 50d499eea0c..eb44110a6e3 100644 --- a/plugins/woocommerce-admin/package.json +++ b/plugins/woocommerce-admin/package.json @@ -25,7 +25,7 @@ "build": "pnpm run build:feature-config && cross-env NODE_ENV=production webpack", "analyze": "cross-env NODE_ENV=production ANALYZE=true webpack", "postbuild": "pnpm run -s i18n:pot && pnpm run -s i18n:build", - "build:feature-config": "php bin/generate-feature-config.php", + "build:feature-config": "php ../woocommerce/bin/generate-feature-config.php", "build:packages": "cross-env NODE_ENV=production pnpm run:packages -- build", "build:release": "./bin/build-plugin-zip.sh", "clean": "rimraf ./dist && pnpm run:packages -- clean --parallel", diff --git a/plugins/woocommerce-admin/bin/generate-feature-config.php b/plugins/woocommerce/bin/generate-feature-config.php similarity index 86% rename from plugins/woocommerce-admin/bin/generate-feature-config.php rename to plugins/woocommerce/bin/generate-feature-config.php index 7174b0110b9..0ab6248a35c 100644 --- a/plugins/woocommerce-admin/bin/generate-feature-config.php +++ b/plugins/woocommerce/bin/generate-feature-config.php @@ -17,7 +17,7 @@ $phase = getenv( 'WC_ADMIN_PHASE' ); if ( ! in_array( $phase, array( 'development', 'plugin', 'core' ), true ) ) { $phase = 'plugin'; // Default to plugin when running `pnpm run build`. } -$config_json = file_get_contents( __DIR__ . '/../config/' . $phase . '.json' ); +$config_json = file_get_contents( __DIR__ . '/../client/admin/config/' . $phase . '.json' ); $config = json_decode( $config_json ); $write = "