Skip to content

Commit 680f916

Browse files
fix: remove broken build:watch script from 20 packages (#1501)
build:watch ran `pnpm run build --watch`, but every affected package's build script uses gasket-cjs, which has no --watch support and exits with `error: unknown option '--watch'` on every invocation. Same root cause fixed for the internal fork's equivalent packages in gdcorp-uxp/gasket#2298. Tracked in PFX-1184. Co-authored-by: ssmith2-godaddy <> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
1 parent c607816 commit 680f916

21 files changed

Lines changed: 24 additions & 20 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
"@gasket/core": patch
3+
"@gasket/intl": patch
4+
"@gasket/nextjs": patch
5+
"@gasket/plugin-command": patch
6+
"@gasket/plugin-data": patch
7+
"@gasket/plugin-docusaurus": patch
8+
"@gasket/plugin-dynamic-plugins": patch
9+
"@gasket/plugin-elastic-apm": patch
10+
"@gasket/plugin-express": patch
11+
"@gasket/plugin-https-proxy": patch
12+
"@gasket/plugin-logger": patch
13+
"@gasket/plugin-metadata": patch
14+
"@gasket/plugin-morgan": patch
15+
"@gasket/plugin-nextjs": patch
16+
"@gasket/plugin-vitest": patch
17+
"@gasket/preset-api": patch
18+
"@gasket/preset-nextjs": patch
19+
"@gasket/react-intl": patch
20+
"@gasket/request": patch
21+
"@gasket/utils": patch
22+
---
23+
24+
Remove the `build:watch` script from these 20 packages. Each one's `build` script runs `gasket-cjs`, and `build:watch` was `pnpm run build --watch` — but `gasket-cjs` (a Commander CLI) has no `--watch` support and exits with `error: unknown option '--watch'` on every invocation. The script has never worked since these packages moved to `gasket-cjs`; removing it rather than reintroducing watch mode, since no consumer of `gasket-cjs` currently supports it (tracked in PFX-1184, same root cause fixed for the internal fork's equivalent packages in gdcorp-uxp/gasket#2298).

packages/gasket-core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
},
2222
"scripts": {
2323
"build": "gasket-cjs ./lib",
24-
"build:watch": "pnpm run build --watch",
2524
"lint": "eslint .",
2625
"lint:fix": "pnpm run lint --fix",
2726
"posttest": "pnpm run lint && pnpm run typecheck",

packages/gasket-intl/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
},
2121
"scripts": {
2222
"build": "gasket-cjs ./lib",
23-
"build:watch": "pnpm run build --watch",
2423
"lint": "eslint .",
2524
"lint:fix": "pnpm run lint --fix",
2625
"posttest": "pnpm run lint && pnpm run typecheck",

packages/gasket-nextjs/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
},
4545
"scripts": {
4646
"build": "gasket-cjs ./lib",
47-
"build:watch": "pnpm run build --watch",
4847
"lint": "eslint .",
4948
"lint:fix": "pnpm run lint --fix",
5049
"posttest": "pnpm run lint && pnpm run typecheck",

packages/gasket-plugin-command/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
},
2121
"scripts": {
2222
"build": "gasket-cjs ./lib",
23-
"build:watch": "pnpm run build --watch",
2423
"lint": "eslint .",
2524
"lint:fix": "pnpm run lint --fix",
2625
"posttest": "pnpm run lint && pnpm run typecheck",

packages/gasket-plugin-data/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
},
2222
"scripts": {
2323
"build": "gasket-cjs ./lib",
24-
"build:watch": "pnpm run build --watch",
2524
"lint": "eslint .",
2625
"lint:fix": "pnpm run lint --fix",
2726
"posttest": "pnpm run lint && pnpm run typecheck",

packages/gasket-plugin-docusaurus/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
},
2222
"scripts": {
2323
"build": "gasket-cjs ./lib",
24-
"build:watch": "pnpm run build --watch",
2524
"lint": "eslint .",
2625
"lint:fix": "pnpm run lint --fix",
2726
"posttest": "pnpm run lint && pnpm run typecheck",

packages/gasket-plugin-dynamic-plugins/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
},
2121
"scripts": {
2222
"build": "gasket-cjs ./lib",
23-
"build:watch": "pnpm run build --watch",
2423
"lint": "eslint .",
2524
"lint:fix": "pnpm run lint --fix",
2625
"posttest": "pnpm run lint && pnpm run typecheck",

packages/gasket-plugin-elastic-apm/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
},
2121
"scripts": {
2222
"build": "gasket-cjs ./lib",
23-
"build:watch": "pnpm run build --watch",
2423
"lint": "eslint .",
2524
"lint:fix": "pnpm run lint --fix",
2625
"posttest": "pnpm run lint && pnpm run typecheck",

packages/gasket-plugin-express/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
},
2424
"scripts": {
2525
"build": "gasket-cjs ./lib",
26-
"build:watch": "pnpm run build --watch",
2726
"lint": "eslint .",
2827
"lint:fix": "pnpm run lint --fix",
2928
"posttest": "pnpm run lint && pnpm run typecheck",

0 commit comments

Comments
 (0)