Skip to content

Commit

Permalink
fix: add missing prop to cached command (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 25, 2022
1 parent 6ec7894 commit 00b086c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/config.ts
Expand Up @@ -751,6 +751,7 @@ export async function toCached(c: Command.Class, plugin?: IPlugin): Promise<Comm
helpGroup: flag.helpGroup,
allowNo: flag.allowNo,
dependsOn: flag.dependsOn,
relationships: flag.relationships,
exclusive: flag.exclusive,
deprecated: flag.deprecated,
aliases: flag.aliases,
Expand Down Expand Up @@ -813,7 +814,7 @@ export async function toCached(c: Command.Class, plugin?: IPlugin): Promise<Comm
}

// do not include these properties in manifest
const ignoreCommandProperties = ['plugin', '_flags']
const ignoreCommandProperties = ['plugin', '_flags', '_enableJsonFlag', '_globalFlags']
const stdKeys = Object.keys(stdProperties)
const keysToAdd = Object.keys(c).filter(property => ![...stdKeys, ...ignoreCommandProperties].includes(property))
const additionalProperties: any = {}
Expand Down

0 comments on commit 00b086c

Please sign in to comment.