mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-07 07:27:06 -04:00
fix(plugin-commands-installation): "latest" is only a CLI option
"latest" is not read from RC file
This commit is contained in:
@@ -6,46 +6,48 @@ import R = require('ramda')
|
||||
import renderHelp = require('render-help')
|
||||
import { handler as install, InstallCommandOptions } from './install'
|
||||
|
||||
export const rcOptionsTypes = cliOptionsTypes
|
||||
export function rcOptionsTypes () {
|
||||
return R.pick([
|
||||
'depth',
|
||||
'dev',
|
||||
'engine-strict',
|
||||
'force',
|
||||
'global-dir',
|
||||
'global-pnpmfile',
|
||||
'global',
|
||||
'ignore-pnpmfile',
|
||||
'ignore-scripts',
|
||||
'lockfile-dir',
|
||||
'lockfile-directory',
|
||||
'lockfile-only',
|
||||
'lockfile',
|
||||
'offline',
|
||||
'only',
|
||||
'optional',
|
||||
'package-import-method',
|
||||
'pnpmfile',
|
||||
'prefer-offline',
|
||||
'production',
|
||||
'recursive',
|
||||
'registry',
|
||||
'reporter',
|
||||
'resolution-strategy',
|
||||
'save',
|
||||
'save-exact',
|
||||
'shamefully-flatten',
|
||||
'shamefully-hoist',
|
||||
'shared-workspace-lockfile',
|
||||
'side-effects-cache-readonly',
|
||||
'side-effects-cache',
|
||||
'store',
|
||||
'store-dir',
|
||||
'use-running-store-server',
|
||||
], allTypes)
|
||||
}
|
||||
|
||||
export function cliOptionsTypes () {
|
||||
return {
|
||||
...R.pick([
|
||||
'depth',
|
||||
'dev',
|
||||
'engine-strict',
|
||||
'force',
|
||||
'global-dir',
|
||||
'global-pnpmfile',
|
||||
'global',
|
||||
'ignore-pnpmfile',
|
||||
'ignore-scripts',
|
||||
'lockfile-dir',
|
||||
'lockfile-directory',
|
||||
'lockfile-only',
|
||||
'lockfile',
|
||||
'offline',
|
||||
'only',
|
||||
'optional',
|
||||
'package-import-method',
|
||||
'pnpmfile',
|
||||
'prefer-offline',
|
||||
'production',
|
||||
'recursive',
|
||||
'registry',
|
||||
'reporter',
|
||||
'resolution-strategy',
|
||||
'save',
|
||||
'save-exact',
|
||||
'shamefully-flatten',
|
||||
'shamefully-hoist',
|
||||
'shared-workspace-lockfile',
|
||||
'side-effects-cache-readonly',
|
||||
'side-effects-cache',
|
||||
'store',
|
||||
'store-dir',
|
||||
'use-running-store-server',
|
||||
], allTypes),
|
||||
...rcOptionsTypes(),
|
||||
latest: Boolean,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user