Skip to content

Commit d04e33c

Browse files
bteazkochan
andauthored
feat: init command options (#664)
* feat: add `--init-type` desc * docs: update * docs: update * docs: update init --------- Co-authored-by: Zoltan Kochan <z@kochan.io>
1 parent b779c2c commit d04e33c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/cli/init.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,16 @@ title: "pnpm init"
44
---
55

66
Create a `package.json` file.
7+
8+
## Options
9+
10+
### --init-type &lt;type\>
11+
12+
* Default: **commonjs**
13+
* Type: **commonjs**, **module**
14+
15+
Set the module system for the package.
16+
17+
### --init-package-manager
18+
19+
Pin the project to the current pnpm version by adding a "packageManager" field to package.json.

0 commit comments

Comments
 (0)