@equinor/fusion-framework-cli 11.0.0-next.8 → 11.0.1

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 (226) hide show
  1. package/CHANGELOG.md +71 -94
  2. package/README.md +98 -104
  3. package/bin/build/bin.mjs +1 -0
  4. package/bin/build/cli.mjs +7 -0
  5. package/bin/cli.mjs +1 -1
  6. package/dist/esm/lib/app/app-config.js.map +1 -1
  7. package/dist/esm/lib/app/app-manifest.js.map +1 -1
  8. package/dist/esm/lib/app/app-package.js +1 -1
  9. package/dist/esm/lib/app/app-package.js.map +1 -1
  10. package/dist/esm/lib/app/merge-app-config.js +11 -5
  11. package/dist/esm/lib/app/merge-app-config.js.map +1 -1
  12. package/dist/esm/lib/app/merge-app-manifest.js +2 -2
  13. package/dist/esm/lib/app/merge-app-manifest.js.map +1 -1
  14. package/dist/esm/lib/index.js +3 -1
  15. package/dist/esm/lib/index.js.map +1 -1
  16. package/dist/esm/lib/load-dev-server-config.js +7 -3
  17. package/dist/esm/lib/load-dev-server-config.js.map +1 -1
  18. package/dist/esm/lib/merge-dev-server-config.js +24 -16
  19. package/dist/esm/lib/merge-dev-server-config.js.map +1 -1
  20. package/dist/esm/lib/portal/create-portal-manifest.js.map +1 -1
  21. package/dist/esm/lib/portal/load-portal-config.js +1 -1
  22. package/dist/esm/lib/portal/load-portal-config.js.map +1 -1
  23. package/dist/esm/lib/portal/load-portal-manifest.js +8 -4
  24. package/dist/esm/lib/portal/load-portal-manifest.js.map +1 -1
  25. package/dist/esm/lib/portal/load-portal-schema.js.map +1 -1
  26. package/dist/esm/lib/portal/portal-config.js.map +1 -1
  27. package/dist/esm/lib/utils/index.js +1 -0
  28. package/dist/esm/lib/utils/index.js.map +1 -1
  29. package/dist/esm/lib/utils/resolve-annotations.js +48 -5
  30. package/dist/esm/lib/utils/resolve-annotations.js.map +1 -1
  31. package/dist/esm/lib/utils/resolve-devops-annotations.js +7 -3
  32. package/dist/esm/lib/utils/resolve-devops-annotations.js.map +1 -1
  33. package/dist/esm/lib/utils/resolve-git-commit-sha.js +1 -0
  34. package/dist/esm/lib/utils/resolve-git-commit-sha.js.map +1 -1
  35. package/dist/esm/lib/utils/resolve-github-annotations.js +16 -72
  36. package/dist/esm/lib/utils/resolve-github-annotations.js.map +1 -1
  37. package/dist/esm/version.js +1 -1
  38. package/dist/types/bin/app-build.d.ts +2 -2
  39. package/dist/types/bin/app-check.d.ts +2 -2
  40. package/dist/types/bin/app-config-publish.d.ts +2 -2
  41. package/dist/types/bin/app-config.d.ts +3 -3
  42. package/dist/types/bin/app-dev.d.ts +1 -1
  43. package/dist/types/bin/app-manifest.d.ts +3 -3
  44. package/dist/types/bin/app-pack.d.ts +1 -1
  45. package/dist/types/bin/app-tag.d.ts +3 -3
  46. package/dist/types/bin/app-upload.d.ts +2 -2
  47. package/dist/types/bin/helpers/load-vite-config.d.ts +1 -2
  48. package/dist/types/bin/helpers/resolve-app-config.d.ts +3 -3
  49. package/dist/types/bin/helpers/resolve-app-manifest.d.ts +3 -3
  50. package/dist/types/bin/helpers/resolve-portal-config.d.ts +3 -3
  51. package/dist/types/bin/helpers/resolve-portal-manifest.d.ts +3 -4
  52. package/dist/types/bin/helpers/resolve-project-package.d.ts +2 -2
  53. package/dist/types/bin/index.d.ts +9 -0
  54. package/dist/types/bin/pack.d.ts +1 -1
  55. package/dist/types/bin/portal-build.d.ts +5 -5
  56. package/dist/types/bin/portal-config-publish.d.ts +2 -2
  57. package/dist/types/bin/portal-config.d.ts +4 -4
  58. package/dist/types/bin/portal-dev.d.ts +2 -2
  59. package/dist/types/bin/portal-manifest.d.ts +4 -4
  60. package/dist/types/bin/portal-pack.d.ts +3 -3
  61. package/dist/types/bin/portal-tag.d.ts +2 -2
  62. package/dist/types/bin/portal-upload.d.ts +2 -2
  63. package/dist/types/bin/utils/create-dev-server.d.ts +2 -2
  64. package/dist/types/cli/commands/disco/resolve.d.ts +1 -1
  65. package/dist/types/cli/main.d.ts +0 -20
  66. package/dist/types/cli/options/env.d.ts +1 -2
  67. package/dist/types/lib/app/app-config.d.ts +2 -2
  68. package/dist/types/lib/app/app-manifest.d.ts +1 -1
  69. package/dist/types/lib/app/merge-app-config.d.ts +1 -1
  70. package/dist/types/lib/app/merge-app-manifest.d.ts +1 -1
  71. package/dist/types/lib/index.d.ts +3 -2
  72. package/dist/types/lib/legacy.d.ts +1 -1
  73. package/dist/types/lib/load-dev-server-config.d.ts +2 -2
  74. package/dist/types/lib/merge-dev-server-config.d.ts +1 -1
  75. package/dist/types/lib/portal/create-portal-manifest.d.ts +1 -1
  76. package/dist/types/lib/portal/load-portal-manifest.d.ts +2 -2
  77. package/dist/types/lib/portal/load-portal-schema.d.ts +1 -1
  78. package/dist/types/lib/portal/portal-config.d.ts +2 -2
  79. package/dist/types/lib/portal/portal-manifest.schema.d.ts +6 -6
  80. package/dist/types/lib/types.d.ts +29 -0
  81. package/dist/types/lib/utils/index.d.ts +1 -0
  82. package/dist/types/lib/utils/resolve-annotations.d.ts +35 -1
  83. package/dist/types/lib/utils/resolve-devops-annotations.d.ts +28 -3
  84. package/dist/types/lib/utils/resolve-git-commit-sha.d.ts +1 -0
  85. package/dist/types/lib/utils/resolve-github-annotations.d.ts +85 -13
  86. package/dist/types/lib/utils/types.d.ts +57 -1
  87. package/dist/types/version.d.ts +1 -1
  88. package/docs/application.md +73 -79
  89. package/docs/auth.md +18 -45
  90. package/docs/libsecret.md +0 -31
  91. package/docs/migration-v10-to-v11.md +43 -47
  92. package/docs/portal.md +4 -38
  93. package/package.json +69 -33
  94. package/bin/build/bin.js +0 -28
  95. package/bin/build/cli.js +0 -10099
  96. package/bin/build/create-auth-client-B_j4Y_Dr.js +0 -1415
  97. package/bin/build/portal-config-publish-ezU_DFki.js +0 -29578
  98. package/dist/esm/bin/app-build.js +0 -34
  99. package/dist/esm/bin/app-build.js.map +0 -1
  100. package/dist/esm/bin/app-check.js +0 -63
  101. package/dist/esm/bin/app-check.js.map +0 -1
  102. package/dist/esm/bin/app-config-publish.js +0 -89
  103. package/dist/esm/bin/app-config-publish.js.map +0 -1
  104. package/dist/esm/bin/app-config.js +0 -48
  105. package/dist/esm/bin/app-config.js.map +0 -1
  106. package/dist/esm/bin/app-dev.js +0 -102
  107. package/dist/esm/bin/app-dev.js.map +0 -1
  108. package/dist/esm/bin/app-manifest.js +0 -38
  109. package/dist/esm/bin/app-manifest.js.map +0 -1
  110. package/dist/esm/bin/app-pack.js +0 -51
  111. package/dist/esm/bin/app-pack.js.map +0 -1
  112. package/dist/esm/bin/app-tag.js +0 -89
  113. package/dist/esm/bin/app-tag.js.map +0 -1
  114. package/dist/esm/bin/app-upload.js +0 -109
  115. package/dist/esm/bin/app-upload.js.map +0 -1
  116. package/dist/esm/bin/helpers/load-bundle-metadata.js +0 -32
  117. package/dist/esm/bin/helpers/load-bundle-metadata.js.map +0 -1
  118. package/dist/esm/bin/helpers/load-vite-config.js +0 -55
  119. package/dist/esm/bin/helpers/load-vite-config.js.map +0 -1
  120. package/dist/esm/bin/helpers/resolve-app-config.js +0 -46
  121. package/dist/esm/bin/helpers/resolve-app-config.js.map +0 -1
  122. package/dist/esm/bin/helpers/resolve-app-manifest.js +0 -55
  123. package/dist/esm/bin/helpers/resolve-app-manifest.js.map +0 -1
  124. package/dist/esm/bin/helpers/resolve-portal-config.js +0 -46
  125. package/dist/esm/bin/helpers/resolve-portal-config.js.map +0 -1
  126. package/dist/esm/bin/helpers/resolve-portal-manifest.js +0 -55
  127. package/dist/esm/bin/helpers/resolve-portal-manifest.js.map +0 -1
  128. package/dist/esm/bin/helpers/resolve-project-package.js +0 -32
  129. package/dist/esm/bin/helpers/resolve-project-package.js.map +0 -1
  130. package/dist/esm/bin/index.js +0 -12
  131. package/dist/esm/bin/index.js.map +0 -1
  132. package/dist/esm/bin/pack.js +0 -70
  133. package/dist/esm/bin/pack.js.map +0 -1
  134. package/dist/esm/bin/portal-build.js +0 -40
  135. package/dist/esm/bin/portal-build.js.map +0 -1
  136. package/dist/esm/bin/portal-config-publish.js +0 -74
  137. package/dist/esm/bin/portal-config-publish.js.map +0 -1
  138. package/dist/esm/bin/portal-config.js +0 -48
  139. package/dist/esm/bin/portal-config.js.map +0 -1
  140. package/dist/esm/bin/portal-dev.js +0 -61
  141. package/dist/esm/bin/portal-dev.js.map +0 -1
  142. package/dist/esm/bin/portal-manifest.js +0 -38
  143. package/dist/esm/bin/portal-manifest.js.map +0 -1
  144. package/dist/esm/bin/portal-pack.js +0 -60
  145. package/dist/esm/bin/portal-pack.js.map +0 -1
  146. package/dist/esm/bin/portal-tag.js +0 -96
  147. package/dist/esm/bin/portal-tag.js.map +0 -1
  148. package/dist/esm/bin/portal-upload.js +0 -99
  149. package/dist/esm/bin/portal-upload.js.map +0 -1
  150. package/dist/esm/bin/utils/ConsoleLogger.js +0 -112
  151. package/dist/esm/bin/utils/ConsoleLogger.js.map +0 -1
  152. package/dist/esm/bin/utils/create-dev-server.js +0 -167
  153. package/dist/esm/bin/utils/create-dev-server.js.map +0 -1
  154. package/dist/esm/bin/utils/format.js +0 -47
  155. package/dist/esm/bin/utils/format.js.map +0 -1
  156. package/dist/esm/bin/utils/index.js +0 -5
  157. package/dist/esm/bin/utils/index.js.map +0 -1
  158. package/dist/esm/bin/utils/spinner.js +0 -142
  159. package/dist/esm/bin/utils/spinner.js.map +0 -1
  160. package/dist/esm/cli/commands/app/alias.js +0 -42
  161. package/dist/esm/cli/commands/app/alias.js.map +0 -1
  162. package/dist/esm/cli/commands/app/build.js +0 -53
  163. package/dist/esm/cli/commands/app/build.js.map +0 -1
  164. package/dist/esm/cli/commands/app/check.js +0 -57
  165. package/dist/esm/cli/commands/app/check.js.map +0 -1
  166. package/dist/esm/cli/commands/app/config.js +0 -103
  167. package/dist/esm/cli/commands/app/config.js.map +0 -1
  168. package/dist/esm/cli/commands/app/dev.js +0 -67
  169. package/dist/esm/cli/commands/app/dev.js.map +0 -1
  170. package/dist/esm/cli/commands/app/index.js +0 -42
  171. package/dist/esm/cli/commands/app/index.js.map +0 -1
  172. package/dist/esm/cli/commands/app/manifest.js +0 -82
  173. package/dist/esm/cli/commands/app/manifest.js.map +0 -1
  174. package/dist/esm/cli/commands/app/pack.js +0 -71
  175. package/dist/esm/cli/commands/app/pack.js.map +0 -1
  176. package/dist/esm/cli/commands/app/publish.js +0 -130
  177. package/dist/esm/cli/commands/app/publish.js.map +0 -1
  178. package/dist/esm/cli/commands/app/tag.js +0 -113
  179. package/dist/esm/cli/commands/app/tag.js.map +0 -1
  180. package/dist/esm/cli/commands/app/upload.js +0 -85
  181. package/dist/esm/cli/commands/app/upload.js.map +0 -1
  182. package/dist/esm/cli/commands/auth/index.js +0 -22
  183. package/dist/esm/cli/commands/auth/index.js.map +0 -1
  184. package/dist/esm/cli/commands/auth/login.js +0 -72
  185. package/dist/esm/cli/commands/auth/login.js.map +0 -1
  186. package/dist/esm/cli/commands/auth/logout.js +0 -58
  187. package/dist/esm/cli/commands/auth/logout.js.map +0 -1
  188. package/dist/esm/cli/commands/auth/token.js +0 -78
  189. package/dist/esm/cli/commands/auth/token.js.map +0 -1
  190. package/dist/esm/cli/commands/disco/index.js +0 -6
  191. package/dist/esm/cli/commands/disco/index.js.map +0 -1
  192. package/dist/esm/cli/commands/disco/resolve.js +0 -58
  193. package/dist/esm/cli/commands/disco/resolve.js.map +0 -1
  194. package/dist/esm/cli/commands/index.js +0 -11
  195. package/dist/esm/cli/commands/index.js.map +0 -1
  196. package/dist/esm/cli/commands/portal/build.js +0 -27
  197. package/dist/esm/cli/commands/portal/build.js.map +0 -1
  198. package/dist/esm/cli/commands/portal/config.js +0 -101
  199. package/dist/esm/cli/commands/portal/config.js.map +0 -1
  200. package/dist/esm/cli/commands/portal/dev.js +0 -27
  201. package/dist/esm/cli/commands/portal/dev.js.map +0 -1
  202. package/dist/esm/cli/commands/portal/index.js +0 -23
  203. package/dist/esm/cli/commands/portal/index.js.map +0 -1
  204. package/dist/esm/cli/commands/portal/manifest.js +0 -48
  205. package/dist/esm/cli/commands/portal/manifest.js.map +0 -1
  206. package/dist/esm/cli/commands/portal/pack.js +0 -40
  207. package/dist/esm/cli/commands/portal/pack.js.map +0 -1
  208. package/dist/esm/cli/commands/portal/publish.js +0 -76
  209. package/dist/esm/cli/commands/portal/publish.js.map +0 -1
  210. package/dist/esm/cli/commands/portal/schema.js +0 -70
  211. package/dist/esm/cli/commands/portal/schema.js.map +0 -1
  212. package/dist/esm/cli/commands/portal/tag.js +0 -73
  213. package/dist/esm/cli/commands/portal/tag.js.map +0 -1
  214. package/dist/esm/cli/commands/portal/upload.js +0 -41
  215. package/dist/esm/cli/commands/portal/upload.js.map +0 -1
  216. package/dist/esm/cli/main.js +0 -52
  217. package/dist/esm/cli/main.js.map +0 -1
  218. package/dist/esm/cli/options/auth.js +0 -96
  219. package/dist/esm/cli/options/auth.js.map +0 -1
  220. package/dist/esm/cli/options/env.js +0 -30
  221. package/dist/esm/cli/options/env.js.map +0 -1
  222. package/dist/esm/lib/framework.node.js +0 -104
  223. package/dist/esm/lib/framework.node.js.map +0 -1
  224. package/dist/esm/version.js.map +0 -1
  225. package/dist/tsconfig.tsbuildinfo +0 -1
  226. /package/dist/types/{lib → bin}/framework.node.d.ts +0 -0
@@ -1,31 +1,3 @@
1
- ---
2
- title: Migration Guide: v10 to v11 CLI Command Changes
3
- description: >
4
- Comprehensive guide to migrating CLI commands from v10 to v11 of the Fusion Framework, including deprecated commands, new command names, authentication changes, and best practices for updating scripts and pipelines.
5
- category: cli
6
- related:
7
- - ./auth.md
8
- - ./application.md
9
- tags:
10
- - cli
11
- - fusion-framework
12
- - migration
13
- - breaking-changes
14
- - upgrade
15
- keywords:
16
- - fusion framework
17
- - cli commands
18
- - v10 to v11 migration
19
- - deprecated commands
20
- - authentication changes
21
- - service discovery
22
- - environment configuration
23
- - upgrade guide
24
- - best practices
25
- ---
26
-
27
- # Migration Guide: v10 to v11 CLI Command Changes
28
-
29
1
  With v11, we switched to using the Fusion Framework itself for CLI operations. This change was made to reduce maintenance and improve consistency by reusing the same framework modules (such as service-discovery, authentication, and HTTP) in both Node.js and browser environments. By leveraging the Fusion Framework directly, CLI features and integrations stay up-to-date and benefit from shared improvements across the ecosystem.
30
2
 
31
3
  ## Why This Matters
@@ -33,11 +5,23 @@ With v11, we switched to using the Fusion Framework itself for CLI operations. T
33
5
  - **Reduced duplication:** By reusing core modules, bug fixes and new features are shared between CLI and Framework code.
34
6
  - **Performance:** The framework is now initialized only when needed (e.g., for HTTP calls or authentication), improving startup time and resource usage.
35
7
 
36
- ## Deprecated App Command Aliases
8
+ ## Package Changes
9
+
10
+ - The CLI will now resolve source entrypoint by default from `src/(index.tsx|ts)|(main.tsx|ts)` (unless configured otherwise).
11
+ - The CLI will resolve the output entrypoint by `main`|`module` in `package.json`.
12
+ - This is to enable serving the application in preview mode (`import.meta.resolve('PACKAGE_NAME')`).
13
+
14
+ > [!IMPORTANT]
15
+ > Ensure your application is compatible with these changes before upgrading.
16
+ > ```json
17
+ > {
18
+ > "main": "dist/index.js",
19
+ > }
20
+ > ```
37
21
 
38
- This guide covers command changes for the `fusion-framework-cli app` scope.
22
+ ### Deprecated App Command Aliases
39
23
 
40
- The following table lists the old commands and their new equivalents:
24
+ The following `fusion-framework-cli app` commands have been renamed:
41
25
 
42
26
  | Old Command | New Command |
43
27
  | -------------- | ----------- |
@@ -46,29 +30,41 @@ The following table lists the old commands and their new equivalents:
46
30
  | build-manifest | manifest |
47
31
  | build-publish | publish |
48
32
 
49
- When using a deprecated command, the CLI will display a warning message and guide you to use the new command. Deprecated options such as `--service` are no longer supported; use `--env` instead.
50
-
51
33
  > [!WARNING]
52
- > The deprecated commands will continue to work for now, but they are scheduled for removal in the next major release. Please migrate to the new commands as soon as possible.
34
+ > **Deprecated commands will be removed in the next major release.** While they continue to work with warning messages, please migrate to the new commands immediately.
53
35
 
54
- ### Additional Notes
55
- - The deprecated `--service` option is no longer supported. Use `--env` for environment selection.
56
- - Only the new command names will be supported in future versions. Update your CI/CD pipelines and documentation as soon as possible.
57
- - The deprecated commands are maintained for backward compatibility during the transition to v11, but will be removed in the next major release. Please migrate to the new commands as soon as possible.
36
+ ### Option Changes
37
+ - **Removed:** `--service` option
38
+ - **Use instead:** `--env` for environment selection
58
39
 
59
40
  ## Authentication Changes
60
- - The `FUSION_TOKEN` environment variable should only be used for CI/CD and automated deployments.
61
- - For local development, users should authenticate interactively by running:
41
+
42
+ Authentication behavior has been updated to improve security and consistency:
43
+
44
+ - **For CI/CD and automation:** Continue using the `FUSION_TOKEN` environment variable
45
+ - **For local development:** Use interactive authentication:
62
46
  ```sh
63
47
  fusion-framework-cli auth login
64
48
  ```
65
- before executing any commands.
66
49
 
67
- ## What to Check When Migrating
68
- - Update all scripts, documentation, and CI/CD pipelines to use the new command names.
69
- - Remove any usage of the deprecated `--service` option and replace it with `--env`.
70
- - Ensure your local development workflow uses `fusion-framework-cli auth login` for authentication.
71
- - Review any custom integrations that may rely on CLI startup behavior, as initialization is now on-demand.
50
+ ## Migration Checklist
51
+
52
+ When upgrading from v10 to v11, ensure you:
53
+
54
+ - **Update command names** in all scripts and CI/CD pipelines:
55
+ - `build-pack` → `pack`
56
+ - `build-upload` → `upload`
57
+ - `build-manifest` → `manifest`
58
+ - `build-publish` → `publish`
59
+ - **Replace `--service` with `--env`** for environment selection
60
+ - **Update local development workflow** to use `fusion-framework-cli auth login`
61
+ - **Review custom integrations** that may depend on CLI startup behavior (now on-demand)
62
+ - **Update documentation** and team guidelines with new command syntax
63
+
64
+ ## Getting Help
72
65
 
73
- For more details, see the CLI release notes or run `pnpm fusion-framework-cli app --help`.
66
+ For additional information:
67
+ - Run `pnpm fusion-framework-cli app --help` to see current command options
68
+ - Check the CLI release notes for detailed changes
69
+ - Review related documentation: [Authentication](./auth.md) and [Application Commands](./application.md)
74
70
 
package/docs/portal.md CHANGED
@@ -1,37 +1,3 @@
1
- ---
2
- title: Developing Portals with Fusion Framework CLI
3
- description: >
4
- Guide to building, configuring, and deploying portal templates using the Fusion Framework CLI. Includes setup, essential commands, configuration, troubleshooting, and best practices for portal development.
5
- category: cli
6
- related:
7
- - ./auth.md
8
- tags:
9
- - portal-development
10
- - configuration
11
- - deployment
12
- - commands
13
- - troubleshooting
14
- - best-practices
15
- keywords:
16
- - fusion-framework-cli portal
17
- - fusion portal dev
18
- - fusion portal build
19
- - fusion portal pack
20
- - fusion portal upload
21
- - fusion portal tag
22
- - fusion portal manifest
23
- ---
24
-
25
- # Fusion Framework CLI: Portal Template Development Guide
26
-
27
- > **Table of Contents**
28
- > - [Getting Started](#getting-started)
29
- > - [Portal Manifest](#portal-manifest)
30
- > - [Commands](#commands)
31
- > - [Troubleshooting & FAQ](#troubleshooting--faq)
32
-
33
- ---
34
-
35
1
  The Fusion Framework CLI enables you to build, configure, and deploy **portal templates** for the Fusion ecosystem. These commands are specifically for creating, building, and managing portal templates—not for managing actual portals.
36
2
 
37
3
  > **What is a Portal Template?**
@@ -44,7 +10,7 @@ This guide covers the essential commands and best practices for developing and m
44
10
 
45
11
  ## Getting Started
46
12
 
47
- ### 1. Install the CLI
13
+ ### Install the CLI
48
14
 
49
15
  ```sh
50
16
  pnpm add -D @equinor/fusion-framework-cli
@@ -52,7 +18,7 @@ pnpm add -D @equinor/fusion-framework-cli
52
18
  npm install --save-dev @equinor/fusion-framework-cli
53
19
  ```
54
20
 
55
- ### 2. Scaffold a New Portal
21
+ ### Scaffold a New Portal
56
22
 
57
23
  Create a new directory for your portal and initialize your project:
58
24
 
@@ -61,7 +27,7 @@ mkdir my-fusion-portal && cd my-fusion-portal
61
27
  pnpm init
62
28
  ```
63
29
 
64
- ### 3. Create Required Files
30
+ ### Create Required Files
65
31
 
66
32
  - `portal.manifest.ts`: Defines your portal's metadata and configuration.
67
33
  - `portal.schema.ts` (optional): Defines the schema for portal configuration.
@@ -275,4 +241,4 @@ pnpm fusion-framework-cli portal schema portal.schema.prod.ts --debug
275
241
 
276
242
  ---
277
243
 
278
- For advanced configuration and authentication, see [Authentication](./auth.md).
244
+ For advanced configuration and authentication, see [Authentication](auth.md).
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-cli",
3
- "version": "11.0.0-next.8",
4
- "homepage": "https://github.com/equinor/fusion-framework",
3
+ "version": "11.0.1",
5
4
  "keywords": [
6
5
  "Fusion",
7
6
  "Fusion Framework",
@@ -12,12 +11,17 @@
12
11
  "publishConfig": {
13
12
  "access": "public"
14
13
  },
14
+ "engines": {
15
+ "node": ">=20.0.0"
16
+ },
15
17
  "files": [
16
- "bin",
17
- "dist",
18
- "docs",
19
- "CHANGELOG.md",
20
- "README.md"
18
+ "./bin",
19
+ "./dist/esm/lib",
20
+ "./dist/esm/version.js",
21
+ "./dist/types",
22
+ "./docs",
23
+ "./CHANGELOG.md",
24
+ "./README.md"
21
25
  ],
22
26
  "type": "module",
23
27
  "bin": {
@@ -45,7 +49,43 @@
45
49
  },
46
50
  "./bin": {
47
51
  "types": "./dist/types/bin/index.d.ts",
48
- "import": "./bin/build/bin.js"
52
+ "import": "./bin/build/bin.mjs"
53
+ },
54
+ "./lib": {
55
+ "types": "./dist/types/lib/index.d.ts",
56
+ "import": "./dist/esm/lib/index.js"
57
+ },
58
+ "./utils": {
59
+ "types": "./dist/types/lib/utils/index.d.ts",
60
+ "import": "./dist/esm/lib/utils/index.js"
61
+ },
62
+ "./package.json": "./package.json",
63
+ "./README.md": "./README.md",
64
+ "./CHANGELOG.md": "./CHANGELOG.md"
65
+ },
66
+ "typesVersions": {
67
+ "*": {
68
+ ".": [
69
+ "dist/types/lib/index.d.ts"
70
+ ],
71
+ "app": [
72
+ "dist/types/lib/app/index.d.ts"
73
+ ],
74
+ "portal": [
75
+ "dist/types/lib/portal/index.d.ts"
76
+ ],
77
+ "dev-server": [
78
+ "dist/types/lib/dev-server.d.ts"
79
+ ],
80
+ "bin": [
81
+ "dist/types/bin/index.d.ts"
82
+ ],
83
+ "lib": [
84
+ "dist/types/lib/index.d.ts"
85
+ ],
86
+ "utils": [
87
+ "dist/types/lib/utils/index.d.ts"
88
+ ]
49
89
  }
50
90
  },
51
91
  "repository": {
@@ -54,46 +94,42 @@
54
94
  "directory": "packages/cli"
55
95
  },
56
96
  "dependencies": {
57
- "adm-zip": "^0.5.10",
58
97
  "commander": "^13.0.0",
59
- "keytar": "7.9.0",
98
+ "deepmerge": "^4.3.1",
60
99
  "ora": "^8.0.1",
61
- "vite": "^6.3.5",
62
- "chalk": "^5.3.0",
63
100
  "read-package-up": "^11.0.0",
64
- "zod": "^3.25.20",
65
- "@equinor/fusion-framework-dev-portal": "^1.0.0-next.2",
66
- "@equinor/fusion-framework-dev-server": "^1.0.0-next.4",
67
- "@equinor/fusion-imports": "^1.1.1-next.0"
101
+ "vite": "^6.3.5",
102
+ "zod": "^3.25.76",
103
+ "@equinor/fusion-framework-dev-portal": "^1.0.1",
104
+ "@equinor/fusion-framework-dev-server": "^1.0.0",
105
+ "@equinor/fusion-imports": "^1.1.1",
106
+ "@equinor/fusion-framework-module-msal-node": "^1.0.1"
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
- "@types/node": "^20.11.14",
114
+ "adm-zip": "^0.5.10",
115
+ "ajv": "^8.17.1",
116
+ "chalk": "^5.6.0",
117
+ "is-ci": "^4.1.0",
118
+ "open": "^10.1.1",
119
+ "pretty-bytes": "^7.0.0",
120
+ "rollup": "^4.46.3",
121
+ "rollup-plugin-terser": "^7.0.2",
83
122
  "rxjs": "^7.8.1",
123
+ "type-fest": "^4.40.0",
84
124
  "typescript": "^5.8.2",
85
- "@equinor/fusion-framework-module-app": "^6.1.13",
86
- "@equinor/fusion-framework-module-http": "^6.3.3-next.2",
87
- "@equinor/fusion-framework-module": "^4.4.3-next.1",
88
- "@equinor/fusion-framework-module-msal-node": "^0.1.1-next.2",
89
- "@equinor/fusion-framework-module-service-discovery": "^8.0.15-next.2"
125
+ "@equinor/fusion-framework-module": "^5.0.0",
126
+ "@equinor/fusion-framework-module-app": "^6.1.17",
127
+ "@equinor/fusion-framework-module-http": "^6.3.4",
128
+ "@equinor/fusion-framework-module-service-discovery": "^8.0.18"
90
129
  },
91
130
  "peerDependenciesMeta": {
92
131
  "typescript": {
93
132
  "optional": true
94
- },
95
- "keytar": {
96
- "optional": true
97
133
  }
98
134
  },
99
135
  "scripts": {
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-ezU_DFki.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';