@equinor/fusion-framework-cli 11.0.0-next.11 → 11.0.0-next.13

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,5 +1,5 @@
1
1
  import { type ImportConfigResult } from '@equinor/fusion-imports';
2
- import type { RuntimeEnv } from './types.js';
2
+ import type { RecursivePartial, RuntimeEnv } from './types.js';
3
3
  import type { DevServerOptions } from '@equinor/fusion-framework-dev-server';
4
4
  /**
5
5
  * Type definition for a function that generates or modifies DevServerOptions.
@@ -9,7 +9,7 @@ import type { DevServerOptions } from '@equinor/fusion-framework-dev-server';
9
9
  */
10
10
  export type DevServerConfigFn = (env: RuntimeEnv, args: {
11
11
  base: DevServerOptions;
12
- }) => Promise<DevServerOptions | undefined> | DevServerOptions | undefined;
12
+ }) => Promise<RecursivePartial<DevServerOptions> | undefined> | RecursivePartial<DevServerOptions> | undefined;
13
13
  /**
14
14
  * Type definition for a dev server config export, which can be either a DevServerOptions object or a function.
15
15
  */
@@ -32,3 +32,32 @@ export type RuntimeEnv = {
32
32
  */
33
33
  environment?: string | null;
34
34
  };
35
+ /**
36
+ * Makes all properties of a type optional, recursively.
37
+ * For array properties, applies the transformation to the array's element type.
38
+ *
39
+ * @template T - The type to make recursively partial.
40
+ *
41
+ * @example
42
+ * type Example = {
43
+ * a: number;
44
+ * b: {
45
+ * c: string;
46
+ * d: number[];
47
+ * };
48
+ * };
49
+ * // RecursivePartial<Example> will be:
50
+ * // {
51
+ * // a?: number;
52
+ * // b?: {
53
+ * // c?: string;
54
+ * // d?: number[];
55
+ * // };
56
+ * // }
57
+ */
58
+ export type RecursivePartial<T> = {
59
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> : Value<T[P]>;
60
+ };
61
+ type AllowedPrimitives = Function | boolean | string | number | Date;
62
+ type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
63
+ export {};
@@ -1 +1 @@
1
- export declare const version = "11.0.0-next.11";
1
+ export declare const version = "11.0.0-next.13";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-cli",
3
- "version": "11.0.0-next.11",
3
+ "version": "11.0.0-next.13",
4
4
  "homepage": "https://github.com/equinor/fusion-framework",
5
5
  "keywords": [
6
6
  "Fusion",
@@ -62,8 +62,8 @@
62
62
  "chalk": "^5.3.0",
63
63
  "read-package-up": "^11.0.0",
64
64
  "zod": "^3.25.20",
65
+ "@equinor/fusion-framework-dev-server": "^1.0.0-next.8",
65
66
  "@equinor/fusion-framework-dev-portal": "^1.0.0-next.2",
66
- "@equinor/fusion-framework-dev-server": "^1.0.0-next.7",
67
67
  "@equinor/fusion-imports": "^1.1.1-next.0"
68
68
  },
69
69
  "devDependencies": {
@@ -83,10 +83,10 @@
83
83
  "rxjs": "^7.8.1",
84
84
  "typescript": "^5.8.2",
85
85
  "@equinor/fusion-framework-module": "^4.4.3-next.1",
86
- "@equinor/fusion-framework-module-app": "^6.1.13",
87
86
  "@equinor/fusion-framework-module-http": "^6.3.3-next.2",
88
87
  "@equinor/fusion-framework-module-msal-node": "^0.1.1-next.2",
89
- "@equinor/fusion-framework-module-service-discovery": "^8.0.15-next.2"
88
+ "@equinor/fusion-framework-module-service-discovery": "^8.0.15-next.2",
89
+ "@equinor/fusion-framework-module-app": "^6.1.13"
90
90
  },
91
91
  "peerDependenciesMeta": {
92
92
  "typescript": {