From 6ca8990270aa0d8cb09f755bb8b7c164879b705e Mon Sep 17 00:00:00 2001 From: Yunfei He Date: Fri, 29 May 2026 00:19:51 +0800 Subject: [PATCH] refactor(scripts): restructure workspace scripts into check:* / test:* families MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the opaque `vp check` bundling and the ad-hoc `ready` chain (which shelled out via `cd ... && pnpm ...`) with explicit, composable named scripts. Root delegates; category splits live in the package that owns them: root: check:fmt / check:lint / check:fixtures / test / build / ready runtime-tests: test = test:integration + test:pty; check:fixtures `ready` now composes the named scripts in dependency order (fmt, lint, build, fixtures, test) — build runs before check:fixtures and test:pty, which need the built dist. Drop the broken root `dev` (referenced a non-existent website package) and the redundant per-package `check` scripts (fmt/lint already run workspace-wide from root). Renames: pty-test -> test:pty, typecheck:fixtures -> check:fixtures. --- package.json | 7 ++++--- packages/runtime-tests/package.json | 8 ++++---- packages/runtime/package.json | 1 - packages/testing/package.json | 1 - 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index e5f5be0..a6d9209 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,12 @@ "description": "Vue 3 terminal UI framework. Build AI agent interfaces and TUI apps with Yoga flexbox.", "type": "module", "scripts": { - "check": "vp check", "check:fmt": "vp fmt --check", "check:lint": "vp lint", - "ready": "vp check && vp run -r test && vp run -r build && cd packages/runtime-tests && pnpm typecheck:fixtures && pnpm pty-test", - "dev": "vp run website#dev", + "check:fixtures": "vp run -r check:fixtures", + "test": "vp run -r test", + "build": "vp run -r build", + "ready": "vp run check:fmt && vp run check:lint && vp run build && vp run check:fixtures && vp run test", "prepare": "vp config" }, "devDependencies": { diff --git a/packages/runtime-tests/package.json b/packages/runtime-tests/package.json index a883435..2c12a60 100644 --- a/packages/runtime-tests/package.json +++ b/packages/runtime-tests/package.json @@ -4,10 +4,10 @@ "private": true, "type": "module", "scripts": { - "test": "vp test", - "pty-test": "vp test run --config vitest.pty.config.ts --passWithNoTests", - "typecheck:fixtures": "tsc -p integration/pty/fixtures/tsconfig.json --noEmit", - "check": "vp check" + "test": "vp run test:integration && vp run test:pty", + "test:integration": "vp test", + "test:pty": "vp test run --config vitest.pty.config.ts --passWithNoTests", + "check:fixtures": "tsc -p integration/pty/fixtures/tsconfig.json --noEmit" }, "devDependencies": { "@types/node": "^25.9.1", diff --git a/packages/runtime/package.json b/packages/runtime/package.json index 60e92fb..cfc0eca 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -19,7 +19,6 @@ "build": "vp pack", "dev": "vp pack --watch", "test": "vp test", - "check": "vp check", "prepublishOnly": "vp run build" }, "dependencies": { diff --git a/packages/testing/package.json b/packages/testing/package.json index e2c1780..8af4465 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -18,7 +18,6 @@ "build": "vp pack", "dev": "vp pack --watch", "test": "vp test", - "check": "vp check", "prepublishOnly": "vp run build" }, "dependencies": {