npm package diff

Package: @forge/cli

Versions: 10.13.6 - 11.0.0-next.18

File: package/out/command-line/controller/deploy-controller.js

Index: package/out/command-line/controller/deploy-controller.js
===================================================================
--- package/out/command-line/controller/deploy-controller.js
+++ package/out/command-line/controller/deploy-controller.js
@@ -202,17 +202,14 @@
             }
         }
         const handlers = await this.configFile.getAppHandlers();
         const resources = await this.configFile.getResources();
-        let hasProdInstallations = false;
+        let hasNoInstallationsForEnv = true;
         try {
-            const prodInstallations = await this.installationsService.listAppInstallations({
-                environment: 'production'
-            });
-            hasProdInstallations = !prodInstallations.installations.length;
+            hasNoInstallationsForEnv = await this.installationsService.hasNoAppInstallationsForEnv(appDetails.environmentType);
         }
         catch (err) {
-            this.deployView.displayListAppInstallationsError();
+            this.deployView.displayHasNoAppInstallationsForEnvError();
             if (verify) {
                 throw err;
             }
         }
@@ -220,9 +217,9 @@
             ? this.nodePackageUploadDeployCommand
             : this.sandboxPackageUploadDeployCommand;
         const config = await this.configFile.readConfig();
         const packageConfig = config.app?.package;
-        const analytics = await this.deployView.reportDeploymentProgress(appDetails, hasProdInstallations, () => deployCommand.execute({
+        const analytics = await this.deployView.reportDeploymentProgress(appDetails, hasNoInstallationsForEnv, () => deployCommand.execute({
             handlers,
             resources,
             environmentKey: environment,
             packageConfig,