@equinor/fusion-framework-cli 11.0.0-next.4 → 11.0.0-next.5
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 +20 -0
- package/bin/build/bin.js +1 -1
- package/bin/build/cli.js +11 -20
- package/bin/build/{portal-pack-tYUpOtku.js → portal-pack-qpEBTWNW.js} +40 -29
- package/dist/esm/bin/app-dev.js +17 -7
- package/dist/esm/bin/app-dev.js.map +1 -1
- package/dist/esm/bin/portal-dev.js +11 -18
- package/dist/esm/bin/portal-dev.js.map +1 -1
- package/dist/esm/bin/utils/create-dev-server.js +3 -5
- package/dist/esm/bin/utils/create-dev-server.js.map +1 -1
- package/dist/esm/lib/portal/create-portal-manifest.js +5 -5
- package/dist/esm/lib/portal/create-portal-manifest.js.map +1 -1
- package/dist/esm/lib/portal/load-portal-manifest.js +1 -1
- package/dist/esm/lib/portal/load-portal-manifest.js.map +1 -1
- package/dist/esm/lib/portal/portal-manifest.schema.js +1 -1
- package/dist/esm/lib/portal/portal-manifest.schema.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 +3 -3
- package/dist/types/lib/portal/load-portal-manifest.d.ts +3 -3
- package/dist/types/lib/portal/portal-manifest.schema.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +8 -8
|
@@ -7,9 +7,10 @@ import { type UserConfig, type DevServerOptions, type FusionTemplateEnv } from '
|
|
|
7
7
|
* Used for dev server portal routing and config.
|
|
8
8
|
*/
|
|
9
9
|
type PortalManifest = {
|
|
10
|
-
|
|
10
|
+
name: string;
|
|
11
11
|
build: {
|
|
12
|
-
|
|
12
|
+
templateEntry: string;
|
|
13
|
+
assetPath?: string;
|
|
13
14
|
};
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
@@ -35,7 +36,6 @@ export type CreateDevServerOptions = {
|
|
|
35
36
|
manifest: AppManifest;
|
|
36
37
|
config?: ApiAppConfig;
|
|
37
38
|
};
|
|
38
|
-
server?: DevServerOptions['server'];
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* Creates the full dev server configuration for Fusion CLI.
|
|
@@ -28,7 +28,7 @@ export type PortalManifestExport<T extends Partial<PortalManifest>> = T | Portal
|
|
|
28
28
|
* @property path - The file system path to the manifest file.
|
|
29
29
|
* @property extension - The file extension of the manifest file.
|
|
30
30
|
*/
|
|
31
|
-
type
|
|
31
|
+
type LoadPortalManifestResult<T extends Partial<PortalManifest>> = {
|
|
32
32
|
manifest: T;
|
|
33
33
|
path: string;
|
|
34
34
|
extension: string;
|
|
@@ -52,7 +52,7 @@ export type LoadPortalManifestOptions<T extends Partial<PortalManifest>> = {
|
|
|
52
52
|
* @template T - The type of the portal manifest, extending Partial<PortalManifest>. Defaults to PortalManifest.
|
|
53
53
|
* @param env - The runtime environment containing configuration such as the root directory and environment name.
|
|
54
54
|
* @param options - Optional settings for loading the manifest.
|
|
55
|
-
* @returns A promise that resolves to a `
|
|
55
|
+
* @returns A promise that resolves to a `LoadPortalManifestResult<T>` containing the loaded manifest, the file path, and the file extension.
|
|
56
56
|
*
|
|
57
57
|
* This function is the main entry point for loading portal manifest files. It supports merging with a base manifest, custom file name suggestions, and extension filtering.
|
|
58
58
|
*
|
|
@@ -61,5 +61,5 @@ export type LoadPortalManifestOptions<T extends Partial<PortalManifest>> = {
|
|
|
61
61
|
* const result = await loadPortalManifest(env, { base: {}, file: 'custom.manifest' });
|
|
62
62
|
* ```
|
|
63
63
|
*/
|
|
64
|
-
export declare const loadPortalManifest: <T extends Partial<PortalManifest> = PortalManifest>(env: RuntimeEnv, options?: LoadPortalManifestOptions<T>) => Promise<
|
|
64
|
+
export declare const loadPortalManifest: <T extends Partial<PortalManifest> = PortalManifest>(env: RuntimeEnv, options?: LoadPortalManifestOptions<T>) => Promise<LoadPortalManifestResult<T>>;
|
|
65
65
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
/**
|
|
2
3
|
* Zod schema for validating the build section of the PortalManifest object.
|
|
3
4
|
*
|
|
@@ -7,7 +8,6 @@
|
|
|
7
8
|
* - Maintainers: Update this schema if the build contract changes.
|
|
8
9
|
* - This schema is the canonical source for portal build validation and structure.
|
|
9
10
|
*/
|
|
10
|
-
import { z } from 'zod';
|
|
11
11
|
export declare const PortalManifestBuildSchema: z.ZodObject<{
|
|
12
12
|
templateEntry: z.ZodString;
|
|
13
13
|
schemaEntry: z.ZodString;
|
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.5";
|
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.5",
|
|
4
4
|
"homepage": "https://github.com/equinor/fusion-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fusion",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"type-fest": "^4.40.0",
|
|
73
73
|
"vite": "^6.3.5",
|
|
74
74
|
"zod": "^3.25.20",
|
|
75
|
-
"@equinor/fusion-framework-dev-
|
|
76
|
-
"@equinor/fusion-
|
|
77
|
-
"@equinor/fusion-
|
|
75
|
+
"@equinor/fusion-framework-dev-portal": "^1.0.0-next.2",
|
|
76
|
+
"@equinor/fusion-framework-dev-server": "^1.0.0-next.3",
|
|
77
|
+
"@equinor/fusion-imports": "^1.1.1-next.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/adm-zip": "^0.5.0",
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
"@types/node": "^20.11.14",
|
|
83
83
|
"rxjs": "^7.8.1",
|
|
84
84
|
"typescript": "^5.8.2",
|
|
85
|
-
"@equinor/fusion-framework-module": "^4.4.
|
|
85
|
+
"@equinor/fusion-framework-module": "^4.4.3-next.0",
|
|
86
|
+
"@equinor/fusion-framework-module-http": "^6.3.3-next.1",
|
|
86
87
|
"@equinor/fusion-framework-module-app": "^6.1.13",
|
|
87
|
-
"@equinor/fusion-framework-module-
|
|
88
|
-
"@equinor/fusion-framework-module-msal-node": "^0.1.1-next.
|
|
89
|
-
"@equinor/fusion-framework-module-service-discovery": "^8.0.15-next.0"
|
|
88
|
+
"@equinor/fusion-framework-module-service-discovery": "^8.0.15-next.1",
|
|
89
|
+
"@equinor/fusion-framework-module-msal-node": "^0.1.1-next.1"
|
|
90
90
|
},
|
|
91
91
|
"peerDependenciesMeta": {
|
|
92
92
|
"typescript": {
|