From 1aaed86008ae2d8f111ce737d21a495a8e1d7039 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Thu, 13 Feb 2025 12:36:20 +0800 Subject: [PATCH 1/2] feat: add `init-package-manager` desc --- docs/cli/init.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/cli/init.md b/docs/cli/init.md index 3ff66f4be891..02c12e9375be 100644 --- a/docs/cli/init.md +++ b/docs/cli/init.md @@ -4,3 +4,5 @@ title: "pnpm init" --- Create a `package.json` file. + +You can set `pnpm config set init-package-manager=false` to prevent adding the `packageManager` field in the `package.json` file. \ No newline at end of file From 7df89cc069de72be467a0cf38b4b00241af369af Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Fri, 14 Feb 2025 09:38:33 +0800 Subject: [PATCH 2/2] chore: update --- docs/cli/init.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cli/init.md b/docs/cli/init.md index 02c12e9375be..08c6a6f55e6f 100644 --- a/docs/cli/init.md +++ b/docs/cli/init.md @@ -5,4 +5,4 @@ title: "pnpm init" Create a `package.json` file. -You can set `pnpm config set init-package-manager=false` to prevent adding the `packageManager` field in the `package.json` file. \ No newline at end of file +When configuring `pnpm config set init-package-manager=false`, `pnpm init` will not add the `packageManager` field to the initialized `package.json` file. \ No newline at end of file