From 05ac7ecf9f5b652a229c47c8b45e3488ef558060 Mon Sep 17 00:00:00 2001 From: Sakana <15715093608@163.com> Date: Fri, 2 Oct 2026 17:55:28 +0800 Subject: [PATCH 1/2] docs: fix typos in CLI command examples --- AGENTS.md | 2 +- docs/errors/DTK0010.md | 8 ++++---- docs/kit/rpc.md | 2 +- examples/plugin-git-ui/README.md | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 33a290d3f..bf19949dc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -72,7 +72,7 @@ pnpm build # turbo run build pnpm test # Vitest pnpm typecheck # vue-tsc -b pnpm lint --fix # ESLint -pnpm -C packages/core run play # core playground +pnpm -C playgrounds/core run dev # core playground pnpm -C packages/rolldown run dev # rolldown UI dev pnpm -C playgrounds/core run dev:standalone # standalone client pnpm -C docs run docs # docs dev server diff --git a/docs/errors/DTK0010.md b/docs/errors/DTK0010.md index 7f3cc1987..aac8c7854 100644 --- a/docs/errors/DTK0010.md +++ b/docs/errors/DTK0010.md @@ -16,16 +16,16 @@ The warning is logged after the build completes successfully to inform you that ## Example -Running the static build via the CLI triggers this warning: +With `@vitejs/devtools` installed, run the static build from your project directory: ```sh -vite devtools build --outDir ./devtools-report +pnpm exec vite-devtools build --outDir ./devtools-report ``` Or programmatically: ```ts -import { build } from '@vitejs/devtools/node' +import { build } from '@vitejs/devtools/cli-commands' await build({ root: process.cwd(), @@ -39,7 +39,7 @@ await build({ No action is required. This is an informational warning acknowledging the experimental status of the static build feature. The generated output is usable but may lack some features present in the live DevTools UI. -If you depend on stable output, consider using the live DevTools server (`vite devtools start`) instead until the static build is finalized. +To use the live DevTools server, run `pnpm exec vite-devtools` from your project directory. ## Source diff --git a/docs/kit/rpc.md b/docs/kit/rpc.md index c24f74520..fbe85f770 100644 --- a/docs/kit/rpc.md +++ b/docs/kit/rpc.md @@ -115,7 +115,7 @@ const plugin: Plugin = { ### Dump feature for build mode -A static DevTools build (via `vite devtools build` or the [`build.withApp`](/guide/#building-with-the-app) plugin option) has no live server. The dump feature pre-computes RPC results at build time and bakes them into the static output. +A static DevTools build (via `pnpm exec vite-devtools build` or the [`build.withApp`](/guide/#building-with-the-app) plugin option) runs without a live server. The dump feature pre-computes RPC results at build time and saves them in the static output. #### How it works diff --git a/examples/plugin-git-ui/README.md b/examples/plugin-git-ui/README.md index 34f911d46..7147f7806 100644 --- a/examples/plugin-git-ui/README.md +++ b/examples/plugin-git-ui/README.md @@ -34,10 +34,10 @@ pnpm play:dev Then open the app URL, open Vite DevTools, and click the **Git** dock entry. -You can also test it from the core playground: +From the repository root, you can also run the core playground: ```bash -pnpm -C packages/core run play +pnpm -C playgrounds/core run dev ``` ## Components Used From b24478e610f03e1cfc85fbdb7d2fb7e8f68f3d3d Mon Sep 17 00:00:00 2001 From: Sakana <15715093608@163.com> Date: Fri, 2 Oct 2026 18:09:39 +0800 Subject: [PATCH 2/2] docs: keep CLI examples package-manager neutral --- docs/errors/DTK0010.md | 6 +++--- docs/kit/rpc.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/errors/DTK0010.md b/docs/errors/DTK0010.md index aac8c7854..b7ac20e24 100644 --- a/docs/errors/DTK0010.md +++ b/docs/errors/DTK0010.md @@ -16,10 +16,10 @@ The warning is logged after the build completes successfully to inform you that ## Example -With `@vitejs/devtools` installed, run the static build from your project directory: +Running the static build via the CLI triggers this warning: ```sh -pnpm exec vite-devtools build --outDir ./devtools-report +vite-devtools build --outDir ./devtools-report ``` Or programmatically: @@ -39,7 +39,7 @@ await build({ No action is required. This is an informational warning acknowledging the experimental status of the static build feature. The generated output is usable but may lack some features present in the live DevTools UI. -To use the live DevTools server, run `pnpm exec vite-devtools` from your project directory. +If you depend on stable output, consider using the live DevTools server (`vite-devtools`) instead until the static build is finalized. ## Source diff --git a/docs/kit/rpc.md b/docs/kit/rpc.md index fbe85f770..f23697881 100644 --- a/docs/kit/rpc.md +++ b/docs/kit/rpc.md @@ -115,7 +115,7 @@ const plugin: Plugin = { ### Dump feature for build mode -A static DevTools build (via `pnpm exec vite-devtools build` or the [`build.withApp`](/guide/#building-with-the-app) plugin option) runs without a live server. The dump feature pre-computes RPC results at build time and saves them in the static output. +A static DevTools build (via `vite-devtools build` or the [`build.withApp`](/guide/#building-with-the-app) plugin option) has no live server. The dump feature pre-computes RPC results at build time and bakes them into the static output. #### How it works