File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 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 {
203203 private openDebuggerClient ( fileDescriptor : string ) : IFuture < void > {
204204 if ( this . $options . client ) {
205205 return ( ( ) => {
206- let inspectorPath = this . $npmInstallationManager . install ( inspectorNpmPackageName ) . wait ( ) ;
206+ let inspectorPath = this . $npmInstallationManager . install ( inspectorNpmPackageName , this . $projectData . projectDir ) . wait ( ) ;
207207 let inspectorSourceLocation = path . join ( inspectorPath , inspectorUiDir , "Main.html" ) ;
208208 let inspectorApplicationPath = path . join ( inspectorPath , inspectorAppName ) ;
209209
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-
217210 let cmd = `open -a '${ inspectorApplicationPath } ' --args '${ inspectorSourceLocation } ' '${ this . $projectData . projectName } ' '${ fileDescriptor } '` ;
218211 this . $childProcess . exec ( cmd ) . wait ( ) ;
219212 } ) . future < void > ( ) ( ) ;
You can’t perform that action at this time.
0 commit comments