fix: fetch should allow the same options as install (#4460)

close #4453
This commit is contained in:
Zoltan Kochan
2022-03-21 12:30:49 +02:00
committed by GitHub
parent 2109f2e8e3
commit 01f4e9c914
2 changed files with 9 additions and 8 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/plugin-commands-installation": patch
"pnpm": patch
---
`pnpm fetch` should allow the same CLI options as `pnpm install` [#4453](https://github.com/pnpm/pnpm/issues/4453).

View File

@@ -1,19 +1,14 @@
import { docsUrl } from '@pnpm/cli-utils'
import { UNIVERSAL_OPTIONS } from '@pnpm/common-cli-options-help'
import { Config, types as allTypes } from '@pnpm/config'
import { Config } from '@pnpm/config'
import { createOrConnectStoreController, CreateStoreControllerOptions } from '@pnpm/store-connection-manager'
import { InstallOptions, mutateModules } from '@pnpm/core'
import pick from 'ramda/src/pick'
import renderHelp from 'render-help'
import { cliOptionsTypes } from './install'
export const rcOptionsTypes = cliOptionsTypes
export function cliOptionsTypes () {
return pick([
'production',
'dev',
], allTypes)
}
export { cliOptionsTypes }
export const commandNames = ['fetch']