mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-10 18:18:56 -04:00
fix: fetch should allow the same options as install (#4460)
close #4453
This commit is contained in:
6
.changeset/large-dragons-guess.md
Normal file
6
.changeset/large-dragons-guess.md
Normal 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).
|
||||
@@ -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']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user