@forge/cli

14.1.0-next.1-experimental-13c2f8d14.1.0-next.21-experimental-554d417
out/installations/global-app.js
+out/installations/global-app.jsNew file
+18
Index: package/out/installations/global-app.js
===================================================================
--- package/out/installations/global-app.js
+++ package/out/installations/global-app.js
@@ -0,0 +1,18 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.isGlobalApp = void 0;
+const isProductContext = (ctx) => typeof ctx === 'object' &&
+    ctx !== null &&
+    (('required' in ctx && ctx.required === true) || ('compatible' in ctx && ctx.compatible === true));
+const isGlobalApp = (app) => {
+    const compatibility = app?.compatibility;
+    if (compatibility == null || typeof compatibility !== 'object') {
+        return false;
+    }
+    const contexts = 'contexts' in compatibility && compatibility.contexts && typeof compatibility.contexts === 'object'
+        ? compatibility.contexts
+        : compatibility;
+    return !Object.values(contexts).some(isProductContext);
+};
+exports.isGlobalApp = isGlobalApp;
+//# sourceMappingURL=global-app.js.map
\ No newline at end of file