@sap-ux/adp-tooling 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,6 +48,12 @@ export declare class AdpPreview {
48
48
  * @returns merged manifest.
49
49
  */
50
50
  get descriptor(): MergedAppDescriptor;
51
+ /**
52
+ * @returns `true` when the preview was initialized for a Cloud Foundry adaptation
53
+ * project that serves a pre-built bundle from `cfBuildPath`. CF mode skips the
54
+ * backend descriptor merge, so callers must avoid touching `descriptor`/`resources`.
55
+ */
56
+ get isCloudFoundry(): boolean;
51
57
  /**
52
58
  * @returns a list of resources required to the adaptation project as well as the original app.
53
59
  */
@@ -53,6 +53,14 @@ export class AdpPreview {
53
53
  throw new Error('Not initialized');
54
54
  }
55
55
  }
56
+ /**
57
+ * @returns `true` when the preview was initialized for a Cloud Foundry adaptation
58
+ * project that serves a pre-built bundle from `cfBuildPath`. CF mode skips the
59
+ * backend descriptor merge, so callers must avoid touching `descriptor`/`resources`.
60
+ */
61
+ get isCloudFoundry() {
62
+ return 'cfBuildPath' in this.config;
63
+ }
56
64
  /**
57
65
  * @returns a list of resources required to the adaptation project as well as the original app.
58
66
  */
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "bugs": {
11
11
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
12
12
  },
13
- "version": "1.0.15",
13
+ "version": "1.0.16",
14
14
  "license": "Apache-2.0",
15
15
  "author": "@SAP/ux-tools-team",
16
16
  "main": "dist/index.js",