@@ -20,7 +20,8 @@ import * as _ from "lodash";
2020
2121export class DebugPlatformCommand
2222 extends ValidatePlatformCommandBase
23- implements ICommand {
23+ implements ICommand
24+ {
2425 public allowedParameters : ICommandParameter [ ] = [ ] ;
2526
2627 constructor (
@@ -36,13 +37,13 @@ export class DebugPlatformCommand
3637 private $debugDataService : IDebugDataService ,
3738 private $debugController : IDebugController ,
3839 private $liveSyncCommandHelper : ILiveSyncCommandHelper ,
39- private $migrateController : IMigrateController
40+ private $migrateController : IMigrateController ,
4041 ) {
4142 super (
4243 $options ,
4344 $platformsDataService ,
4445 $platformValidationService ,
45- $projectData
46+ $projectData ,
4647 ) ;
4748 $cleanupService . setShouldDispose ( false ) ;
4849 }
@@ -66,10 +67,10 @@ export class DebugPlatformCommand
6667 const debugData = this . $debugDataService . getDebugData (
6768 selectedDeviceForDebug . deviceInfo . identifier ,
6869 this . $projectData ,
69- debugOptions
70+ debugOptions ,
7071 ) ;
7172 await this . $debugController . printDebugInformation (
72- await this . $debugController . startDebug ( debugData )
73+ await this . $debugController . startDebug ( debugData ) ,
7374 ) ;
7475 return ;
7576 }
@@ -83,7 +84,7 @@ export class DebugPlatformCommand
8384 } ,
8485 buildPlatform : undefined ,
8586 skipNativePrepare : false ,
86- }
87+ } ,
8788 ) ;
8889 }
8990
@@ -98,17 +99,17 @@ export class DebugPlatformCommand
9899 if (
99100 ! this . $platformValidationService . isPlatformSupportedForOS (
100101 this . platform ,
101- this . $projectData
102+ this . $projectData ,
102103 )
103104 ) {
104105 this . $errors . fail (
105- `Applications for platform ${ this . platform } can not be built on this OS`
106+ `Applications for platform ${ this . platform } can not be built on this OS` ,
106107 ) ;
107108 }
108109
109110 if ( this . $options . release ) {
110111 this . $errors . failWithHelp (
111- "--release flag is not applicable to this command."
112+ "--release flag is not applicable to this command." ,
112113 ) ;
113114 }
114115
@@ -138,12 +139,12 @@ export class DebugIOSCommand implements ICommand {
138139 private $sysInfo : ISysInfo ,
139140 private $projectData : IProjectData ,
140141 $iosDeviceOperations : IIOSDeviceOperations ,
141- $iOSSimulatorLogProvider : Mobile . IiOSSimulatorLogProvider
142+ $iOSSimulatorLogProvider : Mobile . IiOSSimulatorLogProvider ,
142143 ) {
143144 this . $projectData . initializeProjectData ( ) ;
144145 // Do not dispose ios-device-lib, so the process will remain alive and the debug application (NativeScript Inspector or Chrome DevTools) will be able to connect to the socket.
145146 // In case we dispose ios-device-lib, the socket will be closed and the code will fail when the debug application tries to read/send data to device socket.
146- // That's why the `$ tns debug ios --justlaunch` command will not release the terminal.
147+ // That's why the `$ ns debug ios --justlaunch` command will not release the terminal.
147148 // In case we do not set it to false, the dispose will be called once the command finishes its execution, which will prevent the debugging.
148149 $iosDeviceOperations . setShouldDispose ( false ) ;
149150 $iOSSimulatorLogProvider . setShouldDispose ( false ) ;
@@ -157,18 +158,18 @@ export class DebugIOSCommand implements ICommand {
157158 if (
158159 ! this . $platformValidationService . isPlatformSupportedForOS (
159160 this . $devicePlatformsConstants . iOS ,
160- this . $projectData
161+ this . $projectData ,
161162 )
162163 ) {
163164 this . $errors . fail (
164- `Applications for platform ${ this . $devicePlatformsConstants . iOS } can not be built on this OS`
165+ `Applications for platform ${ this . $devicePlatformsConstants . iOS } can not be built on this OS` ,
165166 ) ;
166167 }
167168
168169 const isValidTimeoutOption = this . isValidTimeoutOption ( ) ;
169170 if ( ! isValidTimeoutOption ) {
170171 this . $errors . fail (
171- `Timeout option specifies the seconds NativeScript CLI will wait to find the inspector socket port from device's logs. Must be a number.`
172+ `Timeout option specifies the seconds NativeScript CLI will wait to find the inspector socket port from device's logs. Must be a number.` ,
172173 ) ;
173174 }
174175
@@ -179,7 +180,7 @@ export class DebugIOSCommand implements ICommand {
179180 macOSWarning . severity === SystemWarningsSeverity . high
180181 ) {
181182 this . $errors . fail (
182- `You cannot use NativeScript Inspector on this OS. To use it, please update your OS.`
183+ `You cannot use NativeScript Inspector on this OS. To use it, please update your OS.` ,
183184 ) ;
184185 }
185186 }
@@ -224,7 +225,7 @@ export class DebugAndroidCommand implements ICommand {
224225 private $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
225226 private $injector : IInjector ,
226227 private $projectData : IProjectData ,
227- private $options : IOptions
228+ private $options : IOptions ,
228229 ) {
229230 this . $projectData . initializeProjectData ( ) ;
230231 }
0 commit comments