Skip to content

Commit 4363907

Browse files
committed
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
1 parent 3136820 commit 4363907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/ios-debug-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class IOSDebugService implements IDebugService {
214214
private openAppInspector(fileDescriptor: string): IFuture<void> {
215215
if (this.$options.client) {
216216
return (() => {
217-
let inspectorPath = this.$npmInstallationManager.install(inspectorNpmPackageName, this.$projectData.projectDir).wait();
217+
let inspectorPath = this.$npmInstallationManager.install(inspectorNpmPackageName, this.$projectData.projectDir, {dependencyType: "save-dev"}).wait();
218218
let inspectorSourceLocation = path.join(inspectorPath, inspectorUiDir, "Main.html");
219219
let inspectorApplicationPath = path.join(inspectorPath, inspectorAppName);
220220

0 commit comments

Comments
 (0)