From c45b3337753bbfe5500cbb50d38ce892b0f34a5c Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Wed, 11 Dec 2024 17:28:44 +0100 Subject: [PATCH] Clean script: Use braces instead of @-pattern for glob (#67833) Fix another glob-related problem with patterns on Windows OS. --- Co-authored-by: sirreal Co-authored-by: t-hamano --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ce20056deb5ce9..4d6dc94d58a661 100644 --- a/package.json +++ b/package.json @@ -183,7 +183,7 @@ "postbuild:packages": " npm run --if-present --workspaces build:wp", "build:plugin-zip": "bash ./bin/build-plugin-zip.sh", "clean:package-types": "tsc --build --clean && rimraf --glob './packages/*/build-types'", - "clean:packages": "rimraf --glob './packages/*/@(build|build-module|build-wp|build-style)'", + "clean:packages": "rimraf --glob './packages/*/{build,build-module,build-wp,build-style}'", "component-usage-stats": "node ./node_modules/react-scanner/bin/react-scanner -c ./react-scanner.config.js", "dev": "cross-env NODE_ENV=development npm run build:packages && concurrently \"wp-scripts start\" \"npm run dev:packages\"", "dev:packages": "cross-env NODE_ENV=development concurrently \"node ./bin/packages/watch.js\" \"tsc --build --watch\"", @@ -195,7 +195,7 @@ "docs:gen": "node ./docs/tool/index.js", "docs:theme-ref": "node ./bin/api-docs/gen-theme-reference.mjs", "env": "wp-env", - "fixtures:clean": "rimraf --glob 'test/integration/fixtures/blocks/*.+(json|serialized.html)'", + "fixtures:clean": "rimraf --glob 'test/integration/fixtures/blocks/*.{json,serialized.html}'", "fixtures:generate": "cross-env GENERATE_MISSING_FIXTURES=y npm run test:unit test/integration/full-content/ && npm run format test/integration/fixtures/blocks/*.json", "fixtures:regenerate": "npm-run-all fixtures:clean fixtures:generate", "format": "wp-scripts format",