@equinor/fusion-framework-cli 11.0.0-next.15 → 11.0.0-next.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.
- package/CHANGELOG.md +26 -0
- package/bin/build/bin.mjs +1 -0
- package/bin/build/cli.mjs +7 -0
- package/bin/build/create-auth-client-Ds0jZb_X.js +1 -0
- package/bin/build/index-DZEz5jYv.js +1 -0
- package/bin/cli.mjs +1 -1
- package/dist/esm/lib/app/app-config.js.map +1 -1
- package/dist/esm/lib/app/app-manifest.js.map +1 -1
- package/dist/esm/lib/app/app-package.js +1 -1
- package/dist/esm/lib/app/app-package.js.map +1 -1
- package/dist/esm/lib/app/merge-app-config.js +11 -5
- package/dist/esm/lib/app/merge-app-config.js.map +1 -1
- package/dist/esm/lib/app/merge-app-manifest.js +2 -2
- package/dist/esm/lib/app/merge-app-manifest.js.map +1 -1
- package/dist/esm/lib/index.js +3 -1
- package/dist/esm/lib/index.js.map +1 -1
- package/dist/esm/lib/merge-dev-server-config.js +2 -20
- package/dist/esm/lib/merge-dev-server-config.js.map +1 -1
- package/dist/esm/lib/portal/create-portal-manifest.js.map +1 -1
- package/dist/esm/lib/portal/load-portal-manifest.js +2 -2
- package/dist/esm/lib/portal/load-portal-manifest.js.map +1 -1
- package/dist/esm/lib/portal/load-portal-schema.js.map +1 -1
- package/dist/esm/lib/utils/index.js +1 -0
- package/dist/esm/lib/utils/index.js.map +1 -1
- package/dist/esm/lib/utils/resolve-annotations.js +2 -2
- package/dist/esm/lib/utils/resolve-annotations.js.map +1 -1
- package/dist/esm/lib/utils/resolve-devops-annotations.js +2 -2
- package/dist/esm/lib/utils/resolve-devops-annotations.js.map +1 -1
- package/dist/esm/lib/utils/resolve-git-commit-sha.js +1 -0
- package/dist/esm/lib/utils/resolve-git-commit-sha.js.map +1 -1
- package/dist/esm/lib/utils/resolve-github-annotations.js +2 -2
- package/dist/esm/lib/utils/resolve-github-annotations.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/bin/app-build.d.ts +2 -2
- package/dist/types/bin/app-check.d.ts +2 -2
- package/dist/types/bin/app-config-publish.d.ts +2 -2
- package/dist/types/bin/app-config.d.ts +3 -3
- package/dist/types/bin/app-dev.d.ts +1 -1
- package/dist/types/bin/app-manifest.d.ts +3 -3
- package/dist/types/bin/app-pack.d.ts +1 -1
- package/dist/types/bin/app-tag.d.ts +2 -2
- package/dist/types/bin/app-upload.d.ts +2 -2
- package/dist/types/bin/helpers/load-vite-config.d.ts +1 -2
- package/dist/types/bin/helpers/resolve-app-config.d.ts +3 -3
- package/dist/types/bin/helpers/resolve-app-manifest.d.ts +3 -3
- package/dist/types/bin/helpers/resolve-portal-config.d.ts +3 -3
- package/dist/types/bin/helpers/resolve-portal-manifest.d.ts +3 -4
- package/dist/types/bin/helpers/resolve-project-package.d.ts +2 -2
- package/dist/types/bin/index.d.ts +9 -0
- package/dist/types/bin/pack.d.ts +1 -1
- package/dist/types/bin/portal-build.d.ts +5 -5
- package/dist/types/bin/portal-config-publish.d.ts +2 -2
- package/dist/types/bin/portal-config.d.ts +4 -4
- package/dist/types/bin/portal-dev.d.ts +2 -2
- package/dist/types/bin/portal-manifest.d.ts +4 -4
- package/dist/types/bin/portal-pack.d.ts +3 -3
- package/dist/types/bin/portal-tag.d.ts +2 -2
- package/dist/types/bin/portal-upload.d.ts +2 -2
- package/dist/types/bin/utils/create-dev-server.d.ts +1 -1
- package/dist/types/cli/main.d.ts +0 -20
- package/dist/types/cli/options/env.d.ts +1 -2
- package/dist/types/lib/app/app-config.d.ts +2 -2
- package/dist/types/lib/app/app-manifest.d.ts +1 -1
- package/dist/types/lib/app/merge-app-config.d.ts +1 -1
- package/dist/types/lib/app/merge-app-manifest.d.ts +1 -1
- package/dist/types/lib/index.d.ts +3 -2
- package/dist/types/lib/legacy.d.ts +1 -1
- package/dist/types/lib/merge-dev-server-config.d.ts +1 -1
- package/dist/types/lib/portal/create-portal-manifest.d.ts +1 -1
- package/dist/types/lib/portal/load-portal-manifest.d.ts +1 -1
- package/dist/types/lib/portal/load-portal-schema.d.ts +1 -1
- package/dist/types/lib/portal/portal-config.d.ts +1 -1
- package/dist/types/lib/portal/portal-manifest.schema.d.ts +6 -6
- package/dist/types/lib/utils/index.d.ts +1 -0
- package/dist/types/lib/utils/resolve-devops-annotations.d.ts +2 -2
- package/dist/types/lib/utils/resolve-git-commit-sha.d.ts +1 -0
- package/dist/types/lib/utils/resolve-github-annotations.d.ts +2 -2
- package/dist/types/version.d.ts +1 -1
- package/package.json +45 -23
- package/bin/build/bin.js +0 -28
- package/bin/build/cli.js +0 -10099
- package/bin/build/create-auth-client-CUsaZifS.js +0 -1415
- package/bin/build/portal-config-publish-8-d0BD44.js +0 -29623
- package/dist/esm/bin/app-build.js +0 -34
- package/dist/esm/bin/app-build.js.map +0 -1
- package/dist/esm/bin/app-check.js +0 -63
- package/dist/esm/bin/app-check.js.map +0 -1
- package/dist/esm/bin/app-config-publish.js +0 -89
- package/dist/esm/bin/app-config-publish.js.map +0 -1
- package/dist/esm/bin/app-config.js +0 -48
- package/dist/esm/bin/app-config.js.map +0 -1
- package/dist/esm/bin/app-dev.js +0 -102
- package/dist/esm/bin/app-dev.js.map +0 -1
- package/dist/esm/bin/app-manifest.js +0 -38
- package/dist/esm/bin/app-manifest.js.map +0 -1
- package/dist/esm/bin/app-pack.js +0 -51
- package/dist/esm/bin/app-pack.js.map +0 -1
- package/dist/esm/bin/app-tag.js +0 -89
- package/dist/esm/bin/app-tag.js.map +0 -1
- package/dist/esm/bin/app-upload.js +0 -109
- package/dist/esm/bin/app-upload.js.map +0 -1
- package/dist/esm/bin/helpers/load-bundle-metadata.js +0 -32
- package/dist/esm/bin/helpers/load-bundle-metadata.js.map +0 -1
- package/dist/esm/bin/helpers/load-vite-config.js +0 -55
- package/dist/esm/bin/helpers/load-vite-config.js.map +0 -1
- package/dist/esm/bin/helpers/resolve-app-config.js +0 -46
- package/dist/esm/bin/helpers/resolve-app-config.js.map +0 -1
- package/dist/esm/bin/helpers/resolve-app-manifest.js +0 -55
- package/dist/esm/bin/helpers/resolve-app-manifest.js.map +0 -1
- package/dist/esm/bin/helpers/resolve-portal-config.js +0 -46
- package/dist/esm/bin/helpers/resolve-portal-config.js.map +0 -1
- package/dist/esm/bin/helpers/resolve-portal-manifest.js +0 -55
- package/dist/esm/bin/helpers/resolve-portal-manifest.js.map +0 -1
- package/dist/esm/bin/helpers/resolve-project-package.js +0 -32
- package/dist/esm/bin/helpers/resolve-project-package.js.map +0 -1
- package/dist/esm/bin/index.js +0 -12
- package/dist/esm/bin/index.js.map +0 -1
- package/dist/esm/bin/pack.js +0 -70
- package/dist/esm/bin/pack.js.map +0 -1
- package/dist/esm/bin/portal-build.js +0 -40
- package/dist/esm/bin/portal-build.js.map +0 -1
- package/dist/esm/bin/portal-config-publish.js +0 -74
- package/dist/esm/bin/portal-config-publish.js.map +0 -1
- package/dist/esm/bin/portal-config.js +0 -48
- package/dist/esm/bin/portal-config.js.map +0 -1
- package/dist/esm/bin/portal-dev.js +0 -61
- package/dist/esm/bin/portal-dev.js.map +0 -1
- package/dist/esm/bin/portal-manifest.js +0 -38
- package/dist/esm/bin/portal-manifest.js.map +0 -1
- package/dist/esm/bin/portal-pack.js +0 -60
- package/dist/esm/bin/portal-pack.js.map +0 -1
- package/dist/esm/bin/portal-tag.js +0 -96
- package/dist/esm/bin/portal-tag.js.map +0 -1
- package/dist/esm/bin/portal-upload.js +0 -99
- package/dist/esm/bin/portal-upload.js.map +0 -1
- package/dist/esm/bin/utils/ConsoleLogger.js +0 -112
- package/dist/esm/bin/utils/ConsoleLogger.js.map +0 -1
- package/dist/esm/bin/utils/create-dev-server.js +0 -171
- package/dist/esm/bin/utils/create-dev-server.js.map +0 -1
- package/dist/esm/bin/utils/format.js +0 -47
- package/dist/esm/bin/utils/format.js.map +0 -1
- package/dist/esm/bin/utils/index.js +0 -5
- package/dist/esm/bin/utils/index.js.map +0 -1
- package/dist/esm/bin/utils/spinner.js +0 -142
- package/dist/esm/bin/utils/spinner.js.map +0 -1
- package/dist/esm/cli/commands/app/alias.js +0 -42
- package/dist/esm/cli/commands/app/alias.js.map +0 -1
- package/dist/esm/cli/commands/app/build.js +0 -53
- package/dist/esm/cli/commands/app/build.js.map +0 -1
- package/dist/esm/cli/commands/app/check.js +0 -57
- package/dist/esm/cli/commands/app/check.js.map +0 -1
- package/dist/esm/cli/commands/app/config.js +0 -103
- package/dist/esm/cli/commands/app/config.js.map +0 -1
- package/dist/esm/cli/commands/app/dev.js +0 -67
- package/dist/esm/cli/commands/app/dev.js.map +0 -1
- package/dist/esm/cli/commands/app/index.js +0 -42
- package/dist/esm/cli/commands/app/index.js.map +0 -1
- package/dist/esm/cli/commands/app/manifest.js +0 -82
- package/dist/esm/cli/commands/app/manifest.js.map +0 -1
- package/dist/esm/cli/commands/app/pack.js +0 -71
- package/dist/esm/cli/commands/app/pack.js.map +0 -1
- package/dist/esm/cli/commands/app/publish.js +0 -130
- package/dist/esm/cli/commands/app/publish.js.map +0 -1
- package/dist/esm/cli/commands/app/tag.js +0 -113
- package/dist/esm/cli/commands/app/tag.js.map +0 -1
- package/dist/esm/cli/commands/app/upload.js +0 -85
- package/dist/esm/cli/commands/app/upload.js.map +0 -1
- package/dist/esm/cli/commands/auth/index.js +0 -22
- package/dist/esm/cli/commands/auth/index.js.map +0 -1
- package/dist/esm/cli/commands/auth/login.js +0 -72
- package/dist/esm/cli/commands/auth/login.js.map +0 -1
- package/dist/esm/cli/commands/auth/logout.js +0 -58
- package/dist/esm/cli/commands/auth/logout.js.map +0 -1
- package/dist/esm/cli/commands/auth/token.js +0 -78
- package/dist/esm/cli/commands/auth/token.js.map +0 -1
- package/dist/esm/cli/commands/disco/index.js +0 -6
- package/dist/esm/cli/commands/disco/index.js.map +0 -1
- package/dist/esm/cli/commands/disco/resolve.js +0 -58
- package/dist/esm/cli/commands/disco/resolve.js.map +0 -1
- package/dist/esm/cli/commands/index.js +0 -11
- package/dist/esm/cli/commands/index.js.map +0 -1
- package/dist/esm/cli/commands/portal/build.js +0 -27
- package/dist/esm/cli/commands/portal/build.js.map +0 -1
- package/dist/esm/cli/commands/portal/config.js +0 -101
- package/dist/esm/cli/commands/portal/config.js.map +0 -1
- package/dist/esm/cli/commands/portal/dev.js +0 -27
- package/dist/esm/cli/commands/portal/dev.js.map +0 -1
- package/dist/esm/cli/commands/portal/index.js +0 -23
- package/dist/esm/cli/commands/portal/index.js.map +0 -1
- package/dist/esm/cli/commands/portal/manifest.js +0 -48
- package/dist/esm/cli/commands/portal/manifest.js.map +0 -1
- package/dist/esm/cli/commands/portal/pack.js +0 -40
- package/dist/esm/cli/commands/portal/pack.js.map +0 -1
- package/dist/esm/cli/commands/portal/publish.js +0 -76
- package/dist/esm/cli/commands/portal/publish.js.map +0 -1
- package/dist/esm/cli/commands/portal/schema.js +0 -70
- package/dist/esm/cli/commands/portal/schema.js.map +0 -1
- package/dist/esm/cli/commands/portal/tag.js +0 -73
- package/dist/esm/cli/commands/portal/tag.js.map +0 -1
- package/dist/esm/cli/commands/portal/upload.js +0 -41
- package/dist/esm/cli/commands/portal/upload.js.map +0 -1
- package/dist/esm/cli/main.js +0 -52
- package/dist/esm/cli/main.js.map +0 -1
- package/dist/esm/cli/options/auth.js +0 -96
- package/dist/esm/cli/options/auth.js.map +0 -1
- package/dist/esm/cli/options/env.js +0 -30
- package/dist/esm/cli/options/env.js.map +0 -1
- package/dist/esm/lib/framework.node.js +0 -104
- package/dist/esm/lib/framework.node.js.map +0 -1
- package/dist/esm/version.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/dist/types/{lib → bin}/framework.node.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RuntimeEnv } from '
|
|
2
|
-
import type { ConsoleLogger } from './utils';
|
|
1
|
+
import type { RuntimeEnv } from '@equinor/fusion-framework-cli/lib';
|
|
2
|
+
import type { ConsoleLogger } from './utils/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Options for resolving the portal manifest.
|
|
5
5
|
*
|
|
@@ -43,18 +43,18 @@ export declare const loadPortalManifest: (options: ResolvePortalManifestOptions)
|
|
|
43
43
|
allowedExtensions: string[];
|
|
44
44
|
templateEntry: string;
|
|
45
45
|
schemaEntry: string;
|
|
46
|
-
config?: Record<string, unknown> | undefined;
|
|
47
46
|
assetPath?: string | undefined;
|
|
48
47
|
githubRepo?: string | undefined;
|
|
49
48
|
projectPage?: string | undefined;
|
|
50
49
|
annotations?: Record<string, string> | undefined;
|
|
50
|
+
config?: Record<string, unknown> | undefined;
|
|
51
51
|
schema?: Record<string, unknown> | undefined;
|
|
52
52
|
};
|
|
53
53
|
name: string;
|
|
54
54
|
displayName?: string | undefined;
|
|
55
55
|
description?: string | undefined;
|
|
56
56
|
};
|
|
57
|
-
pkg: import("
|
|
57
|
+
pkg: import("@equinor/fusion-framework-cli/lib").ResolvedPackage;
|
|
58
58
|
env: RuntimeEnv;
|
|
59
59
|
}>;
|
|
60
60
|
export default loadPortalManifest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConsoleLogger } from './utils/ConsoleLogger';
|
|
1
|
+
import type { ConsoleLogger } from './utils/ConsoleLogger.js';
|
|
2
2
|
/**
|
|
3
3
|
* Options for bundling a portal into an archive for distribution or deployment.
|
|
4
4
|
*
|
|
@@ -39,16 +39,16 @@ export declare const bundlePortal: (options: BundlePortalOptions) => Promise<{
|
|
|
39
39
|
allowedExtensions: string[];
|
|
40
40
|
templateEntry: string;
|
|
41
41
|
schemaEntry: string;
|
|
42
|
-
config?: Record<string, unknown> | undefined;
|
|
43
42
|
assetPath?: string | undefined;
|
|
44
43
|
githubRepo?: string | undefined;
|
|
45
44
|
projectPage?: string | undefined;
|
|
46
45
|
annotations?: Record<string, string> | undefined;
|
|
46
|
+
config?: Record<string, unknown> | undefined;
|
|
47
47
|
schema?: Record<string, unknown> | undefined;
|
|
48
48
|
};
|
|
49
49
|
name: string;
|
|
50
50
|
displayName?: string | undefined;
|
|
51
51
|
description?: string | undefined;
|
|
52
52
|
};
|
|
53
|
-
schema: import("
|
|
53
|
+
schema: import("@equinor/fusion-framework-cli/portal").PortalSchema;
|
|
54
54
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type
|
|
1
|
+
import type { FusionFramework } from './framework.node.js';
|
|
2
|
+
import { type ConsoleLogger } from './utils/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Allowed tags for portal versions in the portal service.
|
|
5
5
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import AdmZip from 'adm-zip';
|
|
2
|
-
import {
|
|
3
|
-
import type {
|
|
2
|
+
import type { FusionFramework } from './framework.node.js';
|
|
3
|
+
import type { ConsoleLogger } from './utils/ConsoleLogger.js';
|
|
4
4
|
/**
|
|
5
5
|
* Options for uploading a portal bundle to the portal service.
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AppManifest } from '@equinor/fusion-framework-module-app';
|
|
2
2
|
import type { ApiAppConfig } from '@equinor/fusion-framework-module-app/schemas.js';
|
|
3
|
-
import type
|
|
3
|
+
import { type RuntimeEnv } from '@equinor/fusion-framework-cli/lib';
|
|
4
4
|
import { type UserConfig, type DevServerOptions, type FusionTemplateEnv } from '@equinor/fusion-framework-dev-server';
|
|
5
5
|
/**
|
|
6
6
|
* PortalManifest describes the minimal structure required for a portal manifest.
|
package/dist/types/cli/main.d.ts
CHANGED
|
@@ -1,21 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Entry point for the Fusion Framework CLI.
|
|
3
|
-
*
|
|
4
|
-
* This file sets up the CLI program, loads the package metadata, and registers all available commands.
|
|
5
|
-
*
|
|
6
|
-
* Key responsibilities:
|
|
7
|
-
* - Locates the CLI's root directory and package.json using read-package-up.
|
|
8
|
-
* - Sets the CLI_BIN environment variable for internal use.
|
|
9
|
-
* - Initializes the Commander.js program with name, version, and description from package.json.
|
|
10
|
-
* - Registers all CLI commands via the registerCommands function.
|
|
11
|
-
* - Parses process arguments and starts the CLI.
|
|
12
|
-
*
|
|
13
|
-
* Maintenance notes:
|
|
14
|
-
* - To add new commands, update the registerCommands module.
|
|
15
|
-
* - To change CLI metadata (name, version, description), update package.json.
|
|
16
|
-
* - This file should remain minimal and only handle top-level CLI setup logic.
|
|
17
|
-
* - For troubleshooting, ensure the CLI_BIN path is set correctly and that package.json is accessible.
|
|
18
|
-
*
|
|
19
|
-
* For more details, see the Fusion Framework CLI documentation or contact the maintainers.
|
|
20
|
-
*/
|
|
21
1
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type z from 'zod';
|
|
2
|
-
import type { RuntimeEnv } from '
|
|
3
|
-
import type { ApiAppConfig, ApiAppConfigSchema } from './schemas';
|
|
2
|
+
import type { RuntimeEnv } from '@equinor/fusion-framework-cli/lib';
|
|
3
|
+
import type { ApiAppConfig, ApiAppConfigSchema } from './schemas.js';
|
|
4
4
|
export type { ApiAppConfig as AppConfig } from './schemas.js';
|
|
5
5
|
export { mergeAppConfig } from './merge-app-config.js';
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AppManifest } from '@equinor/fusion-framework-module-app';
|
|
2
|
-
import type { RuntimeEnv } from '
|
|
2
|
+
import type { RuntimeEnv } from '@equinor/fusion-framework-cli/lib';
|
|
3
3
|
/**
|
|
4
4
|
* Type representing the application manifest structure used by the Fusion Framework.
|
|
5
5
|
* Imported from the '@equinor/fusion-framework-module-app' package for consistency across modules.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppConfig } from '
|
|
1
|
+
import type { AppConfig } from '@equinor/fusion-framework-cli/app';
|
|
2
2
|
/**
|
|
3
3
|
* Merges a base application configuration object with an overrides object,
|
|
4
4
|
* returning a new configuration object. If the `scopes` property is present
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AppManifest } from '@equinor/fusion-framework-module-app';
|
|
2
2
|
import type { RecursivePartial } from '../utils/types.js';
|
|
3
3
|
/**
|
|
4
|
-
* Deeply merges two application manifests using
|
|
4
|
+
* Deeply merges two application manifests using deepmerge.
|
|
5
5
|
*
|
|
6
6
|
* This utility is intended for combining a base manifest with an override manifest,
|
|
7
7
|
* supporting recursive merging of nested properties. It is commonly used in scenarios
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { RuntimeEnv } from './types.js';
|
|
2
|
-
export type
|
|
3
|
-
export {
|
|
2
|
+
export { resolvePackage, type ResolvedPackage } from './utils/resolve-package.js';
|
|
3
|
+
export { resolveEntryPoint } from './utils/resolve-source-entry-point.js';
|
|
4
|
+
export { loadDevServerConfig } from './load-dev-server-config.js';
|
|
4
5
|
export { defineAppConfig, defineAppManifest } from './legacy.js';
|
|
@@ -21,4 +21,4 @@ export declare const defineAppConfig: (...args: Parameters<typeof _defineConfig>
|
|
|
21
21
|
*
|
|
22
22
|
* @param args - Arguments passed to the new defineAppManifest function.
|
|
23
23
|
*/
|
|
24
|
-
export declare const defineAppManifest: (...args: Parameters<typeof _defineManifest>) => import("./app/app-manifest.js").AppManifestFn<import("
|
|
24
|
+
export declare const defineAppManifest: (...args: Parameters<typeof _defineManifest>) => import("./app/app-manifest.js").AppManifestFn<import("node_modules/@equinor/fusion-framework-module-app/dist/types/types.js").AppManifest>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DevServerOptions } from '@equinor/fusion-framework-dev-server';
|
|
2
|
-
import type { RecursivePartial } from './utils/types';
|
|
2
|
+
import type { RecursivePartial } from './utils/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Merges a base development server configuration with an overrides object.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PackageJson } from 'type-fest';
|
|
2
|
-
import type { RuntimeEnv } from '
|
|
2
|
+
import type { RuntimeEnv } from '@equinor/fusion-framework-cli/lib';
|
|
3
3
|
import type { PortalManifest } from './portal-manifest.js';
|
|
4
4
|
/**
|
|
5
5
|
* Creates a `PortalManifest` object from the provided `package.json` data and runtime environment.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RecursivePartial, RuntimeEnv } from '../types';
|
|
1
|
+
import type { RecursivePartial, RuntimeEnv } from '../types.js';
|
|
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.
|
|
@@ -28,11 +28,11 @@ export declare const PortalManifestBuildSchema: z.ZodObject<{
|
|
|
28
28
|
allowedExtensions: string[];
|
|
29
29
|
templateEntry: string;
|
|
30
30
|
schemaEntry: string;
|
|
31
|
-
config?: Record<string, unknown> | undefined;
|
|
32
31
|
assetPath?: string | undefined;
|
|
33
32
|
githubRepo?: string | undefined;
|
|
34
33
|
projectPage?: string | undefined;
|
|
35
34
|
annotations?: Record<string, string> | undefined;
|
|
35
|
+
config?: Record<string, unknown> | undefined;
|
|
36
36
|
schema?: Record<string, unknown> | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
version: string;
|
|
@@ -41,11 +41,11 @@ export declare const PortalManifestBuildSchema: z.ZodObject<{
|
|
|
41
41
|
allowedExtensions: string[];
|
|
42
42
|
templateEntry: string;
|
|
43
43
|
schemaEntry: string;
|
|
44
|
-
config?: Record<string, unknown> | undefined;
|
|
45
44
|
assetPath?: string | undefined;
|
|
46
45
|
githubRepo?: string | undefined;
|
|
47
46
|
projectPage?: string | undefined;
|
|
48
47
|
annotations?: Record<string, string> | undefined;
|
|
48
|
+
config?: Record<string, unknown> | undefined;
|
|
49
49
|
schema?: Record<string, unknown> | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
/**
|
|
@@ -82,11 +82,11 @@ export declare const PortalManifestSchema: z.ZodObject<{
|
|
|
82
82
|
allowedExtensions: string[];
|
|
83
83
|
templateEntry: string;
|
|
84
84
|
schemaEntry: string;
|
|
85
|
-
config?: Record<string, unknown> | undefined;
|
|
86
85
|
assetPath?: string | undefined;
|
|
87
86
|
githubRepo?: string | undefined;
|
|
88
87
|
projectPage?: string | undefined;
|
|
89
88
|
annotations?: Record<string, string> | undefined;
|
|
89
|
+
config?: Record<string, unknown> | undefined;
|
|
90
90
|
schema?: Record<string, unknown> | undefined;
|
|
91
91
|
}, {
|
|
92
92
|
version: string;
|
|
@@ -95,11 +95,11 @@ export declare const PortalManifestSchema: z.ZodObject<{
|
|
|
95
95
|
allowedExtensions: string[];
|
|
96
96
|
templateEntry: string;
|
|
97
97
|
schemaEntry: string;
|
|
98
|
-
config?: Record<string, unknown> | undefined;
|
|
99
98
|
assetPath?: string | undefined;
|
|
100
99
|
githubRepo?: string | undefined;
|
|
101
100
|
projectPage?: string | undefined;
|
|
102
101
|
annotations?: Record<string, string> | undefined;
|
|
102
|
+
config?: Record<string, unknown> | undefined;
|
|
103
103
|
schema?: Record<string, unknown> | undefined;
|
|
104
104
|
}>;
|
|
105
105
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -110,11 +110,11 @@ export declare const PortalManifestSchema: z.ZodObject<{
|
|
|
110
110
|
allowedExtensions: string[];
|
|
111
111
|
templateEntry: string;
|
|
112
112
|
schemaEntry: string;
|
|
113
|
-
config?: Record<string, unknown> | undefined;
|
|
114
113
|
assetPath?: string | undefined;
|
|
115
114
|
githubRepo?: string | undefined;
|
|
116
115
|
projectPage?: string | undefined;
|
|
117
116
|
annotations?: Record<string, string> | undefined;
|
|
117
|
+
config?: Record<string, unknown> | undefined;
|
|
118
118
|
schema?: Record<string, unknown> | undefined;
|
|
119
119
|
};
|
|
120
120
|
name: string;
|
|
@@ -128,11 +128,11 @@ export declare const PortalManifestSchema: z.ZodObject<{
|
|
|
128
128
|
allowedExtensions: string[];
|
|
129
129
|
templateEntry: string;
|
|
130
130
|
schemaEntry: string;
|
|
131
|
-
config?: Record<string, unknown> | undefined;
|
|
132
131
|
assetPath?: string | undefined;
|
|
133
132
|
githubRepo?: string | undefined;
|
|
134
133
|
projectPage?: string | undefined;
|
|
135
134
|
annotations?: Record<string, string> | undefined;
|
|
135
|
+
config?: Record<string, unknown> | undefined;
|
|
136
136
|
schema?: Record<string, unknown> | undefined;
|
|
137
137
|
};
|
|
138
138
|
name: string;
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
* - To add more annotations, extract additional environment variables as needed and include them in the returned object.
|
|
27
27
|
* - For custom pipelines or self-hosted agents, verify that all required environment variables are available.
|
|
28
28
|
*/
|
|
29
|
-
export declare const
|
|
30
|
-
export default
|
|
29
|
+
export declare const resolveDevopsAnnotations: () => Record<string, string>;
|
|
30
|
+
export default resolveDevopsAnnotations;
|
|
@@ -61,5 +61,5 @@ export interface GithubEventPayload {
|
|
|
61
61
|
* - To add more annotations, extract additional environment variables as needed and include them in the returned object.
|
|
62
62
|
* - For custom workflows or self-hosted runners, verify that all required environment variables are available.
|
|
63
63
|
*/
|
|
64
|
-
export declare const
|
|
65
|
-
export default
|
|
64
|
+
export declare const resolveGithubAnnotations: () => Record<string, string>;
|
|
65
|
+
export default resolveGithubAnnotations;
|
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.16";
|
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.16",
|
|
4
4
|
"homepage": "https://github.com/equinor/fusion-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fusion",
|
|
@@ -12,12 +12,17 @@
|
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=20.0.0"
|
|
17
|
+
},
|
|
15
18
|
"files": [
|
|
16
|
-
"bin",
|
|
17
|
-
"dist",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
19
|
+
"./bin",
|
|
20
|
+
"./dist/esm/lib",
|
|
21
|
+
"./dist/esm/version.js",
|
|
22
|
+
"./dist/types",
|
|
23
|
+
"./docs",
|
|
24
|
+
"./CHANGELOG.md",
|
|
25
|
+
"./README.md"
|
|
21
26
|
],
|
|
22
27
|
"type": "module",
|
|
23
28
|
"bin": {
|
|
@@ -45,8 +50,19 @@
|
|
|
45
50
|
},
|
|
46
51
|
"./bin": {
|
|
47
52
|
"types": "./dist/types/bin/index.d.ts",
|
|
48
|
-
"import": "./bin/build/bin.
|
|
49
|
-
}
|
|
53
|
+
"import": "./bin/build/bin.mjs"
|
|
54
|
+
},
|
|
55
|
+
"./lib": {
|
|
56
|
+
"types": "./dist/types/lib/index.d.ts",
|
|
57
|
+
"import": "./dist/esm/lib/index.js"
|
|
58
|
+
},
|
|
59
|
+
"./utils": {
|
|
60
|
+
"types": "./dist/types/lib/utils/index.d.ts",
|
|
61
|
+
"import": "./dist/esm/lib/utils/index.js"
|
|
62
|
+
},
|
|
63
|
+
"./package.json": "./package.json",
|
|
64
|
+
"./README.md": "./README.md",
|
|
65
|
+
"./CHANGELOG.md": "./CHANGELOG.md"
|
|
50
66
|
},
|
|
51
67
|
"typesVersions": {
|
|
52
68
|
"*": {
|
|
@@ -64,6 +80,12 @@
|
|
|
64
80
|
],
|
|
65
81
|
"bin": [
|
|
66
82
|
"dist/types/bin/index.d.ts"
|
|
83
|
+
],
|
|
84
|
+
"lib": [
|
|
85
|
+
"dist/types/lib/index.d.ts"
|
|
86
|
+
],
|
|
87
|
+
"utils": [
|
|
88
|
+
"dist/types/lib/utils/index.d.ts"
|
|
67
89
|
]
|
|
68
90
|
}
|
|
69
91
|
},
|
|
@@ -73,38 +95,38 @@
|
|
|
73
95
|
"directory": "packages/cli"
|
|
74
96
|
},
|
|
75
97
|
"dependencies": {
|
|
76
|
-
"adm-zip": "^0.5.10",
|
|
77
98
|
"commander": "^13.0.0",
|
|
78
|
-
"
|
|
99
|
+
"deepmerge": "^4.3.1",
|
|
79
100
|
"ora": "^8.0.1",
|
|
80
|
-
"vite": "^6.3.5",
|
|
81
|
-
"chalk": "^5.3.0",
|
|
82
101
|
"read-package-up": "^11.0.0",
|
|
102
|
+
"vite": "^6.3.5",
|
|
83
103
|
"zod": "^3.25.20",
|
|
84
|
-
"@equinor/fusion-framework-dev-portal": "^1.0.0-next.3",
|
|
85
104
|
"@equinor/fusion-imports": "^1.1.1-next.1",
|
|
86
|
-
"@equinor/fusion-framework-dev-server": "^1.0.0-next.10"
|
|
105
|
+
"@equinor/fusion-framework-dev-server": "^1.0.0-next.10",
|
|
106
|
+
"@equinor/fusion-framework-dev-portal": "^1.0.0-next.3"
|
|
87
107
|
},
|
|
88
108
|
"devDependencies": {
|
|
89
|
-
"ajv": "^8.17.1",
|
|
90
|
-
"pretty-bytes": "^7.0.0",
|
|
91
|
-
"is-ci": "^4.1.0",
|
|
92
|
-
"open": "^10.1.1",
|
|
93
|
-
"lodash.mergewith": "^4.6.2",
|
|
94
|
-
"type-fest": "^4.40.0",
|
|
95
|
-
"rollup": "^4.39.0",
|
|
96
109
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
97
110
|
"@rollup/plugin-json": "^6.1.0",
|
|
98
111
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
112
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
99
113
|
"@types/adm-zip": "^0.5.0",
|
|
100
|
-
"@types/lodash.mergewith": "^4.6.9",
|
|
101
114
|
"@types/node": "^20.11.14",
|
|
115
|
+
"adm-zip": "^0.5.10",
|
|
116
|
+
"ajv": "^8.17.1",
|
|
117
|
+
"chalk": "^5.3.0",
|
|
118
|
+
"is-ci": "^4.1.0",
|
|
119
|
+
"open": "^10.1.1",
|
|
120
|
+
"pretty-bytes": "^7.0.0",
|
|
121
|
+
"rollup": "^4.39.0",
|
|
122
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
102
123
|
"rxjs": "^7.8.1",
|
|
124
|
+
"type-fest": "^4.40.0",
|
|
103
125
|
"typescript": "^5.8.2",
|
|
104
126
|
"@equinor/fusion-framework-module": "^4.4.3-next.2",
|
|
105
|
-
"@equinor/fusion-framework-module-app": "^6.1.17-next.0",
|
|
106
127
|
"@equinor/fusion-framework-module-http": "^6.3.4-next.0",
|
|
107
128
|
"@equinor/fusion-framework-module-msal-node": "^0.1.1-next.3",
|
|
129
|
+
"@equinor/fusion-framework-module-app": "^6.1.17-next.0",
|
|
108
130
|
"@equinor/fusion-framework-module-service-discovery": "^8.0.18-next.0"
|
|
109
131
|
},
|
|
110
132
|
"peerDependenciesMeta": {
|
package/bin/build/bin.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export { b as buildApplication, c as buildPortal, a as bundleApp, d as bundlePortal, g as generateApplicationConfig, e as generatePortalConfig, l as loadPortalManifest, h as pack, p as publishAppConfig, f as publishPortalConfig, s as startAppDevServer } from './portal-config-publish-8-d0BD44.js';
|
|
2
|
-
import 'vite';
|
|
3
|
-
import 'chalk';
|
|
4
|
-
import '@equinor/fusion-imports';
|
|
5
|
-
import '@equinor/fusion-framework-dev-server';
|
|
6
|
-
import 'node:fs';
|
|
7
|
-
import 'node:fs/promises';
|
|
8
|
-
import 'node:path';
|
|
9
|
-
import 'read-package-up';
|
|
10
|
-
import 'node:url';
|
|
11
|
-
import 'node:assert';
|
|
12
|
-
import 'node:child_process';
|
|
13
|
-
import 'zod';
|
|
14
|
-
import 'adm-zip';
|
|
15
|
-
import 'http';
|
|
16
|
-
import 'https';
|
|
17
|
-
import 'crypto';
|
|
18
|
-
import 'buffer';
|
|
19
|
-
import 'stream';
|
|
20
|
-
import 'util';
|
|
21
|
-
import 'fs';
|
|
22
|
-
import 'path';
|
|
23
|
-
import 'node:http';
|
|
24
|
-
import 'node:process';
|
|
25
|
-
import 'node:buffer';
|
|
26
|
-
import 'node:util';
|
|
27
|
-
import 'node:os';
|
|
28
|
-
import 'ora';
|