From 8b89fc115be795eb27e7d987fd9ccf8e88671a7d Mon Sep 17 00:00:00 2001 From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Date: Wed, 9 Oct 2019 20:17:46 +0200 Subject: [PATCH] =?UTF-8?q?fix(pnpm):=20add=C2=A0missing=20command=C2=A0op?= =?UTF-8?q?tions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #2061 PR #2064 --- packages/pnpm/src/main.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/pnpm/src/main.ts b/packages/pnpm/src/main.ts index 684c7a30dd..a76cfb0d99 100644 --- a/packages/pnpm/src/main.ts +++ b/packages/pnpm/src/main.ts @@ -136,6 +136,7 @@ const INSTALL_CLI_OPTIONS = new Set([ 'frozen-lockfile', 'force', 'global-pnpmfile', + 'global', 'hoist', 'hoist-pattern', 'ignore-pnpmfile', @@ -222,6 +223,7 @@ const SUPPORTED_CLI_OPTIONS: Record> = 'install': INSTALL_CLI_OPTIONS, 'install-test': INSTALL_CLI_OPTIONS, 'link': new Set([ + 'global', 'only', 'package-import-method', 'production', @@ -307,6 +309,7 @@ const SUPPORTED_CLI_OPTIONS: Record> = ]), 'unlink': new Set([ 'recursive', + 'global', ]), 'update': new Set([ 'depth', @@ -314,6 +317,7 @@ const SUPPORTED_CLI_OPTIONS: Record> = 'engine-strict', 'force', 'global-pnpmfile', + 'global', 'ignore-pnpmfile', 'ignore-scripts', 'latest', @@ -340,6 +344,14 @@ const SUPPORTED_CLI_OPTIONS: Record> = 'use-running-store-server', ]), 'why': new Set([ + 'dev', + 'global', + 'json', + 'long', + 'only', + 'optional', + 'parseable', + 'production', 'recursive', ]), }