@@ -32,11 +32,11 @@ export class DeployCommandHelper {
3232 projectDir : this . $projectData . projectDir
3333 } ) ;
3434
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 } ) ;
3636
3737 const buildAction = additionalOptions && additionalOptions . buildPlatform ?
3838 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 ) ;
4040
4141 const info : ILiveSyncDeviceDescriptor = {
4242 identifier : d . deviceInfo . identifier ,
@@ -50,10 +50,7 @@ export class DeployCommandHelper {
5050 return info ;
5151 } ) ;
5252
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 } ) ;
5754 }
5855}
5956$injector . register ( "deployCommandHelper" , DeployCommandHelper ) ;
0 commit comments