Commit 58253f5f973 for woocommerce
commit 58253f5f9737b5abda6eecb8b8bd3b64b48e0e0d
Author: Ján Mikláš <neosinner@gmail.com>
Date: Thu Nov 26 11:10:17 2026 +0100
Align Axios, Commander and oclif across Node tooling (#71413)
* Align Axios, Commander and oclif across Node tooling
* Resolve Code Analyzer extra typings against Commander 10
* Centralize aligned Node tooling ranges in the pnpm catalog
* Declare Compare Perf's Node typings as a dev dependency.
Compare Perf runs through ts-node in transpile-only mode, so `@types/node` is only needed for editor and type checking.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NM9YXuFWofeyujZojqgDiD
* Remove the unused oclif entry point from Code Analyzer.
The package script and CI run the Commander entry point in `src/commands/analyzer`, so the one-line oclif re-export in `index.ts`, its tsconfig include and the unbuilt `types` field were dead. Package Release still uses the shared oclif catalog entry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NM9YXuFWofeyujZojqgDiD
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
diff --git a/.syncpackrc b/.syncpackrc
index ecc52959b05..f41a26e8109 100644
--- a/.syncpackrc
+++ b/.syncpackrc
@@ -118,16 +118,20 @@
"@babel/preset-react",
"@babel/preset-typescript",
"@babel/runtime",
+ "@commander-js/extra-typings",
"@jest/globals",
+ "@oclif/core",
"@types/jest",
"@wordpress/browserslist-config",
"@wordpress/env",
"@wordpress/postcss-plugins-preset",
"@wordpress/prettier-config",
"@wordpress/scripts",
+ "axios",
"babel-jest",
"babel-loader",
"babel-plugin-transform-react-remove-prop-types",
+ "commander",
"copy-webpack-plugin",
"css-loader",
"eslint",
diff --git a/packages/js/e2e-utils-playwright/changelog/wooplug-8163-dependency-cleanup b/packages/js/e2e-utils-playwright/changelog/wooplug-8163-dependency-cleanup
new file mode 100644
index 00000000000..9aa7117f440
--- /dev/null
+++ b/packages/js/e2e-utils-playwright/changelog/wooplug-8163-dependency-cleanup
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Share the Node tooling dependency versions through the workspace catalog.
diff --git a/packages/js/e2e-utils-playwright/package.json b/packages/js/e2e-utils-playwright/package.json
index ef9bc9af878..bd2bc08b98d 100644
--- a/packages/js/e2e-utils-playwright/package.json
+++ b/packages/js/e2e-utils-playwright/package.json
@@ -85,7 +85,7 @@
"typescript": "catalog:tooling"
},
"dependencies": {
- "axios": "^1.18.0",
+ "axios": "catalog:tooling",
"oauth-1.0a": "^2.2.6"
},
"publishConfig": {
diff --git a/packages/php/remote-specs-validation/bin/build b/packages/php/remote-specs-validation/bin/build
index 96e92416e2d..2eb7df7c885 100755
--- a/packages/php/remote-specs-validation/bin/build
+++ b/packages/php/remote-specs-validation/bin/build
@@ -3,7 +3,7 @@
const JsonRefs = require( 'json-refs' );
const fs = require( 'fs' );
const yaml = require( 'js-yaml' );
-const commander = require( 'commander' );
+const { program } = require( 'commander' );
const path = require( 'path' );
let indexJsonValue;
@@ -76,7 +76,7 @@ function build( indexJson ) {
} );
}
-commander
+program
.version( '1.0' )
.arguments( '<indexJson>' )
.action( function ( indexJson ) {
diff --git a/packages/php/remote-specs-validation/changelog/wooplug-8163-dependency-cleanup b/packages/php/remote-specs-validation/changelog/wooplug-8163-dependency-cleanup
new file mode 100644
index 00000000000..848c42fdf41
--- /dev/null
+++ b/packages/php/remote-specs-validation/changelog/wooplug-8163-dependency-cleanup
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Align the shared Node tooling dependency versions.
diff --git a/packages/php/remote-specs-validation/package.json b/packages/php/remote-specs-validation/package.json
index ad75e4c57ff..5f2265f46a0 100644
--- a/packages/php/remote-specs-validation/package.json
+++ b/packages/php/remote-specs-validation/package.json
@@ -7,8 +7,8 @@
},
"license": "GPL-2.0-or-later",
"dependencies": {
+ "commander": "catalog:tooling",
"js-yaml": "^4.3.1",
- "json-refs": "^3.0.15",
- "commander": "^5.1.0"
+ "json-refs": "^3.0.15"
}
}
diff --git a/plugins/woocommerce/changelog/wooplug-8163-dependency-cleanup b/plugins/woocommerce/changelog/wooplug-8163-dependency-cleanup
new file mode 100644
index 00000000000..848c42fdf41
--- /dev/null
+++ b/plugins/woocommerce/changelog/wooplug-8163-dependency-cleanup
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Align the shared Node tooling dependency versions.
diff --git a/plugins/woocommerce/package.json b/plugins/woocommerce/package.json
index 6888ba72092..9322c888550 100644
--- a/plugins/woocommerce/package.json
+++ b/plugins/woocommerce/package.json
@@ -1558,7 +1558,7 @@
"@woocommerce/internal-build": "workspace:*",
"@wordpress/e2e-test-utils-playwright": "catalog:wp-min",
"@wordpress/env": "catalog:tooling",
- "axios": "^0.34.0",
+ "axios": "catalog:tooling",
"config": "3.3.7",
"dotenv": "^10.0.0",
"eslint": "catalog:tooling",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 52a8184dc8b..ed364c0be3f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -220,9 +220,15 @@ catalogs:
'@babel/runtime':
specifier: 7.25.7
version: 7.25.7
+ '@commander-js/extra-typings':
+ specifier: ^10.0.3
+ version: 10.0.3
'@jest/globals':
specifier: 29.5.x
version: 29.5.0
+ '@oclif/core':
+ specifier: ^4.13.5
+ version: 4.13.5
'@types/jest':
specifier: 29.5.x
version: 29.5.14
@@ -247,6 +253,9 @@ catalogs:
'@wordpress/stylelint-config':
specifier: ^23.14.0
version: 23.42.0
+ axios:
+ specifier: ^1.18.0
+ version: 1.21.0
babel-jest:
specifier: 29.5.x
version: 29.5.0
@@ -256,6 +265,9 @@ catalogs:
babel-plugin-transform-react-remove-prop-types:
specifier: 0.4.24
version: 0.4.24
+ commander:
+ specifier: ^10.0.1
+ version: 10.0.1
copy-webpack-plugin:
specifier: 14.0.x
version: 14.0.0
@@ -1456,7 +1468,7 @@ importers:
packages/js/e2e-utils-playwright:
dependencies:
axios:
- specifier: ^1.18.0
+ specifier: catalog:tooling
version: 1.21.0
oauth-1.0a:
specifier: ^2.2.6
@@ -2740,8 +2752,8 @@ importers:
packages/php/remote-specs-validation:
dependencies:
commander:
- specifier: ^5.1.0
- version: 5.1.0
+ specifier: catalog:tooling
+ version: 10.0.1
js-yaml:
specifier: ^4.3.1
version: 4.3.2
@@ -2865,8 +2877,8 @@ importers:
specifier: catalog:tooling
version: 12.0.0(@types/node@24.12.2)
axios:
- specifier: ^0.34.0
- version: 0.34.0
+ specifier: catalog:tooling
+ version: 1.21.0
config:
specifier: 3.3.7
version: 3.3.7
@@ -4139,11 +4151,8 @@ importers:
specifier: ^2.0.3
version: 2.0.3
'@commander-js/extra-typings':
- specifier: ^10.0.3
- version: 10.0.3(commander@9.5.0)
- '@oclif/core':
- specifier: ^2.15.0
- version: 2.16.0(@swc/core@1.15.24)(@types/node@24.12.2)(typescript@5.7.3)
+ specifier: catalog:tooling
+ version: 10.0.3(commander@10.0.1)
'@tsconfig/node16':
specifier: ^1.0.4
version: 1.0.4
@@ -4151,8 +4160,8 @@ importers:
specifier: workspace:*
version: link:../monorepo-utils
commander:
- specifier: ^9.5.0
- version: 9.5.0
+ specifier: catalog:tooling
+ version: 10.0.1
dotenv:
specifier: ^10.0.0
version: 10.0.0
@@ -4196,15 +4205,12 @@ importers:
'@tsconfig/node16':
specifier: ^1.0.4
version: 1.0.4
- '@types/node':
- specifier: ^24.1.0
- version: 24.12.2
chalk:
specifier: ^4.1.2
version: 4.1.2
commander:
- specifier: 9.5.0
- version: 9.5.0
+ specifier: catalog:tooling
+ version: 10.0.1
inquirer:
specifier: ^7.1.0
version: 7.3.3
@@ -4214,6 +4220,10 @@ importers:
ts-node:
specifier: ^10.9.2
version: 10.9.2(@swc/core@1.15.24)(@types/node@24.12.2)(typescript@5.7.3)
+ devDependencies:
+ '@types/node':
+ specifier: ^24.1.0
+ version: 24.12.2
tools/eslint-config:
dependencies:
@@ -4240,7 +4250,7 @@ importers:
specifier: ^2.0.3
version: 2.0.3
'@commander-js/extra-typings':
- specifier: ^10.0.3
+ specifier: catalog:tooling
version: 10.0.3(commander@10.0.1)
'@octokit/graphql':
specifier: 4.8.0
@@ -4264,7 +4274,7 @@ importers:
specifier: ^0.3.11
version: 0.3.11
commander:
- specifier: ^10.0.1
+ specifier: catalog:tooling
version: 10.0.1
dotenv:
specifier: ^10.0.0
@@ -4343,7 +4353,7 @@ importers:
tools/package-release:
dependencies:
'@oclif/core':
- specifier: ^4.13.5
+ specifier: catalog:tooling
version: 4.13.5
'@oclif/plugin-help':
specifier: ^6.2.58
@@ -4389,8 +4399,8 @@ importers:
tools/release-posts:
dependencies:
'@commander-js/extra-typings':
- specifier: ^0.1.0
- version: 0.1.0(commander@9.4.0)
+ specifier: catalog:tooling
+ version: 10.0.3(commander@10.0.1)
'@octokit/rest':
specifier: ^19.0.13
version: 19.0.13(encoding@0.1.13)
@@ -4398,8 +4408,8 @@ importers:
specifier: workspace:*
version: link:../monorepo-utils
commander:
- specifier: 9.4.0
- version: 9.4.0
+ specifier: catalog:tooling
+ version: 10.0.1
dotenv:
specifier: ^15.0.1
version: 15.0.1
@@ -5526,11 +5536,6 @@ packages:
resolution: {integrity: sha512-YstAqNb0MCN8PjdLCDfRsBcGVRN41f3vgLvaI0IrIcBp4AqILRSS0DeWNGkicC+f/zRIPJLc+9RURVSepwvfBw==}
hasBin: true
- '@commander-js/extra-typings@0.1.0':
- resolution: {integrity: sha512-50cPNlbqkrYan5EUHTz7ffS3rrZ83QgE8cNfEiHlOLdhBaMgB7DPHm5pTl3PJlRGsq59iZXVa97N9sgiNQ5/vA==}
- peerDependencies:
- commander: 9.x
-
'@commander-js/extra-typings@10.0.3':
resolution: {integrity: sha512-OIw28QV/GlP8k0B5CJTRsl8IyNvd0R8C8rfo54Yz9P388vCNDgdNrFlKxZTGqps+5j6lSw3Ss9JTQwcur1w1oA==}
peerDependencies:
@@ -6758,10 +6763,6 @@ packages:
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
engines: {node: '>= 8'}
- '@oclif/core@2.16.0':
- resolution: {integrity: sha512-dL6atBH0zCZl1A1IXCKJgLPrM/wR7K+Wi401E/IvqsK8m2iCHW+0TEOGrans/cuN3oTW+uxIyJFHJ8Im0k4qBw==}
- engines: {node: '>=14.0.0'}
-
'@oclif/core@4.13.5':
resolution: {integrity: sha512-KcbWlSO+s0Yr9c5wHNC6Npqdh46iJ8t9wCWW19yipT0QmnfZjoTqqqJ1DoP6s3i5P1z5cG35AqS17KL3b20Klw==}
engines: {node: '>=18.0.0'}
@@ -8944,9 +8945,6 @@ packages:
'@types/chai@5.2.3':
resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==}
- '@types/cli-progress@3.11.6':
- resolution: {integrity: sha512-cE3+jb9WRlu+uOSAugewNpITJDt1VF8dHOopPO4IABFc3SXYL5WE/+PTz/FCdZRRfIujiWW3n3aMbv1eIGVRWA==}
-
'@types/cli-table@0.3.4':
resolution: {integrity: sha512-GsALrTL69mlwbAw/MHF1IPTadSLZQnsxe7a80G8l4inN/iEXCOcVeT/S7aRc6hbhqzL9qZ314kHPDQnQ3ev+HA==}
@@ -11781,9 +11779,6 @@ packages:
resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==}
engines: {node: '>=12'}
- ansicolors@0.3.2:
- resolution: {integrity: sha512-QXu7BPrP29VllRxH8GwB7x5iX5qWKAAMLqKQGWTeLWVlNHNOpVMJ91dsxQAIWXpjuW5wqvxu3Jd/nRjrJ+0pqg==}
-
ansis@1.5.2:
resolution: {integrity: sha512-T3vUABrcgSj/HXv27P+A/JxGk5b/ydx0JjN3lgjBTC2iZUFxQGjh43zCzLSbU4C1QTgmx9oaPeWNJFM+auI8qw==}
engines: {node: '>=12.13'}
@@ -11977,9 +11972,6 @@ packages:
resolution: {integrity: sha512-9WTZxEjsZ7b13TH8JPmbV2z8CHbl80/2hm3XPEG4JgNdQLK81IBRXmSxHfMAOkSqQeRxT/0dwNDz2GOm3zzpcQ==}
engines: {node: '>=4'}
- axios@0.34.0:
- resolution: {integrity: sha512-CkOmqy7BaT4VC9+wRUmSM3LVwCkKK3UYc7koEqIHWRpOTJypwdNctaVOgnOjhHP3599Ubq2K8KqYwfC7c8NdPQ==}
-
axios@1.21.0:
resolution: {integrity: sha512-YCzXMB53Q9PZBsh7yN7wtapit4WepwcHS2fP8QhGsBxSz5YtgYobV7GGlWlAJi+RxfU77GQTQi2DSLUma42EYA==}
@@ -12339,10 +12331,6 @@ packages:
capital-case@1.0.4:
resolution: {integrity: sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==}
- cardinal@2.1.1:
- resolution: {integrity: sha512-JSr5eOgoEymtYHBjNWyjrMqet9Am2miJhlfKNdqLp6zoeAh0KN5dRAcxlecj5mAJrmQomgiOBj35xHLrFjqBpw==}
- hasBin: true
-
case-sensitive-paths-webpack-plugin@2.4.0:
resolution: {integrity: sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw==}
engines: {node: '>=4'}
@@ -12477,10 +12465,6 @@ packages:
resolution: {integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==}
engines: {node: '>=8'}
- cli-progress@3.12.0:
- resolution: {integrity: sha512-tRkV3HJ1ASwm19THiiLIXLO7Im7wlTuKnvkYaTkyoAPefqjNg7W7DHKUlGRxy9vxDvbyCYQkQozvptuMkGCg8A==}
- engines: {node: '>=4'}
-
cli-spinners@2.9.2:
resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==}
engines: {node: '>=6'}
@@ -12629,10 +12613,6 @@ packages:
resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}
engines: {node: '>= 6'}
- commander@5.1.0:
- resolution: {integrity: sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==}
- engines: {node: '>= 6'}
-
commander@6.2.1:
resolution: {integrity: sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==}
engines: {node: '>= 6'}
@@ -12649,10 +12629,6 @@ packages:
resolution: {integrity: sha512-JJfP2saEKbQqvW+FI93OYUB4ByV5cizMpFMiiJI8xDbBvQvSkIk0VvQdn1CZ8mqAO8Loq2h0gYTYtDFUZUeERw==}
engines: {node: ^12.20.0 || >=14}
- commander@9.4.0:
- resolution: {integrity: sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw==}
- engines: {node: ^12.20.0 || >=14}
-
commander@9.5.0:
resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==}
engines: {node: ^12.20.0 || >=14}
@@ -14846,10 +14822,6 @@ packages:
resolution: {integrity: sha512-Y93lCzHYgGWdrJ66yIktxiaGULYc6oGiABxhcO5AufBeOyoIdZF7bIfLaOrbM0iGIOXQQgxxRrFEnb+Y6w1n4A==}
engines: {node: '>=10.18'}
- hyperlinker@1.0.0:
- resolution: {integrity: sha512-Ty8UblRWFEcfSuIaajM34LdPXIhbs1ajEX/BBPv24J+enSVaEVY63xQ6lTO9VRYS5LAoghIG0IDJ+p+IPzKUQQ==}
- engines: {node: '>=4'}
-
i18n-calypso@7.4.0:
resolution: {integrity: sha512-2sIW2+GAViIycml5D11B0N5Pia47BZYN41Ghvr59V8aKZGFREiUrbB6RD9x29jTgLisjEr94EZ/KBc+K8VLIjw==}
peerDependencies:
@@ -16509,9 +16481,6 @@ packages:
natural-compare@1.4.0:
resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
- natural-orderby@2.0.3:
- resolution: {integrity: sha512-p7KTHxU0CUrcOXe62Zfrb5Z13nLvPhSWR/so3kFulUQU0sgUll2Z0LwpsLN351eOOD+hRGu/F1g+6xDfPeD++Q==}
-
negotiator@0.6.3:
resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==}
engines: {node: '>= 0.6'}
@@ -16738,10 +16707,6 @@ packages:
resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}
engines: {node: '>= 0.4'}
- object-treeify@1.1.33:
- resolution: {integrity: sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==}
- engines: {node: '>= 10'}
-
object-treeify@4.0.1:
resolution: {integrity: sha512-Y6tg5rHfsefSkfKujv2SwHulInROy/rCL5F4w0QOWxut8AnxYxf0YmNhTh95Zfyxpsudo66uqkux0ACFnyMSgQ==}
engines: {node: '>= 16'}
@@ -17002,9 +16967,6 @@ packages:
pascal-case@3.1.2:
resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==}
- password-prompt@1.1.3:
- resolution: {integrity: sha512-HkrjG2aJlvF0t2BMH0e2LB/EHf3Lcq3fNMzy4GYHcQblAvOl+QQji1Lx7WRBMqpVK8p+KR7bCg7oqAMXtdgqyw==}
-
path-case@3.0.4:
resolution: {integrity: sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==}
@@ -18212,9 +18174,6 @@ packages:
resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==}
engines: {node: '>=8'}
- redeyed@2.1.1:
- resolution: {integrity: sha512-FNpGGo1DycYAdnrKFxCMmKYgo/mILAqtRYbkdQD8Ep/Hk2PQ5+aEAEx+IU713RTDmuBaH0c8P5ZozurNu5ObRQ==}
-
redux@4.2.1:
resolution: {integrity: sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==}
@@ -19264,10 +19223,6 @@ packages:
resolution: {integrity: sha512-VL+lNrEoIXww1coLPOmiEmK/0sGigko5COxI09KzHc2VJXJsQ37UaQ+8quuxjDeA7+KnLGTWRyOXSLLR2Wb4jw==}
engines: {node: '>=12'}
- supports-hyperlinks@2.3.0:
- resolution: {integrity: sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==}
- engines: {node: '>=8'}
-
supports-hyperlinks@3.2.0:
resolution: {integrity: sha512-zFObLMyZeEwzAoKCyu1B91U79K2t7ApXuQfo8OuxwXLDgcKxuwM+YvcbIhm6QWqz7mHUH1TVytR1PwVVjEuMig==}
engines: {node: '>=14.18'}
@@ -22662,18 +22617,10 @@ snapshots:
dependencies:
commander: 2.20.3
- '@commander-js/extra-typings@0.1.0(commander@9.4.0)':
- dependencies:
- commander: 9.4.0
-
'@commander-js/extra-typings@10.0.3(commander@10.0.1)':
dependencies:
commander: 10.0.1
- '@commander-js/extra-typings@10.0.3(commander@9.5.0)':
- dependencies:
- commander: 9.5.0
-
'@cspotcode/source-map-support@0.8.1':
dependencies:
'@jridgewell/trace-mapping': 0.3.9
@@ -24028,42 +23975,6 @@ snapshots:
'@nodelib/fs.scandir': 2.1.5
fastq: 1.20.1
- '@oclif/core@2.16.0(@swc/core@1.15.24)(@types/node@24.12.2)(typescript@5.7.3)':
- dependencies:
- '@types/cli-progress': 3.11.6
- ansi-escapes: 4.3.2
- ansi-styles: 4.3.0
- cardinal: 2.1.1
- chalk: 4.1.2
- clean-stack: 3.0.1
- cli-progress: 3.12.0
- debug: 4.4.3(supports-color@8.1.1)
- ejs: 3.1.10
- get-package-type: 0.1.0
- globby: 11.1.0
- hyperlinker: 1.0.0
- indent-string: 4.0.0
- is-wsl: 2.2.0
- js-yaml: 3.15.2
- natural-orderby: 2.0.3
- object-treeify: 1.1.33
- password-prompt: 1.1.3
- slice-ansi: 4.0.0
- string-width: 4.2.3
- strip-ansi: 6.0.1
- supports-color: 8.1.1
- supports-hyperlinks: 2.3.0
- ts-node: 10.9.2(@swc/core@1.15.24)(@types/node@24.12.2)(typescript@5.7.3)
- tslib: 2.8.1
- widest-line: 3.1.0
- wordwrap: 1.0.0
- wrap-ansi: 7.0.0
- transitivePeerDependencies:
- - '@swc/core'
- - '@swc/wasm'
- - '@types/node'
- - typescript
-
'@oclif/core@4.13.5':
dependencies:
ansi-escapes: 4.3.2
@@ -26741,10 +26652,6 @@ snapshots:
'@types/deep-eql': 4.0.2
assertion-error: 2.0.1
- '@types/cli-progress@3.11.6':
- dependencies:
- '@types/node': 24.12.2
-
'@types/cli-table@0.3.4': {}
'@types/connect-history-api-fallback@1.5.4':
@@ -34183,8 +34090,6 @@ snapshots:
ansi-styles@6.2.3: {}
- ansicolors@0.3.2: {}
-
ansis@1.5.2: {}
ansis@3.17.0: {}
@@ -34389,14 +34294,6 @@ snapshots:
axe-core@4.14.0: {}
- axios@0.34.0:
- dependencies:
- follow-redirects: 1.16.2(debug@4.4.3)
- form-data: 4.0.6
- proxy-from-env: 1.1.0
- transitivePeerDependencies:
- - debug
-
axios@1.21.0:
dependencies:
follow-redirects: 1.16.2(debug@4.4.3)
@@ -34874,11 +34771,6 @@ snapshots:
tslib: 2.8.1
upper-case-first: 2.0.2
- cardinal@2.1.1:
- dependencies:
- ansicolors: 0.3.2
- redeyed: 2.1.1
-
case-sensitive-paths-webpack-plugin@2.4.0: {}
chai@5.3.3:
@@ -35033,10 +34925,6 @@ snapshots:
dependencies:
restore-cursor: 3.1.0
- cli-progress@3.12.0:
- dependencies:
- string-width: 4.2.3
-
cli-spinners@2.9.2: {}
cli-table@0.3.11:
@@ -35182,8 +35070,6 @@ snapshots:
commander@4.1.1: {}
- commander@5.1.0: {}
-
commander@6.2.1: {}
commander@7.2.0: {}
@@ -35192,8 +35078,6 @@ snapshots:
commander@9.0.0: {}
- commander@9.4.0: {}
-
commander@9.5.0: {}
comment-parser@1.4.1: {}
@@ -37879,8 +37763,6 @@ snapshots:
hyperdyperid@1.2.0: {}
- hyperlinker@1.0.0: {}
-
i18n-calypso@7.4.0(@types/react@18.3.28)(react@18.3.1):
dependencies:
'@automattic/interpolate-components': 1.2.1(@types/react@18.3.28)(react@18.3.1)
@@ -40154,8 +40036,6 @@ snapshots:
natural-compare@1.4.0: {}
- natural-orderby@2.0.3: {}
-
negotiator@0.6.3: {}
negotiator@0.6.4: {}
@@ -40320,8 +40200,6 @@ snapshots:
object-keys@1.1.1: {}
- object-treeify@1.1.33: {}
-
object-treeify@4.0.1: {}
object.assign@4.1.7:
@@ -40759,11 +40637,6 @@ snapshots:
no-case: 3.0.4
tslib: 2.8.1
- password-prompt@1.1.3:
- dependencies:
- ansi-escapes: 4.3.2
- cross-spawn: 7.0.6
-
path-case@3.0.4:
dependencies:
dot-case: 3.0.4
@@ -42037,10 +41910,6 @@ snapshots:
indent-string: 4.0.0
strip-indent: 3.0.0
- redeyed@2.1.1:
- dependencies:
- esprima: 4.0.1
-
redux@4.2.1:
dependencies:
'@babel/runtime': 7.29.10
@@ -43293,11 +43162,6 @@ snapshots:
supports-color@9.4.0: {}
- supports-hyperlinks@2.3.0:
- dependencies:
- has-flag: 4.0.0
- supports-color: 7.2.0
-
supports-hyperlinks@3.2.0:
dependencies:
has-flag: 4.0.0
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index a39c41da331..0e65cf5b5b4 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -76,8 +76,10 @@ catalogs:
'@babel/preset-react': 7.25.7
'@babel/preset-typescript': 7.25.7
'@babel/runtime': 7.25.7
+ '@commander-js/extra-typings': ^10.0.3
# Keep direct Jest packages on 29.5.x; WordPress scripts manages its own test runner.
'@jest/globals': 29.5.x
+ '@oclif/core': ^4.13.5
'@types/jest': 29.5.x
'@wordpress/browserslist-config': next
'@wordpress/build': 0.24.0
@@ -86,9 +88,11 @@ catalogs:
'@wordpress/postcss-plugins-preset': 5.56.0
'@wordpress/scripts': 35.0.0
'@wordpress/stylelint-config': ^23.14.0
+ axios: ^1.18.0
babel-jest: 29.5.x
babel-loader: 9.2.x
babel-plugin-transform-react-remove-prop-types: 0.4.24
+ commander: ^10.0.1
copy-webpack-plugin: 14.0.x
css-loader: 6.11.x
eslint: ^10.0.0
diff --git a/tools/code-analyzer/changelog/wooplug-8163-dependency-cleanup b/tools/code-analyzer/changelog/wooplug-8163-dependency-cleanup
new file mode 100644
index 00000000000..446afbaf4dc
--- /dev/null
+++ b/tools/code-analyzer/changelog/wooplug-8163-dependency-cleanup
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Align the shared Node tooling dependency versions and drop the unused oclif dependency.
diff --git a/tools/code-analyzer/index.ts b/tools/code-analyzer/index.ts
deleted file mode 100644
index d620e709ab9..00000000000
--- a/tools/code-analyzer/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { run } from '@oclif/core';
diff --git a/tools/code-analyzer/package.json b/tools/code-analyzer/package.json
index 7fdf02e31e8..a51143a6667 100644
--- a/tools/code-analyzer/package.json
+++ b/tools/code-analyzer/package.json
@@ -7,7 +7,6 @@
"license": "GPL-2.0-or-later",
"repository": "woocommerce/woocommerce",
"private": true,
- "types": "dist/index.d.ts",
"scripts": {
"analyzer": "node -r ts-node/register ./src/commands/analyzer/index.ts",
"lint": "eslint .",
@@ -16,11 +15,10 @@
},
"dependencies": {
"@actions/core": "^2.0.3",
- "@commander-js/extra-typings": "^10.0.3",
- "@oclif/core": "^2.15.0",
+ "@commander-js/extra-typings": "catalog:tooling",
"@tsconfig/node16": "^1.0.4",
"@woocommerce/monorepo-utils": "workspace:*",
- "commander": "^9.5.0",
+ "commander": "catalog:tooling",
"dotenv": "^10.0.0",
"simple-git": "catalog:tooling"
},
diff --git a/tools/code-analyzer/tsconfig.json b/tools/code-analyzer/tsconfig.json
index 86d8e3bdc64..dba65d041b6 100644
--- a/tools/code-analyzer/tsconfig.json
+++ b/tools/code-analyzer/tsconfig.json
@@ -13,7 +13,6 @@
"files": true,
},
"include": [
- "index.ts",
"src/**/*"
]
}
diff --git a/tools/compare-perf/changelog/wooplug-8163-dependency-cleanup b/tools/compare-perf/changelog/wooplug-8163-dependency-cleanup
new file mode 100644
index 00000000000..ac5a481d433
--- /dev/null
+++ b/tools/compare-perf/changelog/wooplug-8163-dependency-cleanup
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Align the shared Node tooling dependency versions and move Node typings to dev dependencies.
diff --git a/tools/compare-perf/index.js b/tools/compare-perf/index.js
index 8415f3f71f8..e12f594fe5c 100755
--- a/tools/compare-perf/index.js
+++ b/tools/compare-perf/index.js
@@ -1,7 +1,7 @@
#!/usr/bin/env node
/* eslint-disable no-console */
-const program = require( 'commander' );
+const { program } = require( 'commander' );
const { runPerformanceTests } = require( './performance' );
const catchException = ( command ) => {
diff --git a/tools/compare-perf/package.json b/tools/compare-perf/package.json
index 89c2b2e4bad..adbed2b6344 100644
--- a/tools/compare-perf/package.json
+++ b/tools/compare-perf/package.json
@@ -11,14 +11,16 @@
"log": "node log-to-codevitals.js"
},
"dependencies": {
- "@types/node": "^24.1.0",
"@tsconfig/node16": "^1.0.4",
- "commander": "9.5.0",
"chalk": "^4.1.2",
+ "commander": "catalog:tooling",
"inquirer": "^7.1.0",
"simple-git": "catalog:tooling",
"ts-node": "^10.9.2"
},
+ "devDependencies": {
+ "@types/node": "^24.1.0"
+ },
"engines": {
"node": "^24.15.0"
}
diff --git a/tools/monorepo-utils/changelog/wooplug-8163-dependency-cleanup b/tools/monorepo-utils/changelog/wooplug-8163-dependency-cleanup
new file mode 100644
index 00000000000..9aa7117f440
--- /dev/null
+++ b/tools/monorepo-utils/changelog/wooplug-8163-dependency-cleanup
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Share the Node tooling dependency versions through the workspace catalog.
diff --git a/tools/monorepo-utils/package.json b/tools/monorepo-utils/package.json
index e2e5c729165..9c9f4abd608 100644
--- a/tools/monorepo-utils/package.json
+++ b/tools/monorepo-utils/package.json
@@ -25,7 +25,7 @@
},
"dependencies": {
"@actions/core": "^2.0.3",
- "@commander-js/extra-typings": "^10.0.3",
+ "@commander-js/extra-typings": "catalog:tooling",
"@octokit/graphql": "4.8.0",
"@octokit/graphql-schema": "^14.45.1",
"@octokit/types": "^9.3.2",
@@ -33,7 +33,7 @@
"@types/cli-table": "^0.3.4",
"chalk": "^4.1.2",
"cli-table": "^0.3.11",
- "commander": "^10.0.1",
+ "commander": "catalog:tooling",
"dotenv": "^10.0.0",
"figlet": "^1.7.0",
"glob": "^10.3.10",
diff --git a/tools/package-release/changelog/wooplug-8163-dependency-cleanup b/tools/package-release/changelog/wooplug-8163-dependency-cleanup
new file mode 100644
index 00000000000..9aa7117f440
--- /dev/null
+++ b/tools/package-release/changelog/wooplug-8163-dependency-cleanup
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Share the Node tooling dependency versions through the workspace catalog.
diff --git a/tools/package-release/package.json b/tools/package-release/package.json
index fd10ab87198..b4c3dfc4182 100644
--- a/tools/package-release/package.json
+++ b/tools/package-release/package.json
@@ -24,7 +24,7 @@
"posttest": "pnpm lint"
},
"dependencies": {
- "@oclif/core": "^4.13.5",
+ "@oclif/core": "catalog:tooling",
"@oclif/plugin-help": "^6.2.58",
"@oclif/plugin-plugins": "^5.4.87",
"@types/semver": "^7.5.6",
diff --git a/tools/release-posts/changelog/wooplug-8163-dependency-cleanup b/tools/release-posts/changelog/wooplug-8163-dependency-cleanup
new file mode 100644
index 00000000000..848c42fdf41
--- /dev/null
+++ b/tools/release-posts/changelog/wooplug-8163-dependency-cleanup
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Align the shared Node tooling dependency versions.
diff --git a/tools/release-posts/package.json b/tools/release-posts/package.json
index 7c298e1ed0d..6378a7db9dd 100644
--- a/tools/release-posts/package.json
+++ b/tools/release-posts/package.json
@@ -20,10 +20,10 @@
"typescript": "catalog:tooling"
},
"dependencies": {
- "@commander-js/extra-typings": "^0.1.0",
+ "@commander-js/extra-typings": "catalog:tooling",
"@octokit/rest": "^19.0.13",
"@woocommerce/monorepo-utils": "workspace:*",
- "commander": "9.4.0",
+ "commander": "catalog:tooling",
"dotenv": "^15.0.1",
"ejs": "^3.1.9",
"lodash.shuffle": "^4.2.0",