@@ -32,11 +32,11 @@ export class DeployCommandHelper {
32
32
projectDir : this . $projectData . projectDir
33
33
} ) ;
34
34
35
- const buildData = this . $buildDataService . getBuildData ( this . $projectData . projectDir , d . deviceInfo . platform , { ...this . $options , outputPath, buildForDevice : ! d . isEmulator } ) ;
35
+ const buildData = this . $buildDataService . getBuildData ( this . $projectData . projectDir , d . deviceInfo . platform , { ...this . $options . argv , outputPath, buildForDevice : ! d . isEmulator , skipWatcher : ! this . $options . watch } ) ;
36
36
37
37
const buildAction = additionalOptions && additionalOptions . buildPlatform ?
38
38
additionalOptions . buildPlatform . bind ( additionalOptions . buildPlatform , d . deviceInfo . platform , buildData , this . $projectData ) :
39
- this . $buildController . prepareAndBuild . bind ( this . $buildController , d . deviceInfo . platform , buildData , this . $projectData ) ;
39
+ this . $buildController . build . bind ( this . $buildController , buildData ) ;
40
40
41
41
const info : ILiveSyncDeviceDescriptor = {
42
42
identifier : d . deviceInfo . identifier ,
@@ -50,10 +50,7 @@ export class DeployCommandHelper {
50
50
return info ;
51
51
} ) ;
52
52
53
- await this . $deployController . deploy ( {
54
- buildData : this . $buildDataService . getBuildData ( this . $projectData . projectDir , platform , { ...this . $options . argv , skipWatcher : ! this . $options . watch } ) ,
55
- deviceDescriptors
56
- } ) ;
53
+ await this . $deployController . deploy ( { deviceDescriptors } ) ;
57
54
}
58
55
}
59
56
$injector . register ( "deployCommandHelper" , DeployCommandHelper ) ;
0 commit comments