mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-23 23:29:17 -05:00
chore(git): merge from main
This commit is contained in:
@@ -58,7 +58,7 @@ export function help (): string {
|
||||
name: '--location <project|global>',
|
||||
},
|
||||
{
|
||||
description: 'Show all type of values in JSON format (not just objects and arrays)',
|
||||
description: 'Show all types of values in JSON format (not just objects and arrays)',
|
||||
name: '--json',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { processConfig } from './processConfig.js'
|
||||
import { type ConfigCommandOptions } from './ConfigCommandOptions.js'
|
||||
|
||||
export type ConfigListOptions = Omit<ConfigCommandOptions, 'json'>
|
||||
export type ConfigListOptions = Pick<ConfigCommandOptions, 'rawConfig'>
|
||||
|
||||
export async function configList (opts: ConfigCommandOptions): Promise<string> {
|
||||
export async function configList (opts: ConfigListOptions): Promise<string> {
|
||||
const processedConfig = processConfig(opts.rawConfig)
|
||||
return JSON.stringify(processedConfig, undefined, 2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user