From fca486bb160739ac01f2b6abdf5c0572f8274eb8 Mon Sep 17 00:00:00 2001 From: "hendrik.loewe" Date: Tue, 16 Jan 2024 18:33:34 +0100 Subject: [PATCH 1/2] docs: improve explanation of --prod flag --- docs/cli/install.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/cli/install.md b/docs/cli/install.md index c9c6e43bae29..042cda6d1452 100644 --- a/docs/cli/install.md +++ b/docs/cli/install.md @@ -50,10 +50,17 @@ will be requested from the server. To force full offline mode, use `--offline`. ### --prod, -P -pnpm will not install any package listed in `devDependencies` and will remove -those insofar they were already installed, if the `NODE_ENV` environment variable -is set to production. Use this flag to instruct pnpm to ignore `NODE_ENV` and take -its production status from this flag instead. +* Default: + * If `NODE_ENV` is `production`: `true` + * If `NODE_ENV` is **not** `production`: `false` +* Type: Boolean + +If set, pnpm will ignore `NODE_ENV` and instead use this boolean value for +determining the environment. + +If `true`, pnpm will not install any package listed in `devDependencies` and will remove +those insofar they were already installed. +If `false`, pnpm will install all packages listed in `devDependencies` and `dependencies` ### --dev, -D From d15b810cd01b5bd0c6aa61671aab3c8bac271f71 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 18 Jan 2024 00:59:18 +0100 Subject: [PATCH 2/2] Update docs/cli/install.md --- docs/cli/install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cli/install.md b/docs/cli/install.md index 042cda6d1452..c6848e137005 100644 --- a/docs/cli/install.md +++ b/docs/cli/install.md @@ -60,7 +60,7 @@ determining the environment. If `true`, pnpm will not install any package listed in `devDependencies` and will remove those insofar they were already installed. -If `false`, pnpm will install all packages listed in `devDependencies` and `dependencies` +If `false`, pnpm will install all packages listed in `devDependencies` and `dependencies`. ### --dev, -D