Commit 0f51da689fb for woocommerce
commit 0f51da689fb5ed2187d078e64e48a48b4492dc99
Author: Vladimir Reznichenko <kalessil@gmail.com>
Date: Sat Apr 18 22:22:06 2026 +0200
[dev] Monorepo: update deps tracking for filesystem cache. (#64220)
diff --git a/package.json b/package.json
index 23a83f82150..55ed027a68b 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
"lint": "pnpm -r lint",
"cherry-pick": "node ./tools/cherry-pick/bin/run",
"clean": "rimraf -g '**/node_modules' '**/.wireit' 'packages/*/*/vendor' 'plugins/*/vendor' && pnpm store prune",
- "clean:build": "rimraf -g '**/.wireit' 'packages/js/*/build' 'packages/js/*/build-*' 'packages/js/*/dist' 'plugins/*/build' 'plugins/woocommerce/client/*/build' && git clean --force -d -X --quiet ./plugins/woocommerce/assets",
+ "clean:build": "rimraf -g '**/.wireit' '**/node_modules/.cache' 'packages/js/*/build' 'packages/js/*/build-*' 'packages/js/*/dist' 'plugins/*/build' 'plugins/woocommerce/client/*/build' && git clean --force -d -X --quiet ./plugins/woocommerce/assets",
"preinstall": "npx only-allow pnpm",
"postinstall": "husky",
"run-canonical-extensions-tests": "bash bin/run-canonical-extensions-tests.sh",
diff --git a/packages/js/admin-layout/webpack.config.js b/packages/js/admin-layout/webpack.config.js
index 093d33b5138..9d696e6b37f 100644
--- a/packages/js/admin-layout/webpack.config.js
+++ b/packages/js/admin-layout/webpack.config.js
@@ -18,6 +18,13 @@ module.exports = {
__dirname,
'node_modules/.cache/webpack'
),
+ buildDependencies: {
+ config: [
+ __filename,
+ path.resolve( __dirname, '../../../pnpm-lock.yaml' ),
+ require.resolve( '@woocommerce/internal-style-build' ),
+ ],
+ },
},
entry: {
'build-style': __dirname + '/src/style.scss',
diff --git a/packages/js/block-templates/webpack.config.js b/packages/js/block-templates/webpack.config.js
index 093d33b5138..9d696e6b37f 100644
--- a/packages/js/block-templates/webpack.config.js
+++ b/packages/js/block-templates/webpack.config.js
@@ -18,6 +18,13 @@ module.exports = {
__dirname,
'node_modules/.cache/webpack'
),
+ buildDependencies: {
+ config: [
+ __filename,
+ path.resolve( __dirname, '../../../pnpm-lock.yaml' ),
+ require.resolve( '@woocommerce/internal-style-build' ),
+ ],
+ },
},
entry: {
'build-style': __dirname + '/src/style.scss',
diff --git a/packages/js/components/webpack.config.js b/packages/js/components/webpack.config.js
index 093d33b5138..9d696e6b37f 100644
--- a/packages/js/components/webpack.config.js
+++ b/packages/js/components/webpack.config.js
@@ -18,6 +18,13 @@ module.exports = {
__dirname,
'node_modules/.cache/webpack'
),
+ buildDependencies: {
+ config: [
+ __filename,
+ path.resolve( __dirname, '../../../pnpm-lock.yaml' ),
+ require.resolve( '@woocommerce/internal-style-build' ),
+ ],
+ },
},
entry: {
'build-style': __dirname + '/src/style.scss',
diff --git a/packages/js/customer-effort-score/webpack.config.js b/packages/js/customer-effort-score/webpack.config.js
index 093d33b5138..9d696e6b37f 100644
--- a/packages/js/customer-effort-score/webpack.config.js
+++ b/packages/js/customer-effort-score/webpack.config.js
@@ -18,6 +18,13 @@ module.exports = {
__dirname,
'node_modules/.cache/webpack'
),
+ buildDependencies: {
+ config: [
+ __filename,
+ path.resolve( __dirname, '../../../pnpm-lock.yaml' ),
+ require.resolve( '@woocommerce/internal-style-build' ),
+ ],
+ },
},
entry: {
'build-style': __dirname + '/src/style.scss',
diff --git a/packages/js/email-editor/webpack.config.js b/packages/js/email-editor/webpack.config.js
index 9296a84995a..7e67ce57262 100644
--- a/packages/js/email-editor/webpack.config.js
+++ b/packages/js/email-editor/webpack.config.js
@@ -18,6 +18,13 @@ module.exports = {
__dirname,
'node_modules/.cache/webpack'
),
+ buildDependencies: {
+ config: [
+ __filename,
+ path.resolve( __dirname, '../../../pnpm-lock.yaml' ),
+ require.resolve( '@woocommerce/internal-style-build' ),
+ ],
+ },
},
entry: {
'build-style': __dirname + '/src/style.scss',
diff --git a/packages/js/experimental/webpack.config.js b/packages/js/experimental/webpack.config.js
index 093d33b5138..9d696e6b37f 100644
--- a/packages/js/experimental/webpack.config.js
+++ b/packages/js/experimental/webpack.config.js
@@ -18,6 +18,13 @@ module.exports = {
__dirname,
'node_modules/.cache/webpack'
),
+ buildDependencies: {
+ config: [
+ __filename,
+ path.resolve( __dirname, '../../../pnpm-lock.yaml' ),
+ require.resolve( '@woocommerce/internal-style-build' ),
+ ],
+ },
},
entry: {
'build-style': __dirname + '/src/style.scss',
diff --git a/packages/js/onboarding/webpack.config.js b/packages/js/onboarding/webpack.config.js
index 093d33b5138..9d696e6b37f 100644
--- a/packages/js/onboarding/webpack.config.js
+++ b/packages/js/onboarding/webpack.config.js
@@ -18,6 +18,13 @@ module.exports = {
__dirname,
'node_modules/.cache/webpack'
),
+ buildDependencies: {
+ config: [
+ __filename,
+ path.resolve( __dirname, '../../../pnpm-lock.yaml' ),
+ require.resolve( '@woocommerce/internal-style-build' ),
+ ],
+ },
},
entry: {
'build-style': __dirname + '/src/style.scss',
diff --git a/packages/js/product-editor/webpack.config.js b/packages/js/product-editor/webpack.config.js
index ef8232cf3df..2834a19824e 100644
--- a/packages/js/product-editor/webpack.config.js
+++ b/packages/js/product-editor/webpack.config.js
@@ -71,6 +71,13 @@ module.exports = {
__dirname,
'node_modules/.cache/webpack'
),
+ buildDependencies: {
+ config: [
+ __filename,
+ path.resolve( __dirname, '../../../pnpm-lock.yaml' ),
+ require.resolve( '@woocommerce/internal-style-build' ),
+ ],
+ },
},
entry: {
'build-style': __dirname + '/src/style.scss',
diff --git a/packages/js/settings-editor/webpack.config.js b/packages/js/settings-editor/webpack.config.js
index b4cc4743e84..614965f2099 100644
--- a/packages/js/settings-editor/webpack.config.js
+++ b/packages/js/settings-editor/webpack.config.js
@@ -65,6 +65,13 @@ module.exports = {
__dirname,
'node_modules/.cache/webpack'
),
+ buildDependencies: {
+ config: [
+ __filename,
+ path.resolve( __dirname, '../../../pnpm-lock.yaml' ),
+ require.resolve( '@woocommerce/internal-style-build' ),
+ ],
+ },
},
entry: {
'build-style': __dirname + '/src/style.scss',
diff --git a/plugins/woocommerce/client/admin/webpack.config.js b/plugins/woocommerce/client/admin/webpack.config.js
index d6db96d8eef..1f72c806d6d 100644
--- a/plugins/woocommerce/client/admin/webpack.config.js
+++ b/plugins/woocommerce/client/admin/webpack.config.js
@@ -98,12 +98,9 @@ const webpackConfig = {
buildDependencies: {
config: [
__filename,
- require.resolve( './bin/custom-templated-path-webpack-plugin' ),
- require.resolve( './bin/unminify-webpack-plugin' ),
- require.resolve( '@woocommerce/dependency-extraction-webpack-plugin/src/index' ),
+ path.resolve( __dirname, '../../../../pnpm-lock.yaml' ),
+ require.resolve( '@woocommerce/dependency-extraction-webpack-plugin' ),
require.resolve( '@woocommerce/internal-style-build' ),
- require.resolve( '@woocommerce/internal-style-build/webpack-rtl-plugin' ),
- require.resolve( '@woocommerce/internal-style-build/style-asset-plugin' ),
],
},
},
diff --git a/plugins/woocommerce/client/blocks/webpack.config.js b/plugins/woocommerce/client/blocks/webpack.config.js
index 480690a906f..71cc87565ea 100644
--- a/plugins/woocommerce/client/blocks/webpack.config.js
+++ b/plugins/woocommerce/client/blocks/webpack.config.js
@@ -36,14 +36,9 @@ const getCacheConfig = ( name, configPaths = [] ) =>
buildDependencies: {
config: [
__filename,
- path.resolve( __dirname, 'bin/webpack-configs.js' ),
- path.resolve( __dirname, 'bin/webpack-helpers.js' ),
- require.resolve(
- '@woocommerce/dependency-extraction-webpack-plugin/src/index'
- ),
- require.resolve(
- '@woocommerce/internal-style-build/webpack-rtl-plugin'
- ),
+ path.resolve( __dirname, '../../../../pnpm-lock.yaml' ),
+ require.resolve( '@woocommerce/dependency-extraction-webpack-plugin' ),
+ require.resolve( '@woocommerce/internal-style-build' ),
...configPaths.map( ( configPath ) =>
path.resolve( __dirname, configPath )
),