Commit b7e6619675 for woocommerce
commit b7e6619675020ece0a90cb5549cc04101a40893d
Author: Luigi Teschio <gigitux@gmail.com>
Date: Tue Jun 17 13:30:36 2025 +0200
Remove cross-env dependency (#58905)
* Update pnpm-lock.yaml and package.json to remove cross-env dependency
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
diff --git a/plugins/woocommerce/changelog/58905-refactor-remove-cross-env-blocks b/plugins/woocommerce/changelog/58905-refactor-remove-cross-env-blocks
new file mode 100644
index 0000000000..5e604727ba
--- /dev/null
+++ b/plugins/woocommerce/changelog/58905-refactor-remove-cross-env-blocks
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Remove cross-env dependency
\ No newline at end of file
diff --git a/plugins/woocommerce/client/blocks/package.json b/plugins/woocommerce/client/blocks/package.json
index aee159d5fe..ae04056790 100644
--- a/plugins/woocommerce/client/blocks/package.json
+++ b/plugins/woocommerce/client/blocks/package.json
@@ -43,16 +43,16 @@
"./packages/**/*.{tsx,ts,js}"
],
"scripts": {
- "analyze-bundles": "cross-env WP_BUNDLE_ANALYZER=1 pnpm run build",
+ "analyze-bundles": "WP_BUNDLE_ANALYZER=1 pnpm run build",
"build": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" '/^build:project:.*$/'",
"build:project": "pnpm --if-present '/^build:project:.*$/'",
"build:project:bundle": "wireit",
- "build:check-assets": "npx ajv validate -s bin/block.json-validation-schema.json -d assets/js/**/block.json && rimraf build/* && cross-env ASSET_CHECK=true BABEL_ENV=default NODE_ENV=production webpack",
+ "build:check-assets": "npx ajv validate -s bin/block.json-validation-schema.json -d assets/js/**/block.json && rimraf build/* && ASSET_CHECK=true BABEL_ENV=default NODE_ENV=production webpack",
"prebuild:docs": "rimraf docs/extensibility/actions.md & rimraf docs/extensibility/filters.md",
"build:docs": "./vendor/bin/wp-hooks-generator --input=src --output=bin/hook-docs/data && node ./bin/hook-docs && pnpm build:docs:block-references",
"build:docs:block-references": "node ./bin/gen-block-list-doc.js",
"postbuild:docs": "./bin/add-doc-footer.sh",
- "dev": "rimraf build/* && cross-env BABEL_ENV=default webpack",
+ "dev": "rimraf build/* && BABEL_ENV=default webpack",
"lint": "pnpm --if-present '/^lint:lang:.*$/'",
"lint:fix": "pnpm --if-present '/^lint:fix:lang:.*$/'",
"lint:fix:lang:css": "pnpm lint:css-fix",
@@ -69,7 +69,7 @@
"pre-commit": "lint-staged",
"reformat-files": "prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,ts,tsx,css,scss}\"",
"rimraf": "./node_modules/rimraf/bin.js",
- "start": "rimraf build/* && cross-env BABEL_ENV=default CHECK_CIRCULAR_DEPS=true webpack --watch",
+ "start": "rimraf build/* && BABEL_ENV=default CHECK_CIRCULAR_DEPS=true webpack --watch",
"storybook": "pnpm watch:build:storybook",
"storybook:build": "pnpm build:storybook",
"storybook:deploy": "rimraf ./storybook/dist/* && pnpm run storybook:build && gh-pages -d ./storybook/dist",
@@ -99,7 +99,7 @@
"watch:build": "pnpm --if-present --workspace-concurrency=Infinity --filter=\"$npm_package_name...\" --parallel '/^watch:build:project:.*$/'",
"watch:build:project": "pnpm --if-present run '/^watch:build:project:.*$/'",
"watch:build:project:bundle": "wireit",
- "knip": "cross-env WP_EXPERIMENTAL_MODULES=true knip"
+ "knip": "WP_EXPERIMENTAL_MODULES=true knip"
},
"devDependencies": {
"@automattic/color-studio": "4.0.0",
@@ -192,7 +192,6 @@
"circular-dependency-plugin": "5.2.x",
"copy-webpack-plugin": "13.0.x",
"core-js": "3.25.0",
- "cross-env": "7.0.3",
"css-loader": "6.11.x",
"cssnano": "5.1.12",
"deep-freeze": "0.0.1",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 60dd7c6494..bbf558124c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -186,7 +186,7 @@ importers:
version: 10.5.0(sass@1.69.5)(webpack@5.97.1(@swc/core@1.3.100))
ts-jest:
specifier: 29.1.x
- version: 29.1.1(@babel/core@7.26.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@27.5.1(node-notifier@8.0.2)(ts-node@10.9.2(@swc/core@1.3.100)(@types/node@22.9.1)(typescript@5.7.2)))(typescript@5.7.2)
+ version: 29.1.1(@babel/core@7.25.7)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.25.7))(jest@27.5.1(node-notifier@8.0.2)(ts-node@10.9.2(@swc/core@1.3.100)(@types/node@22.9.1)(typescript@5.7.2)))(typescript@5.7.2)
typescript:
specifier: 5.7.x
version: 5.7.2
@@ -4006,9 +4006,6 @@ importers:
core-js:
specifier: 3.25.0
version: 3.25.0
- cross-env:
- specifier: 7.0.3
- version: 7.0.3
css-loader:
specifier: 6.11.x
version: 6.11.0(webpack@5.97.1(@swc/core@1.3.100))
@@ -27251,7 +27248,7 @@ snapshots:
'@types/istanbul-lib-coverage': 2.0.6
collect-v8-coverage: 1.0.2
- '@jest/test-sequencer@26.6.3':
+ '@jest/test-sequencer@26.6.3(ts-node@10.9.2(@swc/core@1.3.100)(@types/node@22.9.1)(typescript@5.7.2))':
dependencies:
'@jest/test-result': 26.6.2
graceful-fs: 4.2.11
@@ -27259,7 +27256,11 @@ snapshots:
jest-runner: 26.6.3(ts-node@10.9.2(@swc/core@1.3.100)(@types/node@22.9.1)(typescript@5.7.2))
jest-runtime: 26.6.3(ts-node@10.9.2(@swc/core@1.3.100)(@types/node@22.9.1)(typescript@5.7.2))
transitivePeerDependencies:
+ - bufferutil
+ - canvas
- supports-color
+ - ts-node
+ - utf-8-validate
'@jest/test-sequencer@27.5.1':
dependencies:
@@ -32832,13 +32833,13 @@ snapshots:
'@types/node': 20.17.8
optional: true
- '@typescript-eslint/eslint-plugin@4.33.0(@typescript-eslint/parser@4.33.0(eslint@8.55.0)(typescript@5.7.2))(eslint@8.55.0)(typescript@5.7.2)':
+ '@typescript-eslint/eslint-plugin@4.33.0(@typescript-eslint/parser@4.33.0(eslint@8.55.0)(typescript@5.7.2))(eslint@7.32.0)(typescript@5.7.2)':
dependencies:
'@typescript-eslint/experimental-utils': 4.33.0(eslint@7.32.0)(typescript@5.7.2)
'@typescript-eslint/parser': 4.33.0(eslint@7.32.0)(typescript@5.7.2)
'@typescript-eslint/scope-manager': 4.33.0
debug: 4.4.0
- eslint: 8.55.0
+ eslint: 7.32.0
functional-red-black-tree: 1.0.1
ignore: 5.3.0
regexpp: 3.2.0
@@ -36260,14 +36261,14 @@ snapshots:
'@wordpress/eslint-plugin@9.3.0(@babel/core@7.25.7)(eslint@7.32.0)(typescript@5.7.2)':
dependencies:
'@babel/eslint-parser': 7.23.3(@babel/core@7.25.7)(eslint@7.32.0)
- '@typescript-eslint/eslint-plugin': 4.33.0(@typescript-eslint/parser@4.33.0(eslint@8.55.0)(typescript@5.7.2))(eslint@8.55.0)(typescript@5.7.2)
+ '@typescript-eslint/eslint-plugin': 4.33.0(@typescript-eslint/parser@4.33.0(eslint@8.55.0)(typescript@5.7.2))(eslint@7.32.0)(typescript@5.7.2)
'@typescript-eslint/parser': 4.33.0(eslint@7.32.0)(typescript@5.7.2)
'@wordpress/prettier-config': 1.4.0(wp-prettier@2.2.1-beta-1)
cosmiconfig: 7.1.0
eslint: 7.32.0
eslint-config-prettier: 7.2.0(eslint@7.32.0)
eslint-plugin-import: 2.29.0(@typescript-eslint/parser@4.33.0(eslint@8.55.0)(typescript@5.7.2))(eslint@7.32.0)
- eslint-plugin-jest: 24.7.0(@typescript-eslint/eslint-plugin@4.33.0(@typescript-eslint/parser@4.33.0(eslint@7.32.0)(typescript@5.7.2))(eslint@7.32.0)(typescript@5.7.2))(eslint@7.32.0)(typescript@5.7.2)
+ eslint-plugin-jest: 24.7.0(@typescript-eslint/eslint-plugin@4.33.0(@typescript-eslint/parser@4.33.0(eslint@8.55.0)(typescript@5.7.2))(eslint@7.32.0)(typescript@5.7.2))(eslint@7.32.0)(typescript@5.7.2)
eslint-plugin-jsdoc: 36.1.1(eslint@7.32.0)
eslint-plugin-jsx-a11y: 6.8.0(eslint@7.32.0)
eslint-plugin-prettier: 3.4.1(eslint-config-prettier@7.2.0(eslint@7.32.0))(eslint@7.32.0)(wp-prettier@2.2.1-beta-1)
@@ -37559,7 +37560,7 @@ snapshots:
expect-puppeteer: 4.4.0
filenamify: 4.3.0
jest: 26.6.3(ts-node@10.9.2(@swc/core@1.3.100)(@types/node@22.9.1)(typescript@5.7.2))
- jest-circus: 26.6.3
+ jest-circus: 26.6.3(ts-node@10.9.2(@swc/core@1.3.100)(@types/node@22.9.1)(typescript@5.7.2))
jest-dev-server: 5.0.3
jest-environment-node: 26.6.2
markdownlint: 0.23.1
@@ -42366,12 +42367,12 @@ snapshots:
- supports-color
- typescript
- eslint-plugin-jest@24.7.0(@typescript-eslint/eslint-plugin@4.33.0(@typescript-eslint/parser@4.33.0(eslint@7.32.0)(typescript@5.7.2))(eslint@7.32.0)(typescript@5.7.2))(eslint@7.32.0)(typescript@5.7.2):
+ eslint-plugin-jest@24.7.0(@typescript-eslint/eslint-plugin@4.33.0(@typescript-eslint/parser@4.33.0(eslint@8.55.0)(typescript@5.7.2))(eslint@7.32.0)(typescript@5.7.2))(eslint@7.32.0)(typescript@5.7.2):
dependencies:
'@typescript-eslint/experimental-utils': 4.33.0(eslint@7.32.0)(typescript@5.7.2)
eslint: 7.32.0
optionalDependencies:
- '@typescript-eslint/eslint-plugin': 4.33.0(@typescript-eslint/parser@4.33.0(eslint@8.55.0)(typescript@5.7.2))(eslint@8.55.0)(typescript@5.7.2)
+ '@typescript-eslint/eslint-plugin': 4.33.0(@typescript-eslint/parser@4.33.0(eslint@8.55.0)(typescript@5.7.2))(eslint@7.32.0)(typescript@5.7.2)
transitivePeerDependencies:
- supports-color
- typescript
@@ -45493,7 +45494,7 @@ snapshots:
jest-util: 29.7.0
p-limit: 3.1.0
- jest-circus@26.6.3:
+ jest-circus@26.6.3(ts-node@10.9.2(@swc/core@1.3.100)(@types/node@22.9.1)(typescript@5.7.2)):
dependencies:
'@babel/traverse': 7.25.9
'@jest/environment': 26.6.2
@@ -45517,7 +45518,11 @@ snapshots:
stack-utils: 2.0.6
throat: 5.0.0
transitivePeerDependencies:
+ - bufferutil
+ - canvas
- supports-color
+ - ts-node
+ - utf-8-validate
jest-circus@27.5.1:
dependencies:
@@ -45707,7 +45712,7 @@ snapshots:
jest-config@26.6.3(ts-node@10.9.2(@swc/core@1.3.100)(@types/node@22.9.1)(typescript@5.7.2)):
dependencies:
'@babel/core': 7.25.7
- '@jest/test-sequencer': 26.6.3
+ '@jest/test-sequencer': 26.6.3(ts-node@10.9.2(@swc/core@1.3.100)(@types/node@22.9.1)(typescript@5.7.2))
'@jest/types': 26.6.2
babel-jest: 26.6.3(@babel/core@7.25.7)
chalk: 4.1.2
@@ -54139,23 +54144,6 @@ snapshots:
'@jest/types': 29.6.3
babel-jest: 29.7.0(@babel/core@7.26.0)
- ts-jest@29.1.1(@babel/core@7.26.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@27.5.1(node-notifier@8.0.2)(ts-node@10.9.2(@swc/core@1.3.100)(@types/node@22.9.1)(typescript@5.7.2)))(typescript@5.7.2):
- dependencies:
- bs-logger: 0.2.6
- fast-json-stable-stringify: 2.1.0
- jest: 27.5.1(node-notifier@8.0.2)(ts-node@10.9.2(@swc/core@1.3.100)(@types/node@22.9.1)(typescript@5.7.2))
- jest-util: 29.7.0
- json5: 2.2.3
- lodash.memoize: 4.1.2
- make-error: 1.3.6
- semver: 7.6.3
- typescript: 5.7.2
- yargs-parser: 21.1.1
- optionalDependencies:
- '@babel/core': 7.26.0
- '@jest/types': 29.6.3
- babel-jest: 29.7.0(@babel/core@7.26.0)
-
ts-loader@9.5.1(typescript@5.7.2)(webpack@5.89.0):
dependencies:
chalk: 4.1.2