@@ -2,20 +2,20 @@ import {
22 isEnabled as globalIsTelemetryEnabled ,
33 sendEvent as telemetrySendEvent
44} from "@webiny/telemetry/cli.js" ;
5- import { CliCommand , GetProjectSdkService } from "~/abstractions/index.js" ;
5+ import { CliCommandFactory , GetProjectSdkService } from "~/abstractions/index.js" ;
66import { IDeployCommandParams } from "~/features/index.js" ;
77import { GracefulError } from "@webiny/project" ;
88
99const isDeployCommand = (
10- command : CliCommand . CommandDefinition < any >
11- ) : command is CliCommand . CommandDefinition < IDeployCommandParams > => {
10+ command : CliCommandFactory . CommandDefinition < any >
11+ ) : command is CliCommandFactory . CommandDefinition < IDeployCommandParams > => {
1212 return command . name === "deploy" ;
1313} ;
1414
15- export class DeployCommandWithTelemetry < TParams > implements CliCommand . Interface < TParams > {
15+ export class DeployCommandWithTelemetry < TParams > implements CliCommandFactory . Interface < TParams > {
1616 constructor (
1717 private getProjectSdkService : GetProjectSdkService . Interface ,
18- private decoratee : CliCommand . Interface < TParams >
18+ private decoratee : CliCommandFactory . Interface < TParams >
1919 ) { }
2020
2121 async execute ( ) {
@@ -38,7 +38,7 @@ export class DeployCommandWithTelemetry<TParams> implements CliCommand.Interface
3838 }
3939
4040 // Getting a different type without type assertion. :|
41- const deployCommand = command as CliCommand . CommandDefinition < IDeployCommandParams > ;
41+ const deployCommand = command as CliCommandFactory . CommandDefinition < IDeployCommandParams > ;
4242 const originalCommandHandler = deployCommand . handler ;
4343
4444 deployCommand . handler = async ( params : IDeployCommandParams ) => {
@@ -114,7 +114,7 @@ export class DeployCommandWithTelemetry<TParams> implements CliCommand.Interface
114114 }
115115}
116116
117- export const deployCommandWithTelemetry = CliCommand . createDecorator ( {
117+ export const deployCommandWithTelemetry = CliCommandFactory . createDecorator ( {
118118 decorator : DeployCommandWithTelemetry ,
119119 dependencies : [ GetProjectSdkService ]
120120} ) ;
0 commit comments