From 4363907016abd3ad33b2afa0bc6ded42ed9aea35 Mon Sep 17 00:00:00 2001 From: plamen5kov Date: Thu, 1 Dec 2016 15:04:12 +0200 Subject: [PATCH] fix open app inspector command open app inspector command installs tns-ios-inspector which needs to be saved in the package.json as a normal or a dev dependency, because we do a diff of the package json before and after the installation and if the newly installed package is not saved our diff logic doesn't work correctly --- lib/services/ios-debug-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/ios-debug-service.ts b/lib/services/ios-debug-service.ts index ac3d8b9d08..9f946562d4 100644 --- a/lib/services/ios-debug-service.ts +++ b/lib/services/ios-debug-service.ts @@ -214,7 +214,7 @@ class IOSDebugService implements IDebugService { private openAppInspector(fileDescriptor: string): IFuture { if (this.$options.client) { return (() => { - let inspectorPath = this.$npmInstallationManager.install(inspectorNpmPackageName, this.$projectData.projectDir).wait(); + let inspectorPath = this.$npmInstallationManager.install(inspectorNpmPackageName, this.$projectData.projectDir, {dependencyType: "save-dev"}).wait(); let inspectorSourceLocation = path.join(inspectorPath, inspectorUiDir, "Main.html"); let inspectorApplicationPath = path.join(inspectorPath, inspectorAppName);