diff --git a/README.md b/README.md index a51f83a6f..2884b5db5 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ npm i vant npm i vant@latest-v2 ``` -Using `yarn` or `pnpm`: +Using `yarn`, `pnpm`, or `bun`: ```bash # with yarn @@ -61,6 +61,9 @@ yarn add vant # with pnpm pnpm add vant + +# with Bun +bun add vant ``` ## Quickstart diff --git a/README.zh-CN.md b/README.zh-CN.md index aaddd19f7..4d41190c5 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -57,7 +57,7 @@ npm i vant npm i vant@latest-v2 ``` -当然,你也可以通过 `yarn` 或 `pnpm` 进行安装: +当然,你也可以通过 `yarn` 或 `pnpm` 或 `bun` 进行安装: ```bash # 通过 yarn 安装 @@ -65,6 +65,9 @@ yarn add vant # 通过 pnpm 安装 pnpm add vant + +# 通过 bun 安装 +bun add vant ``` ## 快速上手 diff --git a/packages/create-vant-cli-app/generators/vue2/docs/quickstart.md b/packages/create-vant-cli-app/generators/vue2/docs/quickstart.md index f528a0e25..9507ab23a 100644 --- a/packages/create-vant-cli-app/generators/vue2/docs/quickstart.md +++ b/packages/create-vant-cli-app/generators/vue2/docs/quickstart.md @@ -11,4 +11,7 @@ yarn add <%= name %> # 通过 pnpm pnpm add <%= name %> + +# 通过 bun +bun add <%= name %> ``` diff --git a/packages/create-vant-cli-app/generators/vue3/docs/quickstart.md b/packages/create-vant-cli-app/generators/vue3/docs/quickstart.md index f528a0e25..9507ab23a 100644 --- a/packages/create-vant-cli-app/generators/vue3/docs/quickstart.md +++ b/packages/create-vant-cli-app/generators/vue3/docs/quickstart.md @@ -11,4 +11,7 @@ yarn add <%= name %> # 通过 pnpm pnpm add <%= name %> + +# 通过 bun +bun add <%= name %> ``` diff --git a/packages/vant-area-data/README.md b/packages/vant-area-data/README.md index 2077240fb..47687c025 100644 --- a/packages/vant-area-data/README.md +++ b/packages/vant-area-data/README.md @@ -13,6 +13,9 @@ yarn add @vant/area-data # 通过 pnpm pnpm add @vant/area-data + +# 通过 Bun +bun add @vant/area-data ``` ## 使用 diff --git a/packages/vant-cli/README.md b/packages/vant-cli/README.md index 569eea14c..c84076764 100644 --- a/packages/vant-cli/README.md +++ b/packages/vant-cli/README.md @@ -32,6 +32,9 @@ yarn add @vant/cli -D # via pnpm pnpm add @vant/cli -D + +# via Bun +bun add @vant/cli -D ``` Please add the followed config to `package.json` file. diff --git a/packages/vant-cli/README.zh-CN.md b/packages/vant-cli/README.zh-CN.md index 81c7d752d..d8990226c 100644 --- a/packages/vant-cli/README.zh-CN.md +++ b/packages/vant-cli/README.zh-CN.md @@ -29,6 +29,9 @@ yarn add @vant/cli -D # 通过 pnpm pnpm add @vant/cli -D + +# 通过 Bun +bun add @vant/cli -D ``` 安装完成后,请将以下配置添加到 package.json 文件中 diff --git a/packages/vant-cli/docs/config.md b/packages/vant-cli/docs/config.md index d47ee521d..35b2fbcf9 100644 --- a/packages/vant-cli/docs/config.md +++ b/packages/vant-cli/docs/config.md @@ -218,7 +218,7 @@ If you need to configure some vite plugins, please create a `vite.config.ts` fil ### build.packageManager -- Type: `'npm' | 'yarn' | 'pnpm'` +- Type: `'npm' | 'yarn' | 'pnpm' | 'bun'` - Default: `yarn` `npm` package manager. diff --git a/packages/vant-cli/docs/config.zh-CN.md b/packages/vant-cli/docs/config.zh-CN.md index 73c6000bc..88bd40241 100644 --- a/packages/vant-cli/docs/config.zh-CN.md +++ b/packages/vant-cli/docs/config.zh-CN.md @@ -220,7 +220,7 @@ module.exports = { ### build.packageManager -- Type: `'npm' | 'yarn' | 'pnpm'` +- Type: `'npm' | 'yarn' | 'pnpm' | 'bun'` - Default: `yarn` 指定使用的包管理器。 diff --git a/packages/vant-compat/README.md b/packages/vant-compat/README.md index 36f380298..d17fc2944 100644 --- a/packages/vant-compat/README.md +++ b/packages/vant-compat/README.md @@ -13,6 +13,9 @@ yarn add @vant/compat # with pnpm pnpm add @vant/compat + +# with Bun +bun add @vant/compat ``` ## Usage diff --git a/packages/vant-eslint-config/README.md b/packages/vant-eslint-config/README.md index 8d1264ba7..f9dc194dc 100644 --- a/packages/vant-eslint-config/README.md +++ b/packages/vant-eslint-config/README.md @@ -11,6 +11,9 @@ yarn add @vant/eslint-config -D # with pnpm pnpm add @vant/eslint-config -D + +# with Bun +bun add @vant/eslint-config -D ``` ## Usage diff --git a/packages/vant-icons/README.md b/packages/vant-icons/README.md index 1fba6f1e7..de4cf53ef 100644 --- a/packages/vant-icons/README.md +++ b/packages/vant-icons/README.md @@ -11,6 +11,9 @@ yarn add @vant/icons # with pnpm pnpm add @vant/icons + +# with Bun +bun add @vant/icons ``` ## Document diff --git a/packages/vant-popperjs/README.md b/packages/vant-popperjs/README.md index 025084f51..597750875 100644 --- a/packages/vant-popperjs/README.md +++ b/packages/vant-popperjs/README.md @@ -13,6 +13,9 @@ yarn add @vant/popperjs # with pnpm pnpm add @vant/popperjs + +# with Bun +bun add @vant/popperjs ``` ## Usage diff --git a/packages/vant-touch-emulator/README.md b/packages/vant-touch-emulator/README.md index 07286525e..eeeefada9 100644 --- a/packages/vant-touch-emulator/README.md +++ b/packages/vant-touch-emulator/README.md @@ -13,6 +13,9 @@ yarn add @vant/touch-emulator # with pnpm pnpm add @vant/touch-emulator + +# with Bun +bun add @vant/touch-emulator ``` ## 使用指南 diff --git a/packages/vant-use/README.md b/packages/vant-use/README.md index a277a5e2f..18c3a66d4 100644 --- a/packages/vant-use/README.md +++ b/packages/vant-use/README.md @@ -13,4 +13,7 @@ yarn add @vant/use # with pnpm pnpm add @vant/use + +# with Bun +bun add @vant/use ``` diff --git a/packages/vant/docs/markdown/migrate-from-v3.en-US.md b/packages/vant/docs/markdown/migrate-from-v3.en-US.md index 1248596cf..e85dd13e1 100644 --- a/packages/vant/docs/markdown/migrate-from-v3.en-US.md +++ b/packages/vant/docs/markdown/migrate-from-v3.en-US.md @@ -19,6 +19,9 @@ yarn add vant@^4 @vant/compat@^1 # Install via pnpm pnpm add vant@^4 @vant/compat@^1 + +# Install via Bun +bun add vant@^4 @vant/compat@^1 ``` You can also change the version directly in the `dependencies` field of `package.json`, and you will need to reinstall the dependencies after the change. diff --git a/packages/vant/docs/markdown/migrate-from-v3.zh-CN.md b/packages/vant/docs/markdown/migrate-from-v3.zh-CN.md index 94ef72b63..4a4adbe1a 100644 --- a/packages/vant/docs/markdown/migrate-from-v3.zh-CN.md +++ b/packages/vant/docs/markdown/migrate-from-v3.zh-CN.md @@ -19,6 +19,9 @@ yarn add vant@^4 @vant/compat@^1 # 通过 pnpm 安装 pnpm add vant@^4 @vant/compat@^1 + +# 通过 Bun 安装 +bun add vant@^4 @vant/compat@^1 ``` 你也可以直接修改 `package.json` 的 `dependencies` 字段中的版本号,修改完成后需要重新安装依赖。 diff --git a/packages/vant/docs/markdown/quickstart.en-US.md b/packages/vant/docs/markdown/quickstart.en-US.md index 68a2fd0c2..7cb8a4223 100644 --- a/packages/vant/docs/markdown/quickstart.en-US.md +++ b/packages/vant/docs/markdown/quickstart.en-US.md @@ -14,7 +14,7 @@ npm i vant npm i vant@latest-v2 ``` -Using `yarn` or `pnpm`: +Using `yarn`, `pnpm`, or `bun`: ```bash # with yarn @@ -22,6 +22,9 @@ yarn add vant # with pnpm pnpm add vant + +# with Bun +bun add vant ``` ### CDN @@ -126,6 +129,9 @@ yarn add unplugin-vue-components -D # with pnpm pnpm add unplugin-vue-components -D + +# with Bun +bun add unplugin-vue-components -D ``` #### 2. Configure Plugin @@ -235,6 +241,9 @@ yarn add @vant/nuxt -D # with pnpm pnpm add @vant/nuxt -D + +# with Bun +bun add @vant/nuxt -D ``` #### 2. Add Module diff --git a/packages/vant/docs/markdown/quickstart.zh-CN.md b/packages/vant/docs/markdown/quickstart.zh-CN.md index de317dbfc..b664757f0 100644 --- a/packages/vant/docs/markdown/quickstart.zh-CN.md +++ b/packages/vant/docs/markdown/quickstart.zh-CN.md @@ -26,6 +26,9 @@ yarn add vant # 通过 pnpm 安装 pnpm add vant + +# 通过 Bun 安装 +bun add vant ``` ### 通过 CDN 安装 @@ -130,6 +133,9 @@ yarn add unplugin-vue-components -D # 通过 pnpm 安装 pnpm add unplugin-vue-components -D + +# 通过 bun 安装 +bun add unplugin-vue-components -D ``` #### 2. 配置插件 @@ -239,6 +245,9 @@ yarn add @vant/nuxt -D # 通过 pnpm 安装 pnpm add @vant/nuxt -D + +# 通过 Bun 安装 +bun add @vant/nuxt -D ``` #### 2. 增加模块 diff --git a/packages/vant/docs/markdown/vant-use-intro.en-US.md b/packages/vant/docs/markdown/vant-use-intro.en-US.md index 30ba38401..4046e113e 100644 --- a/packages/vant/docs/markdown/vant-use-intro.en-US.md +++ b/packages/vant/docs/markdown/vant-use-intro.en-US.md @@ -17,6 +17,9 @@ yarn add @vant/use # with pnpm pnpm add @vant/use + +# with Bun +bun add @vant/use ``` ### Demo diff --git a/packages/vant/docs/markdown/vant-use-intro.zh-CN.md b/packages/vant/docs/markdown/vant-use-intro.zh-CN.md index 779a3664e..dc4c63c0e 100644 --- a/packages/vant/docs/markdown/vant-use-intro.zh-CN.md +++ b/packages/vant/docs/markdown/vant-use-intro.zh-CN.md @@ -17,6 +17,9 @@ yarn add @vant/use # with pnpm pnpm add @vant/use + +# with Bun +bun add @vant/use ``` ### 示例 diff --git a/packages/vant/src/area/README.md b/packages/vant/src/area/README.md index 43b1eb9b4..0e0dba1c6 100644 --- a/packages/vant/src/area/README.md +++ b/packages/vant/src/area/README.md @@ -63,6 +63,9 @@ yarn add @vant/area-data # with pnpm pnpm add @vant/area-data + +# with Bun +bun add @vant/area-data ``` ```ts diff --git a/packages/vant/src/area/README.zh-CN.md b/packages/vant/src/area/README.zh-CN.md index 35c8c01d6..ba97abadf 100644 --- a/packages/vant/src/area/README.zh-CN.md +++ b/packages/vant/src/area/README.zh-CN.md @@ -65,6 +65,9 @@ yarn add @vant/area-data # 通过 pnpm pnpm add @vant/area-data + +# 通过 Bun +bun add @vant/area-data ``` ```ts diff --git a/packages/vant/src/cascader/README.zh-CN.md b/packages/vant/src/cascader/README.zh-CN.md index 971e9588f..ad33797b5 100644 --- a/packages/vant/src/cascader/README.zh-CN.md +++ b/packages/vant/src/cascader/README.zh-CN.md @@ -93,6 +93,9 @@ yarn add @vant/area-data # 通过 pnpm pnpm add @vant/area-data + +# 通过 Bun +bun add @vant/area-data ``` ```html