File tree 1 file changed +1
-8
lines changed
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -203,17 +203,10 @@ class IOSDebugService implements IDebugService {
203
203
private openDebuggerClient ( fileDescriptor : string ) : IFuture < void > {
204
204
if ( this . $options . client ) {
205
205
return ( ( ) => {
206
- let inspectorPath = this . $npmInstallationManager . install ( inspectorNpmPackageName ) . wait ( ) ;
206
+ let inspectorPath = this . $npmInstallationManager . install ( inspectorNpmPackageName , this . $projectData . projectDir ) . wait ( ) ;
207
207
let inspectorSourceLocation = path . join ( inspectorPath , inspectorUiDir , "Main.html" ) ;
208
208
let inspectorApplicationPath = path . join ( inspectorPath , inspectorAppName ) ;
209
209
210
- // TODO : Sadly $npmInstallationManager.install does not install the package, it only inserts it in the cache through the npm cache add command
211
- // Since npm cache add command does not execute scripts our posinstall script that extract the Inspector Application does not execute as well
212
- // So until this behavior is changed this ugly workaround should not be deleted
213
- if ( ! this . $fs . exists ( inspectorApplicationPath ) . wait ( ) ) {
214
- this . $npm . executeNpmCommand ( "npm run-script postinstall" , inspectorPath ) . wait ( ) ;
215
- }
216
-
217
210
let cmd = `open -a '${ inspectorApplicationPath } ' --args '${ inspectorSourceLocation } ' '${ this . $projectData . projectName } ' '${ fileDescriptor } '` ;
218
211
this . $childProcess . exec ( cmd ) . wait ( ) ;
219
212
} ) . future < void > ( ) ( ) ;
You can’t perform that action at this time.
0 commit comments