diff --git a/docs/src/en/guide/essentials/development.md b/docs/src/en/guide/essentials/development.md index 1aa4cbd14f6..e8628b96058 100644 --- a/docs/src/en/guide/essentials/development.md +++ b/docs/src/en/guide/essentials/development.md @@ -55,15 +55,15 @@ The execution command is: `pnpm run [script]` or `npm run [script]`. // Build a local Docker image "build:docker": "./build-local-docker-image.sh", // Build the web-antd application separately - "build:antd": "pnpm -F @vben/web-antd run build", + "build:antd": "pnpm run build --filter=@vben/web-antd", // Build the documentation separately - "build:docs": "pnpm -F @vben/docs run build", + "build:docs": "pnpm run build --filter=@vben/docs", // Build the web-ele application separately - "build:ele": "pnpm -F @vben/web-ele run build", + "build:ele": "pnpm run build --filter=@vben/web-ele", // Build the web-naive application separately - "build:naive": "pnpm -F @vben/web-naive run build", + "build:naive": "pnpm run build --filter=@vben/naive", // Build the playground application separately - "build:play": "pnpm -F @vben/playground run build", + "build:play": "pnpm run build --filter=@vben/playground", // Changeset version management "changeset": "pnpm exec changeset", // Check for various issues in the project diff --git a/docs/src/en/guide/introduction/thin.md b/docs/src/en/guide/introduction/thin.md index 4284339b016..a310ef39802 100644 --- a/docs/src/en/guide/introduction/thin.md +++ b/docs/src/en/guide/introduction/thin.md @@ -52,11 +52,11 @@ After slimming down, you may need to adjust commands according to your project. ```json { "scripts": { - "build:antd": "pnpm -F @vben/web-antd run build", - "build:docs": "pnpm -F @vben/docs run build", - "build:ele": "pnpm -F @vben/web-ele run build", - "build:naive": "pnpm -F @vben/web-naive run build", - "build:play": "pnpm -F @vben/playground run build", + "build:antd": "pnpm run build --filter=@vben/web-antd", + "build:docs": "pnpm run build --filter=@vben/docs", + "build:ele": "pnpm run build --filter=@vben/web-ele", + "build:naive": "pnpm run build --filter=@vben/web-naive", + "build:play": "pnpm run build --filter=@vben/playground", "dev:antd": "pnpm -F @vben/web-antd run dev", "dev:docs": "pnpm -F @vben/docs run dev", "dev:ele": "pnpm -F @vben/web-ele run dev", diff --git a/docs/src/guide/essentials/development.md b/docs/src/guide/essentials/development.md index e19ac45858b..ff731a2d741 100644 --- a/docs/src/guide/essentials/development.md +++ b/docs/src/guide/essentials/development.md @@ -55,15 +55,15 @@ npm 脚本是项目常见的配置,用于执行一些常见的任务,比如 // 构建本地 docker 镜像 "build:docker": "./build-local-docker-image.sh", // 单独构建 web-antd 应用 - "build:antd": "pnpm -F @vben/web-antd run build", + "build:antd": "pnpm run build --filter=@vben/web-antd", // 单独构建文档 - "build:docs": "pnpm -F @vben/docs run build", + "build:docs": "pnpm run build --filter=@vben/docs", // 单独构建 web-ele 应用 - "build:ele": "pnpm -F @vben/web-ele run build", + "build:ele": "pnpm run build --filter=@vben/web-ele", // 单独构建 web-naive 应用 - "build:naive": "pnpm -F @vben/web-naive run build", + "build:naive": "pnpm run build --filter=@vben/naive", // 单独构建 playground 应用 - "build:play": "pnpm -F @vben/playground run build", + "build:play": "pnpm run build --filter=@vben/playground", // changeset 版本管理 "changeset": "pnpm exec changeset", // 检查项目各种问题 diff --git a/docs/src/guide/introduction/thin.md b/docs/src/guide/introduction/thin.md index c78b586eadf..7df3c9f83f2 100644 --- a/docs/src/guide/introduction/thin.md +++ b/docs/src/guide/introduction/thin.md @@ -52,11 +52,11 @@ pnpm install ```json { "scripts": { - "build:antd": "pnpm -F @vben/web-antd run build", - "build:docs": "pnpm -F @vben/docs run build", - "build:ele": "pnpm -F @vben/web-ele run build", - "build:naive": "pnpm -F @vben/web-naive run build", - "build:play": "pnpm -F @vben/playground run build", + "build:antd": "pnpm run build --filter=@vben/web-antd", + "build:docs": "pnpm run build --filter=@vben/docs", + "build:ele": "pnpm run build --filter=@vben/web-ele", + "build:naive": "pnpm run build --filter=@vben/web-naive", + "build:play": "pnpm run build --filter=@vben/playground", "dev:antd": "pnpm -F @vben/web-antd run dev", "dev:docs": "pnpm -F @vben/docs run dev", "dev:ele": "pnpm -F @vben/web-ele run dev", diff --git a/package.json b/package.json index 7b43b8ddc87..b6b9f3d8961 100644 --- a/package.json +++ b/package.json @@ -29,11 +29,11 @@ "build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 turbo build", "build:analyze": "turbo build:analyze", "build:docker": "./build-local-docker-image.sh", - "build:antd": "pnpm -F @vben/web-antd run build", - "build:docs": "pnpm -F @vben/docs run build", - "build:ele": "pnpm -F @vben/web-ele run build", - "build:naive": "pnpm -F @vben/web-naive run build", - "build:play": "pnpm -F @vben/playground run build", + "build:antd": "pnpm run build --filter=@vben/web-antd", + "build:docs": "pnpm run build --filter=@vben/docs", + "build:ele": "pnpm run build --filter=@vben/web-ele", + "build:naive": "pnpm run build --filter=@vben/web-naive", + "build:play": "pnpm run build --filter=@vben/playground", "changeset": "pnpm exec changeset", "check": "pnpm run check:circular && pnpm run check:dep && pnpm run check:type && pnpm check:cspell", "check:circular": "vsh check-circular",