Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing prop to cached command #537

Merged
merged 1 commit into from Oct 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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