Skip to content

Commit 61653e4

Browse files
elrrrrrrrclaude
andcommitted
fix: add --if-present to all --workspaces scripts
The latest utoo release (with workspace glob support) now errors on packages that don't define the requested script, instead of silently skipping them. Add `--if-present` to `clean-dist` and `typecheck` scripts to restore the skip-missing behavior. `pretest` and `preci` already had it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 93fefae commit 61653e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
],
1414
"type": "module",
1515
"scripts": {
16-
"clean-dist": "ut run clean --workspaces",
16+
"clean-dist": "ut run clean --workspaces --if-present",
1717
"build": "tsdown",
1818
"prelint": "ut run clean-dist",
1919
"lint": "oxlint --type-aware --type-check --quiet",
2020
"fmt": "oxfmt",
21-
"typecheck": "ut run clean-dist && ut run typecheck --workspaces",
21+
"typecheck": "ut run clean-dist && ut run typecheck --workspaces --if-present",
2222
"fmtcheck": "oxfmt --check .",
2323
"pretest": "ut run clean-dist && ut run pretest --workspaces --if-present",
2424
"test": "vitest run --bail 1 --retry 2 --testTimeout 20000 --hookTimeout 20000",

0 commit comments

Comments
 (0)