Skip to content

Commit

Permalink
fix(transformer): addCommand method was not using correct property name
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Oct 3, 2023
1 parent 74a9298 commit 9252b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/code_transformer/rc_file_transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export class RcFileTransformer {
* Add a new command to the rcFile
*/
addCommand(commandPath: string) {
const commandsProperty = this.#getPropertyAssignmentInDefineConfigCall('providers', '[]')
const commandsProperty = this.#getPropertyAssignmentInDefineConfigCall('commands', '[]')
const commandsArray = commandsProperty.getInitializerIfKindOrThrow(
SyntaxKind.ArrayLiteralExpression
)
Expand Down

0 comments on commit 9252b71

Please sign in to comment.