@equinor/fusion-framework-cli 13.2.1 → 13.3.0

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.
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '13.2.1';
2
+ export const version = '13.3.0';
3
3
  //# sourceMappingURL=version.js.map
@@ -1,11 +1,11 @@
1
- import { type FusionEnv, type FusionFrameworkSettings } from './framework.node.js';
1
+ import type { FusionFramework } from './framework.node.js';
2
2
  import { type ConsoleLogger } from './utils/index.js';
3
+ import type { ApiAppConfig } from '../lib/app/schemas.js';
3
4
  type AppConfigPublishOptions = {
4
- config?: string;
5
- manifest?: string;
6
- environment: Exclude<FusionEnv, FusionEnv.Development>;
7
- auth: FusionFrameworkSettings['auth'];
8
- debug?: boolean;
5
+ config: ApiAppConfig;
6
+ appKey: string;
7
+ buildVersion: string;
8
+ framework: FusionFramework;
9
9
  log?: ConsoleLogger | null;
10
10
  };
11
11
  /**
@@ -1,4 +1,5 @@
1
- import type { RuntimeEnv } from '../lib/index.js';
1
+ import type { ApiAppConfig } from '@equinor/fusion-framework-cli/app';
2
+ import type { ResolvedPackage, RuntimeEnv } from '../lib/index.js';
2
3
  import { type ConsoleLogger } from './utils/index.js';
3
4
  /**
4
5
  * Options for generating the application configuration.
@@ -27,6 +28,24 @@ interface GenerateApplicationConfigOptions {
27
28
  */
28
29
  output?: string;
29
30
  }
31
+ /**
32
+ * Result of generating the application configuration.
33
+ *
34
+ * Provides the resolved config and the resolved package metadata.
35
+ *
36
+ * @public
37
+ */
38
+ export interface GenerateApplicationConfigResult {
39
+ /**
40
+ * Resolved application configuration.
41
+ */
42
+ config: ApiAppConfig;
43
+ /**
44
+ * Resolved package metadata for the current project.
45
+ * Will be undefined if package resolution fails.
46
+ */
47
+ pkg?: ResolvedPackage;
48
+ }
30
49
  /**
31
50
  * Generates the application configuration object for the current project.
32
51
  *
@@ -39,14 +58,5 @@ interface GenerateApplicationConfigOptions {
39
58
  * @throws If writing the config to file fails.
40
59
  * @public
41
60
  */
42
- export declare const generateApplicationConfig: (options?: GenerateApplicationConfigOptions) => Promise<{
43
- config: {
44
- environment: Record<string, any>;
45
- endpoints?: Record<string, {
46
- url: string;
47
- scopes: string[];
48
- }> | undefined;
49
- };
50
- pkg: import("../lib/index.js").ResolvedPackage;
51
- }>;
61
+ export declare const generateApplicationConfig: (options?: GenerateApplicationConfigOptions) => Promise<GenerateApplicationConfigResult>;
52
62
  export {};
@@ -1 +1 @@
1
- export declare const version = "13.2.1";
1
+ export declare const version = "13.3.0";
@@ -103,6 +103,10 @@ pnpm fusion-framework-cli auth login
103
103
  ### 6. Build, Publish, and Upload Config
104
104
 
105
105
  ```sh
106
+ # Publish and upload config in one command
107
+ pnpm fusion-framework-cli publish --env <environment> --config
108
+
109
+ # Or separately
106
110
  pnpm fusion-framework-cli publish --env <environment>
107
111
  pnpm fusion-framework-cli app config --publish --env <environment>
108
112
  ```
@@ -276,10 +280,8 @@ jobs:
276
280
  - name: Setup node
277
281
  - name: Download Artifact
278
282
  - name: Set Fusion token
279
- - name: Publish application
280
- run: pnpm exec fusion-framework-cli app upload --env ${{ matrix.env }} app-bundle.zip
281
- - step: Upload configuration
282
- run: pnpm exec fusion-framework-cli app config --publish --env ${{ matrix.env }}
283
+ - name: Publish application with config
284
+ run: pnpm exec fusion-framework-cli app publish --env ${{ matrix.env }} app-bundle.zip --config
283
285
  ```
284
286
 
285
287
  > [!TIP]
@@ -425,6 +427,7 @@ This command uploads and tags your app for deployment. If no bundle is provided,
425
427
  | `-e`, `--env` | Target environment for deployment (e.g., `ci`, `fqa`, `fprd`). | |
426
428
  | `-m`, `--manifest` | Manifest file to use for bundling (e.g., `app.manifest.ts`) (optional). | `app.manifest.ts` |
427
429
  | `-t`, `--tag` | Tag to apply to the published app (any string, commonly `latest` or `preview`). | `latest` |
430
+ | `-c`, `--config` | Upload application config after publishing. Accepts true for default config file or a path to a specific config file. | |
428
431
  | `-d`, `--debug` | Enable debug mode for verbose logging. | `false` |
429
432
  | `--token` | Authentication token for Fusion. | |
430
433
  | `--tenantId` | Azure tenant ID for authentication. | |
@@ -440,6 +443,8 @@ pnpm fusion-framework-cli publish [bundle] [options]
440
443
  pnpm fusion-framework-cli publish
441
444
  pnpm fusion-framework-cli publish --env prod --manifest app.manifest.prod.ts
442
445
  pnpm fusion-framework-cli publish --tag latest app-bundle.zip
446
+ pnpm fusion-framework-cli publish --config --env prod
447
+ pnpm fusion-framework-cli publish --config app.config.prod.ts --env prod
443
448
  ```
444
449
 
445
450
  > [!IMPORTANT]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-cli",
3
- "version": "13.2.1",
3
+ "version": "13.3.0",
4
4
  "keywords": [
5
5
  "Fusion",
6
6
  "Fusion Framework",
@@ -110,9 +110,9 @@
110
110
  "vite": "^7.1.12",
111
111
  "vite-tsconfig-paths": "^6.0.4",
112
112
  "zod": "^4.1.8",
113
- "@equinor/fusion-framework-dev-portal": "1.4.0",
114
- "@equinor/fusion-framework-dev-server": "1.1.21",
113
+ "@equinor/fusion-framework-dev-server": "1.1.22",
115
114
  "@equinor/fusion-imports": "1.1.10",
115
+ "@equinor/fusion-framework-dev-portal": "1.4.0",
116
116
  "@equinor/fusion-framework-module-msal-node": "3.0.0"
117
117
  },
118
118
  "devDependencies": {
@@ -143,7 +143,7 @@
143
143
  "@equinor/fusion-framework-cli-plugin-ai-search": "1.0.4",
144
144
  "@equinor/fusion-framework-module": "5.0.5",
145
145
  "@equinor/fusion-framework-module-app": "7.4.0",
146
- "@equinor/fusion-framework-module-http": "7.0.6",
146
+ "@equinor/fusion-framework-module-http": "7.0.7",
147
147
  "@equinor/fusion-framework-module-service-discovery": "9.0.5"
148
148
  },
149
149
  "peerDependenciesMeta": {