Enhance Build Watching (#42712)

Similarly to `build:project`, a new `watch:build:project`
script will watch individual projects for changes. The
`watch:build` script has been updated so that it does
a deep watch in the same vein as `build`. We have also
hooked up tool-level watching for faster performance.
This commit is contained in:
Christopher Allford 2023-12-12 12:43:48 -08:00 committed by GitHub
parent 0c8b1b2624
commit 4c4e89bc98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 382 additions and 52 deletions

View File

@ -26,7 +26,7 @@
],
"sideEffects": false,
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:typescript": "wireit",
"changelog": "composer install && composer exec -- changelogger",
@ -35,7 +35,9 @@
"lint:fix:lang:js": "eslint src --fix",
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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:typescript": "wireit"
},
"lint-staged": {
"*.(t|j)s?(x)": [
@ -76,6 +78,7 @@
"wireit": {
"build:project:typescript": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -88,6 +91,10 @@
"dependencyOutputs"
]
},
"watch:build:project:typescript": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"dependencyOutputs": {
"allowUsuallyExcludedPaths": true,
"files": [

View File

@ -34,7 +34,7 @@
"access": "public"
},
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' 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:project:cjs": "wireit",
@ -45,7 +45,11 @@
"lint:fix:lang:js": "eslint src --fix",
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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",
"watch:build:project:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"dependencies": {
"@woocommerce/components": "workspace:*",
@ -82,6 +86,7 @@
"wireit": {
"build:project:bundle": {
"command": "webpack",
"clean": "if-file-deleted",
"files": [
"webpack.config.js",
"src/**/*.scss"
@ -93,8 +98,13 @@
"dependencyOutputs"
]
},
"watch:build:project:bundle": {
"command": "webpack --watch",
"service": true
},
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -107,8 +117,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -122,6 +137,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"dependencyOutputs": {
"allowUsuallyExcludedPaths": true,
"files": [

View File

@ -32,7 +32,7 @@
],
"private": true,
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' 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:project:cjs": "wireit",
@ -44,7 +44,11 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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",
"watch:build:project:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"dependencies": {
"@wordpress/api-fetch": "wp-6.0",
@ -104,6 +108,7 @@
"wireit": {
"build:project:bundle": {
"command": "webpack",
"clean": "if-file-deleted",
"files": [
"webpack.config.js",
"src/**/*.scss"
@ -115,8 +120,13 @@
"dependencyOutputs"
]
},
"watch:build:project:bundle": {
"command": "webpack --watch",
"service": true
},
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -129,8 +139,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -144,6 +159,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -30,7 +30,7 @@
],
"sideEffects": false,
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:typescript": "wireit",
"changelog": "composer install && composer exec -- changelogger",
@ -40,7 +40,8 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --filter=\"$npm_package_name...\" --parallel watch:build:project",
"watch:build:project": "pnpm build:project --watch"
},
"lint-staged": {
"*.(t|j)s?(x)": [
@ -72,6 +73,7 @@
"wireit": {
"build:project:typescript": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",

View File

@ -31,7 +31,7 @@
"src/**/*.scss"
],
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' 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:project:cjs": "wireit",
@ -43,7 +43,11 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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",
"watch:build:project:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"dependencies": {
"@woocommerce/expression-evaluation": "workspace:*",
@ -94,6 +98,7 @@
"wireit": {
"build:project:bundle": {
"command": "webpack",
"clean": "if-file-deleted",
"files": [
"webpack.config.js",
"src/**/*.scss"
@ -105,8 +110,13 @@
"dependencyOutputs"
]
},
"watch:build:project:bundle": {
"command": "webpack --watch",
"service": true
},
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -119,8 +129,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -134,6 +149,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -36,7 +36,7 @@
],
"types": "build-types",
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' 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:project:cjs": "wireit",
@ -48,7 +48,11 @@
"lint:lang:js": "eslint --ext=js,ts,tsx src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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",
"watch:build:project:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"lint-staged": {
"*.(t|j)s?(x)": [
@ -178,6 +182,7 @@
"wireit": {
"build:project:bundle": {
"command": "webpack",
"clean": "if-file-deleted",
"files": [
"webpack.config.js",
"src/**/*.scss"
@ -189,8 +194,13 @@
"dependencyOutputs"
]
},
"watch:build:project:bundle": {
"command": "webpack --watch",
"service": true
},
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -203,8 +213,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -218,6 +233,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -31,7 +31,7 @@
"build-types"
],
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:cjs": "wireit",
"build:project:esm": "wireit",
@ -42,7 +42,10 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"dependencies": {
"@types/node": "^16.18.68",
@ -75,6 +78,7 @@
"wireit": {
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -87,8 +91,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -102,6 +111,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -31,7 +31,7 @@
"build-types"
],
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:cjs": "wireit",
"build:project:esm": "wireit",
@ -42,7 +42,10 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"lint-staged": {
"*.(t|j)s?(x)": [
@ -78,6 +81,7 @@
"wireit": {
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -90,8 +94,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -105,6 +114,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -31,7 +31,7 @@
"build-types"
],
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' 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:project:cjs": "wireit",
@ -43,7 +43,11 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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",
"watch:build:project:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"lint-staged": {
"*.(t|j)s?(x)": [
@ -103,6 +107,7 @@
"wireit": {
"build:project:bundle": {
"command": "webpack",
"clean": "if-file-deleted",
"files": [
"webpack.config.js",
"src/**/*.scss"
@ -114,8 +119,13 @@
"dependencyOutputs"
]
},
"watch:build:project:bundle": {
"command": "webpack --watch",
"service": true
},
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -128,8 +138,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -143,6 +158,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -30,7 +30,7 @@
"build-types"
],
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:cjs": "wireit",
"build:project:esm": "wireit",
@ -41,7 +41,10 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"lint-staged": {
"*.(t|j)s?(x)": [
@ -107,6 +110,7 @@
"wireit": {
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -119,8 +123,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -134,6 +143,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -63,7 +63,7 @@
"access": "public"
},
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:cjs": "wireit",
"build:project:esm": "wireit",
@ -74,7 +74,10 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"lint-staged": {
"*.(t|j)s?(x)": [
@ -85,6 +88,7 @@
"wireit": {
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -97,8 +101,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -112,6 +121,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -90,7 +90,7 @@
"react-dom": "^17.0.2"
},
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' 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:project:cjs": "wireit",
@ -102,7 +102,11 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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",
"watch:build:project:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"lint-staged": {
"*.(t|j)s?(x)": [
@ -113,6 +117,7 @@
"wireit": {
"build:project:bundle": {
"command": "webpack",
"clean": "if-file-deleted",
"files": [
"webpack.config.js",
"src/**/*.scss"
@ -124,8 +129,13 @@
"dependencyOutputs"
]
},
"watch:build:project:bundle": {
"command": "webpack --watch",
"service": true
},
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -138,8 +148,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -153,6 +168,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -31,7 +31,7 @@
"build-types"
],
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:cjs": "wireit",
"build:project:esm": "wireit",
@ -42,7 +42,10 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"lint-staged": {
"*.(t|j)s?(x)": [
@ -82,6 +85,7 @@
"wireit": {
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -94,8 +98,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -109,6 +118,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -39,7 +39,7 @@
"access": "public"
},
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:cjs": "wireit",
"build:project:esm": "wireit",
@ -49,7 +49,10 @@
"lint:fix:lang:js": "eslint src --fix",
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"devDependencies": {
"@babel/core": "^7.23.5",
@ -74,6 +77,7 @@
"wireit": {
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -86,8 +90,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -101,6 +110,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"dependencyOutputs": {
"allowUsuallyExcludedPaths": true,
"files": [

View File

@ -28,7 +28,7 @@
"access": "public"
},
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:cjs": "wireit",
"build:project:esm": "wireit",
@ -39,7 +39,10 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"dependencies": {
"@wordpress/create-block": "wp-6.0",
@ -79,6 +82,7 @@
"wireit": {
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -91,8 +95,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -106,6 +115,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -26,7 +26,7 @@
"jest-preset.js"
],
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:cjs": "wireit",
"build:project:esm": "wireit",
@ -36,7 +36,10 @@
"lint:fix:lang:js": "eslint src --fix",
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"dependencies": {
"@testing-library/jest-dom": "5.16.2",
@ -67,6 +70,7 @@
"wireit": {
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -79,8 +83,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -93,6 +102,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"dependencyOutputs": {
"allowUsuallyExcludedPaths": true,
"files": [

View File

@ -31,7 +31,7 @@
"build-types"
],
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:cjs": "wireit",
"build:project:esm": "wireit",
@ -42,7 +42,10 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"lint-staged": {
"*.(t|j)s?(x)": [
@ -88,6 +91,7 @@
"wireit": {
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -100,8 +104,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -115,6 +124,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -32,7 +32,7 @@
"build-types"
],
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:cjs": "wireit",
"build:project:esm": "wireit",
@ -42,7 +42,10 @@
"lint:fix:lang:js": "eslint src --fix",
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"lint-staged": {
"*.(t|j)s?(x)": [
@ -83,6 +86,7 @@
"wireit": {
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -95,8 +99,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -110,6 +119,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"dependencyOutputs": {
"allowUsuallyExcludedPaths": true,
"files": [

View File

@ -36,7 +36,7 @@
"access": "public"
},
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:cjs": "wireit",
"build:project:esm": "wireit",
@ -47,7 +47,10 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"devDependencies": {
"@babel/core": "^7.23.5",
@ -74,6 +77,7 @@
"wireit": {
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -86,8 +90,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -101,6 +110,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -32,7 +32,7 @@
"build-types"
],
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' 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:project:cjs": "wireit",
@ -44,7 +44,11 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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",
"watch:build:project:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"lint-staged": {
"*.(t|j)s?(x)": [
@ -99,6 +103,7 @@
"wireit": {
"build:project:bundle": {
"command": "webpack",
"clean": "if-file-deleted",
"files": [
"webpack.config.js",
"src/**/*.scss"
@ -110,8 +115,13 @@
"dependencyOutputs"
]
},
"watch:build:project:bundle": {
"command": "webpack --watch",
"service": true
},
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -124,8 +134,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -139,6 +154,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -128,7 +128,7 @@
"wireit": "0.14.1"
},
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' 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:project:cjs": "wireit",
@ -140,7 +140,11 @@
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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",
"watch:build:project:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"peerDependencies": {
"@types/react": "^17.0.71",
@ -151,6 +155,7 @@
"wireit": {
"build:project:bundle": {
"command": "webpack",
"clean": "if-file-deleted",
"files": [
"webpack.config.js",
"src/**/*.scss"
@ -162,8 +167,13 @@
"dependencyOutputs"
]
},
"watch:build:project:bundle": {
"command": "webpack --watch",
"service": true
},
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -176,8 +186,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -191,6 +206,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"test:js": {
"command": "jest --config ./jest.config.json --passWithNoTests",
"dependencies": [

View File

@ -37,7 +37,7 @@
"access": "public"
},
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:cjs": "wireit",
"build:project:esm": "wireit",
@ -47,7 +47,10 @@
"lint:fix:lang:js": "eslint src --fix",
"lint:lang:js": "eslint src",
"prepack": "pnpm build",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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:cjs": "wireit",
"watch:build:project:esm": "wireit"
},
"devDependencies": {
"@babel/core": "^7.23.5",
@ -70,6 +73,7 @@
"wireit": {
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"clean": "if-file-deleted",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -82,8 +86,13 @@
"dependencyOutputs"
]
},
"watch:build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json --watch",
"service": true
},
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"clean": "if-file-deleted",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
@ -97,6 +106,10 @@
"dependencyOutputs"
]
},
"watch:build:project:esm": {
"command": "tsc --project tsconfig.json --watch",
"service": true
},
"dependencyOutputs": {
"allowUsuallyExcludedPaths": true,
"files": [

View File

@ -13,7 +13,7 @@
"build"
],
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' 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:project:feature-config": "php ../woocommerce/bin/generate-feature-config.php",
@ -25,7 +25,9 @@
"lint:lang:css": "stylelint '**/*.scss'",
"lint:lang:js": "eslint ./client --ext=js,ts,tsx",
"test:js": "wireit",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' 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"
},
"lint-staged": {
"*.scss": [
@ -237,6 +239,7 @@
"wireit": {
"build:project:bundle": {
"command": "webpack",
"clean": "if-file-deleted",
"env": {
"NODE_ENV": "production",
"WC_ADMIN_PHASE": "core"
@ -254,6 +257,10 @@
"dependencyOutputs"
]
},
"watch:build:project:bundle": {
"command": "webpack --watch",
"service": true
},
"test:js": {
"command": "jest --config client/jest.config.js",
"dependencies": [

View File

@ -44,7 +44,7 @@
"scripts": {
"analyze-bundles": "cross-env WP_BUNDLE_ANALYZER=1 pnpm run build",
"changelog": "composer install && composer exec -- changelogger",
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' 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": "rimraf build/* && cross-env ASSET_CHECK=true BABEL_ENV=default NODE_ENV=production webpack",
@ -110,7 +110,8 @@
"ts:log-errors": "npm --silent run ts:check | npx -y @bartekbp/typescript-checkstyle > checkstyle.xml",
"wp-env": "wp-env",
"wp-env:config": "./bin/wp-env-pre-config.sh",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --filter=\"$npm_package_name...\" --parallel watch:build:project",
"watch:build:project": "webpack --watch"
},
"devDependencies": {
"@actions/core": "1.10.0",
@ -359,6 +360,7 @@
"wireit": {
"build:project:bundle": {
"command": "webpack",
"clean": "if-file-deleted",
"env": {
"NODE_ENV": {
"external": true

View File

@ -9,12 +9,13 @@
"build"
],
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "pnpm --if-present /^build:project:.*$/",
"build:project:assets": "wireit",
"lint": "pnpm --if-present '/^lint:lang:.*$/'",
"lint:fix": "pnpm --if-present '/^lint:fix:lang:.*$/'",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --filter=\"$npm_package_name...\" --parallel watch:build:project",
"watch:build:project": "pnpm build:project --watch"
},
"devDependencies": {
"@types/node": "^16.18.68",
@ -48,6 +49,7 @@
"wireit": {
"build:project:assets": {
"command": "grunt assets",
"clean": "if-file-deleted",
"files": [
"Gruntfile.js",
"js/**/*.js",

View File

@ -10,7 +10,7 @@
},
"license": "GPL-3.0+",
"scripts": {
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
"build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" build:project",
"build:project": "wireit",
"build:zip": "./bin/build-zip.sh",
"changelog": "composer install && composer exec -- changelogger",
@ -53,7 +53,8 @@
"test:unit": "pnpm test:php",
"test:unit:env": "pnpm test:php:env",
"update-wp-env": "php ./tests/e2e-pw/bin/update-wp-env.php",
"watch:build": "pnpm build:project --watch"
"watch:build": "WIREIT_LOGGER='quiet-ci' pnpm --if-present --workspace-concurrency=Infinity --filter=\"$npm_package_name...\" --parallel watch:build:project",
"watch:build:project": "pnpm build:project --watch"
},
"lint-staged": {
"*.php": [
@ -181,6 +182,7 @@
"wireit": {
"build:project": {
"command": "rm -rf assets/client/admin assets/js assets/css && cp -r ../woocommerce-admin/build assets/client/admin && cp -r client/legacy/build/js assets/js && cp -r client/legacy/build/css assets/css && cp -r ../woocommerce-blocks/build assets/client/blocks && cp -r ../woocommerce-blocks/blocks.ini blocks.ini",
"clean": "if-file-deleted",
"files": [],
"output": [
"assets/client/admin",