Skip to content

Commit 794b55c

Browse files
committed
refactor(scripts): use vp run -t for dependency-aware example build
Replace the manual `pnpm --filter ... && pnpm --filter ...` chain with viteplus's transitive task runner. `vp run -t @pkg#task` runs the task in the target package and all its workspace dependencies in topological order, derived from the regular `package.json` workspace deps, so the chain stays correct even if more workspace packages are added later. Also opens the door to free task-level caching.
1 parent d237cdc commit 794b55c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "module",
55
"scripts": {
66
"build": "pnpm --filter react-json-logic run build",
7-
"build:example": "pnpm --filter react-json-logic run build && pnpm --filter @react-json-logic/example run build",
7+
"build:example": "vp run -t @react-json-logic/example#build",
88
"dev:example": "pnpm --filter @react-json-logic/example run dev",
99
"preview:example": "pnpm --filter @react-json-logic/example run preview",
1010
"test": "pnpm -r run test",

0 commit comments

Comments
 (0)