@equinor/fusion-framework-cli 11.0.0-next.12 → 11.0.0-next.14
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.
- package/CHANGELOG.md +31 -0
- package/bin/build/bin.js +1 -1
- package/bin/build/cli.js +1 -1
- package/bin/build/{create-auth-client-B_j4Y_Dr.js → create-auth-client-DEexcuNX.js} +1 -1
- package/bin/build/{portal-config-publish-ezU_DFki.js → portal-config-publish--QAre9Id.js} +96 -51
- package/dist/esm/bin/utils/create-dev-server.js +14 -10
- package/dist/esm/bin/utils/create-dev-server.js.map +1 -1
- package/dist/esm/lib/load-dev-server-config.js +7 -3
- package/dist/esm/lib/load-dev-server-config.js.map +1 -1
- package/dist/esm/lib/merge-dev-server-config.js +9 -8
- package/dist/esm/lib/merge-dev-server-config.js.map +1 -1
- package/dist/esm/lib/portal/load-portal-manifest.js +8 -4
- package/dist/esm/lib/portal/load-portal-manifest.js.map +1 -1
- package/dist/esm/lib/portal/portal-config.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/bin/utils/create-dev-server.d.ts +1 -1
- package/dist/types/lib/load-dev-server-config.d.ts +2 -2
- package/dist/types/lib/portal/load-portal-manifest.d.ts +2 -2
- package/dist/types/lib/types.d.ts +29 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -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
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RuntimeEnv } from '../types';
|
|
1
|
+
import type { RecursivePartial, RuntimeEnv } from '../types';
|
|
2
2
|
import type { PortalManifest } from './portal-manifest.js';
|
|
3
3
|
/**
|
|
4
4
|
* A function type for generating or modifying a portal manifest based on the runtime environment and provided arguments.
|
|
@@ -10,7 +10,7 @@ import type { PortalManifest } from './portal-manifest.js';
|
|
|
10
10
|
*/
|
|
11
11
|
export type PortalManifestFn<T extends Partial<PortalManifest>> = (env: RuntimeEnv, args: {
|
|
12
12
|
base: T;
|
|
13
|
-
}) =>
|
|
13
|
+
}) => Promise<RecursivePartial<T> | void> | RecursivePartial<T> | void;
|
|
14
14
|
/**
|
|
15
15
|
* Represents a value that can either be a partial portal manifest object or a function returning such an object.
|
|
16
16
|
*
|
|
@@ -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 {};
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "11.0.0-next.
|
|
1
|
+
export declare const version = "11.0.0-next.14";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-cli",
|
|
3
|
-
"version": "11.0.0-next.
|
|
3
|
+
"version": "11.0.0-next.14",
|
|
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.9",
|
|
65
66
|
"@equinor/fusion-framework-dev-portal": "^1.0.0-next.2",
|
|
66
|
-
"@equinor/fusion-framework-dev-server": "^1.0.0-next.8",
|
|
67
67
|
"@equinor/fusion-imports": "^1.1.1-next.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|