Skip to content

Commit 9252b71

Browse files
committed
fix(transformer): addCommand method was not using correct property name
1 parent 74a9298 commit 9252b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/code_transformer/rc_file_transformer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export class RcFileTransformer {
172172
* Add a new command to the rcFile
173173
*/
174174
addCommand(commandPath: string) {
175-
const commandsProperty = this.#getPropertyAssignmentInDefineConfigCall('providers', '[]')
175+
const commandsProperty = this.#getPropertyAssignmentInDefineConfigCall('commands', '[]')
176176
const commandsArray = commandsProperty.getInitializerIfKindOrThrow(
177177
SyntaxKind.ArrayLiteralExpression
178178
)

0 commit comments

Comments
 (0)