From bb31eacb1401d23ea753e949a2c7fabcbf8770f0 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sun, 4 May 2025 12:27:26 +0800 Subject: [PATCH 1/3] feat: add `--init-type` 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..a9ab21abf6e7 100644 --- a/docs/cli/init.md +++ b/docs/cli/init.md @@ -4,3 +4,5 @@ title: "pnpm init" --- Create a `package.json` file. + +Set the `--init-type` option to decide whether to add the `type` field to the package.json file. \ No newline at end of file From f4e33d15e126fd839e4c632b9e52e34271399660 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Tue, 6 May 2025 10:50:23 +0800 Subject: [PATCH 2/3] docs: update --- docs/cli/init.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/cli/init.md b/docs/cli/init.md index a9ab21abf6e7..68645c398fd7 100644 --- a/docs/cli/init.md +++ b/docs/cli/init.md @@ -5,4 +5,12 @@ title: "pnpm init" Create a `package.json` file. -Set the `--init-type` option to decide whether to add the `type` field to the package.json file. \ No newline at end of file +Options + +--init-type + +Set the module system for the package. Defaults to "commonjs". + +--init-package-manager + +Pin the project to the current pnpm version by adding a "packageManager" field to package.json \ No newline at end of file From f5aded1263da53cf89f59269fcb706c0f1718651 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Tue, 6 May 2025 11:00:02 +0800 Subject: [PATCH 3/3] docs: update --- docs/cli/init.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cli/init.md b/docs/cli/init.md index 68645c398fd7..a6359bf3e502 100644 --- a/docs/cli/init.md +++ b/docs/cli/init.md @@ -7,10 +7,10 @@ Create a `package.json` file. Options ---init-type +--init-type Set the module system for the package. Defaults to "commonjs". --init-package-manager -Pin the project to the current pnpm version by adding a "packageManager" field to package.json \ No newline at end of file +Pin the project to the current pnpm version by adding a "packageManager" field to package.json. \ No newline at end of file