Skip to content

Commit

Permalink
fix: remove config from json response
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed May 23, 2024
1 parent cbd3ef8 commit 5cf8d76
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/commands/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,17 @@ export default class PluginsIndex extends Command {
this.displayJitPlugins(jitPlugins)
}

return [...results.filter((p) => !p.parent), ...jitPlugins]
return [
...results
.filter((p) => !p.parent)
.map((p) => {
// @ts-expect-error because we are removing the config property, which may or may not be there.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const {config, ...rest} = p
return rest
}),
...jitPlugins,
]
}

private createTree(plugin: Plugin) {
Expand Down

0 comments on commit 5cf8d76

Please sign in to comment.