@equinor/fusion-framework-cli 11.0.0-next.14 → 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.
Files changed (212) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/bin/build/bin.mjs +1 -0
  3. package/bin/build/cli.mjs +7 -0
  4. package/bin/build/create-auth-client-Ds0jZb_X.js +1 -0
  5. package/bin/build/index-DZEz5jYv.js +1 -0
  6. package/bin/cli.mjs +1 -1
  7. package/dist/esm/lib/app/app-config.js.map +1 -1
  8. package/dist/esm/lib/app/app-manifest.js.map +1 -1
  9. package/dist/esm/lib/app/app-package.js +1 -1
  10. package/dist/esm/lib/app/app-package.js.map +1 -1
  11. package/dist/esm/lib/app/merge-app-config.js +11 -5
  12. package/dist/esm/lib/app/merge-app-config.js.map +1 -1
  13. package/dist/esm/lib/app/merge-app-manifest.js +2 -2
  14. package/dist/esm/lib/app/merge-app-manifest.js.map +1 -1
  15. package/dist/esm/lib/index.js +3 -1
  16. package/dist/esm/lib/index.js.map +1 -1
  17. package/dist/esm/lib/merge-dev-server-config.js +2 -20
  18. package/dist/esm/lib/merge-dev-server-config.js.map +1 -1
  19. package/dist/esm/lib/portal/create-portal-manifest.js.map +1 -1
  20. package/dist/esm/lib/portal/load-portal-manifest.js +2 -2
  21. package/dist/esm/lib/portal/load-portal-manifest.js.map +1 -1
  22. package/dist/esm/lib/portal/load-portal-schema.js.map +1 -1
  23. package/dist/esm/lib/utils/index.js +1 -0
  24. package/dist/esm/lib/utils/index.js.map +1 -1
  25. package/dist/esm/lib/utils/resolve-annotations.js +2 -2
  26. package/dist/esm/lib/utils/resolve-annotations.js.map +1 -1
  27. package/dist/esm/lib/utils/resolve-devops-annotations.js +2 -2
  28. package/dist/esm/lib/utils/resolve-devops-annotations.js.map +1 -1
  29. package/dist/esm/lib/utils/resolve-git-commit-sha.js +1 -0
  30. package/dist/esm/lib/utils/resolve-git-commit-sha.js.map +1 -1
  31. package/dist/esm/lib/utils/resolve-github-annotations.js +2 -2
  32. package/dist/esm/lib/utils/resolve-github-annotations.js.map +1 -1
  33. package/dist/esm/version.js +1 -1
  34. package/dist/types/bin/app-build.d.ts +2 -2
  35. package/dist/types/bin/app-check.d.ts +2 -2
  36. package/dist/types/bin/app-config-publish.d.ts +2 -2
  37. package/dist/types/bin/app-config.d.ts +3 -3
  38. package/dist/types/bin/app-dev.d.ts +1 -1
  39. package/dist/types/bin/app-manifest.d.ts +3 -3
  40. package/dist/types/bin/app-pack.d.ts +1 -1
  41. package/dist/types/bin/app-tag.d.ts +2 -2
  42. package/dist/types/bin/app-upload.d.ts +2 -2
  43. package/dist/types/bin/helpers/load-vite-config.d.ts +1 -2
  44. package/dist/types/bin/helpers/resolve-app-config.d.ts +3 -3
  45. package/dist/types/bin/helpers/resolve-app-manifest.d.ts +3 -3
  46. package/dist/types/bin/helpers/resolve-portal-config.d.ts +3 -3
  47. package/dist/types/bin/helpers/resolve-portal-manifest.d.ts +3 -4
  48. package/dist/types/bin/helpers/resolve-project-package.d.ts +2 -2
  49. package/dist/types/bin/index.d.ts +9 -0
  50. package/dist/types/bin/pack.d.ts +1 -1
  51. package/dist/types/bin/portal-build.d.ts +5 -5
  52. package/dist/types/bin/portal-config-publish.d.ts +2 -2
  53. package/dist/types/bin/portal-config.d.ts +4 -4
  54. package/dist/types/bin/portal-dev.d.ts +2 -2
  55. package/dist/types/bin/portal-manifest.d.ts +4 -4
  56. package/dist/types/bin/portal-pack.d.ts +3 -3
  57. package/dist/types/bin/portal-tag.d.ts +2 -2
  58. package/dist/types/bin/portal-upload.d.ts +2 -2
  59. package/dist/types/bin/utils/create-dev-server.d.ts +1 -1
  60. package/dist/types/cli/main.d.ts +0 -20
  61. package/dist/types/cli/options/env.d.ts +1 -2
  62. package/dist/types/lib/app/app-config.d.ts +2 -2
  63. package/dist/types/lib/app/app-manifest.d.ts +1 -1
  64. package/dist/types/lib/app/merge-app-config.d.ts +1 -1
  65. package/dist/types/lib/app/merge-app-manifest.d.ts +1 -1
  66. package/dist/types/lib/index.d.ts +3 -2
  67. package/dist/types/lib/legacy.d.ts +1 -1
  68. package/dist/types/lib/merge-dev-server-config.d.ts +1 -1
  69. package/dist/types/lib/portal/create-portal-manifest.d.ts +1 -1
  70. package/dist/types/lib/portal/load-portal-manifest.d.ts +1 -1
  71. package/dist/types/lib/portal/load-portal-schema.d.ts +1 -1
  72. package/dist/types/lib/portal/portal-config.d.ts +1 -1
  73. package/dist/types/lib/portal/portal-manifest.schema.d.ts +6 -6
  74. package/dist/types/lib/utils/index.d.ts +1 -0
  75. package/dist/types/lib/utils/resolve-devops-annotations.d.ts +2 -2
  76. package/dist/types/lib/utils/resolve-git-commit-sha.d.ts +1 -0
  77. package/dist/types/lib/utils/resolve-github-annotations.d.ts +2 -2
  78. package/dist/types/version.d.ts +1 -1
  79. package/package.json +68 -27
  80. package/bin/build/bin.js +0 -28
  81. package/bin/build/cli.js +0 -10099
  82. package/bin/build/create-auth-client-DEexcuNX.js +0 -1415
  83. package/bin/build/portal-config-publish--QAre9Id.js +0 -29623
  84. package/dist/esm/bin/app-build.js +0 -34
  85. package/dist/esm/bin/app-build.js.map +0 -1
  86. package/dist/esm/bin/app-check.js +0 -63
  87. package/dist/esm/bin/app-check.js.map +0 -1
  88. package/dist/esm/bin/app-config-publish.js +0 -89
  89. package/dist/esm/bin/app-config-publish.js.map +0 -1
  90. package/dist/esm/bin/app-config.js +0 -48
  91. package/dist/esm/bin/app-config.js.map +0 -1
  92. package/dist/esm/bin/app-dev.js +0 -102
  93. package/dist/esm/bin/app-dev.js.map +0 -1
  94. package/dist/esm/bin/app-manifest.js +0 -38
  95. package/dist/esm/bin/app-manifest.js.map +0 -1
  96. package/dist/esm/bin/app-pack.js +0 -51
  97. package/dist/esm/bin/app-pack.js.map +0 -1
  98. package/dist/esm/bin/app-tag.js +0 -89
  99. package/dist/esm/bin/app-tag.js.map +0 -1
  100. package/dist/esm/bin/app-upload.js +0 -109
  101. package/dist/esm/bin/app-upload.js.map +0 -1
  102. package/dist/esm/bin/helpers/load-bundle-metadata.js +0 -32
  103. package/dist/esm/bin/helpers/load-bundle-metadata.js.map +0 -1
  104. package/dist/esm/bin/helpers/load-vite-config.js +0 -55
  105. package/dist/esm/bin/helpers/load-vite-config.js.map +0 -1
  106. package/dist/esm/bin/helpers/resolve-app-config.js +0 -46
  107. package/dist/esm/bin/helpers/resolve-app-config.js.map +0 -1
  108. package/dist/esm/bin/helpers/resolve-app-manifest.js +0 -55
  109. package/dist/esm/bin/helpers/resolve-app-manifest.js.map +0 -1
  110. package/dist/esm/bin/helpers/resolve-portal-config.js +0 -46
  111. package/dist/esm/bin/helpers/resolve-portal-config.js.map +0 -1
  112. package/dist/esm/bin/helpers/resolve-portal-manifest.js +0 -55
  113. package/dist/esm/bin/helpers/resolve-portal-manifest.js.map +0 -1
  114. package/dist/esm/bin/helpers/resolve-project-package.js +0 -32
  115. package/dist/esm/bin/helpers/resolve-project-package.js.map +0 -1
  116. package/dist/esm/bin/index.js +0 -12
  117. package/dist/esm/bin/index.js.map +0 -1
  118. package/dist/esm/bin/pack.js +0 -70
  119. package/dist/esm/bin/pack.js.map +0 -1
  120. package/dist/esm/bin/portal-build.js +0 -40
  121. package/dist/esm/bin/portal-build.js.map +0 -1
  122. package/dist/esm/bin/portal-config-publish.js +0 -74
  123. package/dist/esm/bin/portal-config-publish.js.map +0 -1
  124. package/dist/esm/bin/portal-config.js +0 -48
  125. package/dist/esm/bin/portal-config.js.map +0 -1
  126. package/dist/esm/bin/portal-dev.js +0 -61
  127. package/dist/esm/bin/portal-dev.js.map +0 -1
  128. package/dist/esm/bin/portal-manifest.js +0 -38
  129. package/dist/esm/bin/portal-manifest.js.map +0 -1
  130. package/dist/esm/bin/portal-pack.js +0 -60
  131. package/dist/esm/bin/portal-pack.js.map +0 -1
  132. package/dist/esm/bin/portal-tag.js +0 -96
  133. package/dist/esm/bin/portal-tag.js.map +0 -1
  134. package/dist/esm/bin/portal-upload.js +0 -99
  135. package/dist/esm/bin/portal-upload.js.map +0 -1
  136. package/dist/esm/bin/utils/ConsoleLogger.js +0 -112
  137. package/dist/esm/bin/utils/ConsoleLogger.js.map +0 -1
  138. package/dist/esm/bin/utils/create-dev-server.js +0 -171
  139. package/dist/esm/bin/utils/create-dev-server.js.map +0 -1
  140. package/dist/esm/bin/utils/format.js +0 -47
  141. package/dist/esm/bin/utils/format.js.map +0 -1
  142. package/dist/esm/bin/utils/index.js +0 -5
  143. package/dist/esm/bin/utils/index.js.map +0 -1
  144. package/dist/esm/bin/utils/spinner.js +0 -142
  145. package/dist/esm/bin/utils/spinner.js.map +0 -1
  146. package/dist/esm/cli/commands/app/alias.js +0 -42
  147. package/dist/esm/cli/commands/app/alias.js.map +0 -1
  148. package/dist/esm/cli/commands/app/build.js +0 -53
  149. package/dist/esm/cli/commands/app/build.js.map +0 -1
  150. package/dist/esm/cli/commands/app/check.js +0 -57
  151. package/dist/esm/cli/commands/app/check.js.map +0 -1
  152. package/dist/esm/cli/commands/app/config.js +0 -103
  153. package/dist/esm/cli/commands/app/config.js.map +0 -1
  154. package/dist/esm/cli/commands/app/dev.js +0 -67
  155. package/dist/esm/cli/commands/app/dev.js.map +0 -1
  156. package/dist/esm/cli/commands/app/index.js +0 -42
  157. package/dist/esm/cli/commands/app/index.js.map +0 -1
  158. package/dist/esm/cli/commands/app/manifest.js +0 -82
  159. package/dist/esm/cli/commands/app/manifest.js.map +0 -1
  160. package/dist/esm/cli/commands/app/pack.js +0 -71
  161. package/dist/esm/cli/commands/app/pack.js.map +0 -1
  162. package/dist/esm/cli/commands/app/publish.js +0 -130
  163. package/dist/esm/cli/commands/app/publish.js.map +0 -1
  164. package/dist/esm/cli/commands/app/tag.js +0 -113
  165. package/dist/esm/cli/commands/app/tag.js.map +0 -1
  166. package/dist/esm/cli/commands/app/upload.js +0 -85
  167. package/dist/esm/cli/commands/app/upload.js.map +0 -1
  168. package/dist/esm/cli/commands/auth/index.js +0 -22
  169. package/dist/esm/cli/commands/auth/index.js.map +0 -1
  170. package/dist/esm/cli/commands/auth/login.js +0 -72
  171. package/dist/esm/cli/commands/auth/login.js.map +0 -1
  172. package/dist/esm/cli/commands/auth/logout.js +0 -58
  173. package/dist/esm/cli/commands/auth/logout.js.map +0 -1
  174. package/dist/esm/cli/commands/auth/token.js +0 -78
  175. package/dist/esm/cli/commands/auth/token.js.map +0 -1
  176. package/dist/esm/cli/commands/disco/index.js +0 -6
  177. package/dist/esm/cli/commands/disco/index.js.map +0 -1
  178. package/dist/esm/cli/commands/disco/resolve.js +0 -58
  179. package/dist/esm/cli/commands/disco/resolve.js.map +0 -1
  180. package/dist/esm/cli/commands/index.js +0 -11
  181. package/dist/esm/cli/commands/index.js.map +0 -1
  182. package/dist/esm/cli/commands/portal/build.js +0 -27
  183. package/dist/esm/cli/commands/portal/build.js.map +0 -1
  184. package/dist/esm/cli/commands/portal/config.js +0 -101
  185. package/dist/esm/cli/commands/portal/config.js.map +0 -1
  186. package/dist/esm/cli/commands/portal/dev.js +0 -27
  187. package/dist/esm/cli/commands/portal/dev.js.map +0 -1
  188. package/dist/esm/cli/commands/portal/index.js +0 -23
  189. package/dist/esm/cli/commands/portal/index.js.map +0 -1
  190. package/dist/esm/cli/commands/portal/manifest.js +0 -48
  191. package/dist/esm/cli/commands/portal/manifest.js.map +0 -1
  192. package/dist/esm/cli/commands/portal/pack.js +0 -40
  193. package/dist/esm/cli/commands/portal/pack.js.map +0 -1
  194. package/dist/esm/cli/commands/portal/publish.js +0 -76
  195. package/dist/esm/cli/commands/portal/publish.js.map +0 -1
  196. package/dist/esm/cli/commands/portal/schema.js +0 -70
  197. package/dist/esm/cli/commands/portal/schema.js.map +0 -1
  198. package/dist/esm/cli/commands/portal/tag.js +0 -73
  199. package/dist/esm/cli/commands/portal/tag.js.map +0 -1
  200. package/dist/esm/cli/commands/portal/upload.js +0 -41
  201. package/dist/esm/cli/commands/portal/upload.js.map +0 -1
  202. package/dist/esm/cli/main.js +0 -52
  203. package/dist/esm/cli/main.js.map +0 -1
  204. package/dist/esm/cli/options/auth.js +0 -96
  205. package/dist/esm/cli/options/auth.js.map +0 -1
  206. package/dist/esm/cli/options/env.js +0 -30
  207. package/dist/esm/cli/options/env.js.map +0 -1
  208. package/dist/esm/lib/framework.node.js +0 -104
  209. package/dist/esm/lib/framework.node.js.map +0 -1
  210. package/dist/esm/version.js.map +0 -1
  211. package/dist/tsconfig.tsbuildinfo +0 -1
  212. /package/dist/types/{lib → bin}/framework.node.d.ts +0 -0
@@ -1,5 +1,5 @@
1
- import type { RuntimeEnv } from '../lib';
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("../lib").ResolvedPackage;
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("../lib/portal").PortalSchema;
53
+ schema: import("@equinor/fusion-framework-cli/portal").PortalSchema;
54
54
  }>;
@@ -1,5 +1,5 @@
1
- import { type ConsoleLogger } from './utils';
2
- import type { FusionFramework } from '../lib/framework.node.js';
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 { type ConsoleLogger } from './utils';
3
- import type { FusionFramework } from '../lib/framework.node.js';
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 { RuntimeEnv } from '../../lib';
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.
@@ -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,5 +1,4 @@
1
- import { FusionEnv } from '../../lib/framework.node.js';
2
- export type { FusionEnv } from '../../lib/framework.node.js';
1
+ import { FusionEnv } from '@equinor/fusion-framework-cli/bin';
3
2
  /**
4
3
  * Creates an environment option for Fusion Framework CLI commands.
5
4
  *
@@ -1,6 +1,6 @@
1
1
  import type z from 'zod';
2
- import type { RuntimeEnv } from '../types';
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 '../types';
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 './app-config';
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 lodash's mergeWith.
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 { ResolvedPackage } from './utils/resolve-package.js';
3
- export { initializeFramework, type FusionFramework } from './framework.node.js';
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("@equinor/fusion-framework-module-app").AppManifest>;
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 '../types';
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.
@@ -1,4 +1,4 @@
1
- import type { RuntimeEnv } from '../types';
1
+ import type { RuntimeEnv } from '@equinor/fusion-framework-cli/lib';
2
2
  /**
3
3
  * Represents a generic portal schema as a record of key-value pairs.
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { RuntimeEnv } from '../types';
1
+ import type { RuntimeEnv } from '@equinor/fusion-framework-cli/lib';
2
2
  /**
3
3
  * Represents the configuration object for a portal.
4
4
  *
@@ -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;
@@ -1,3 +1,4 @@
1
+ export { assert } from './assert.js';
1
2
  export { resolveEntryPoint } from './resolve-source-entry-point.js';
2
3
  export { resolvePackage, type ResolvedPackage } from './resolve-package.js';
3
4
  export { fileExists, fileExistsSync } from './file-exists.js';
@@ -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 resolveAnnotations: () => Record<string, string>;
30
- export default resolveAnnotations;
29
+ export declare const resolveDevopsAnnotations: () => Record<string, string>;
30
+ export default resolveDevopsAnnotations;
@@ -11,3 +11,4 @@
11
11
  * @throws Will throw an error if the `git` command fails or is not available.
12
12
  */
13
13
  export declare const resolveGitCommitSha: (ref?: string) => string | undefined;
14
+ export default resolveGitCommitSha;
@@ -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 resolveAnnotations: () => Record<string, string>;
65
- export default resolveAnnotations;
64
+ export declare const resolveGithubAnnotations: () => Record<string, string>;
65
+ export default resolveGithubAnnotations;
@@ -1 +1 @@
1
- export declare const version = "11.0.0-next.14";
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.14",
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
- "docs",
19
- "CHANGELOG.md",
20
- "README.md"
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,7 +50,43 @@
45
50
  },
46
51
  "./bin": {
47
52
  "types": "./dist/types/bin/index.d.ts",
48
- "import": "./bin/build/bin.js"
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"
66
+ },
67
+ "typesVersions": {
68
+ "*": {
69
+ ".": [
70
+ "dist/types/lib/index.d.ts"
71
+ ],
72
+ "app": [
73
+ "dist/types/lib/app/index.d.ts"
74
+ ],
75
+ "portal": [
76
+ "dist/types/lib/portal/index.d.ts"
77
+ ],
78
+ "dev-server": [
79
+ "dist/types/lib/dev-server.d.ts"
80
+ ],
81
+ "bin": [
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"
89
+ ]
49
90
  }
50
91
  },
51
92
  "repository": {
@@ -54,39 +95,39 @@
54
95
  "directory": "packages/cli"
55
96
  },
56
97
  "dependencies": {
57
- "adm-zip": "^0.5.10",
58
98
  "commander": "^13.0.0",
59
- "keytar": "7.9.0",
99
+ "deepmerge": "^4.3.1",
60
100
  "ora": "^8.0.1",
61
- "vite": "^6.3.5",
62
- "chalk": "^5.3.0",
63
101
  "read-package-up": "^11.0.0",
102
+ "vite": "^6.3.5",
64
103
  "zod": "^3.25.20",
65
- "@equinor/fusion-framework-dev-server": "^1.0.0-next.9",
66
- "@equinor/fusion-framework-dev-portal": "^1.0.0-next.2",
67
- "@equinor/fusion-imports": "^1.1.1-next.0"
104
+ "@equinor/fusion-imports": "^1.1.1-next.1",
105
+ "@equinor/fusion-framework-dev-server": "^1.0.0-next.10",
106
+ "@equinor/fusion-framework-dev-portal": "^1.0.0-next.3"
68
107
  },
69
108
  "devDependencies": {
70
- "ajv": "^8.17.1",
71
- "pretty-bytes": "^7.0.0",
72
- "is-ci": "^4.1.0",
73
- "open": "^10.1.1",
74
- "lodash.mergewith": "^4.6.2",
75
- "type-fest": "^4.40.0",
76
- "rollup": "^4.39.0",
77
109
  "@rollup/plugin-commonjs": "^28.0.3",
78
110
  "@rollup/plugin-json": "^6.1.0",
79
111
  "@rollup/plugin-node-resolve": "^16.0.1",
112
+ "@rollup/plugin-replace": "^6.0.2",
80
113
  "@types/adm-zip": "^0.5.0",
81
- "@types/lodash.mergewith": "^4.6.9",
82
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",
83
123
  "rxjs": "^7.8.1",
124
+ "type-fest": "^4.40.0",
84
125
  "typescript": "^5.8.2",
85
- "@equinor/fusion-framework-module": "^4.4.3-next.1",
86
- "@equinor/fusion-framework-module-app": "^6.1.13",
87
- "@equinor/fusion-framework-module-http": "^6.3.3-next.2",
88
- "@equinor/fusion-framework-module-msal-node": "^0.1.1-next.2",
89
- "@equinor/fusion-framework-module-service-discovery": "^8.0.15-next.2"
126
+ "@equinor/fusion-framework-module": "^4.4.3-next.2",
127
+ "@equinor/fusion-framework-module-http": "^6.3.4-next.0",
128
+ "@equinor/fusion-framework-module-msal-node": "^0.1.1-next.3",
129
+ "@equinor/fusion-framework-module-app": "^6.1.17-next.0",
130
+ "@equinor/fusion-framework-module-service-discovery": "^8.0.18-next.0"
90
131
  },
91
132
  "peerDependenciesMeta": {
92
133
  "typescript": {
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--QAre9Id.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';