@equinor/fusion-framework-cli 5.1.9 → 5.1.13

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 CHANGED
@@ -3,6 +3,32 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.1.13](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-cli@5.1.12...@equinor/fusion-framework-cli@5.1.13) (2023-04-11)
7
+
8
+ **Note:** Version bump only for package @equinor/fusion-framework-cli
9
+
10
+ ## [5.1.12](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-cli@5.1.11...@equinor/fusion-framework-cli@5.1.12) (2023-03-31)
11
+
12
+ ### Bug Fixes
13
+
14
+ - force build of cli ([3fdff80](https://github.com/equinor/fusion-framework/commit/3fdff80c69c769d789d00f7cec5895a080be3ccf))
15
+
16
+ ## [5.1.11](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-cli@5.1.9...@equinor/fusion-framework-cli@5.1.11) (2023-03-31)
17
+
18
+ ### Bug Fixes
19
+
20
+ - **cli:** contextSearch shows current context in selector ([52b4cc4](https://github.com/equinor/fusion-framework/commit/52b4cc4f2ade64e4f2722e16a2d27358d0121c05))
21
+ - **cli:** moved vite-plugin-enviornment from dev-dependencie to dependecies ([1c42889](https://github.com/equinor/fusion-framework/commit/1c428894503cdd95c5bfc2b60c0148860491f305))
22
+ - **cli:** update deps ([86cc317](https://github.com/equinor/fusion-framework/commit/86cc31728ce6d78ebd198eadc0ccddcaf16df55e))
23
+
24
+ ## [5.1.10](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-cli@5.1.9...@equinor/fusion-framework-cli@5.1.10) (2023-03-31)
25
+
26
+ ### Bug Fixes
27
+
28
+ - **cli:** contextSearch shows current context in selector ([52b4cc4](https://github.com/equinor/fusion-framework/commit/52b4cc4f2ade64e4f2722e16a2d27358d0121c05))
29
+ - **cli:** moved vite-plugin-enviornment from dev-dependencie to dependecies ([1c42889](https://github.com/equinor/fusion-framework/commit/1c428894503cdd95c5bfc2b60c0148860491f305))
30
+ - **cli:** update deps ([86cc317](https://github.com/equinor/fusion-framework/commit/86cc31728ce6d78ebd198eadc0ccddcaf16df55e))
31
+
6
32
  ## [5.1.9](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-cli@5.1.8...@equinor/fusion-framework-cli@5.1.9) (2023-03-28)
7
33
 
8
34
  **Note:** Version bump only for package @equinor/fusion-framework-cli
package/bin/app-config.js CHANGED
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import path from 'path';
11
11
  import fs from 'fs';
12
+ import url from 'url';
12
13
  import { findUpSync } from 'find-up';
13
14
  const supportedTypes = ['js', 'json'];
14
15
  export const resolvePackageRoot = () => {
@@ -30,7 +31,8 @@ export const getConfigType = (root) => {
30
31
  .find((x) => fs.existsSync(x.file) && fs.statSync(x.file).isFile());
31
32
  };
32
33
  const loadConfigFromJavascript = (file) => __awaiter(void 0, void 0, void 0, function* () {
33
- return (yield import(file)).default();
34
+ const path = url.pathToFileURL(file).href;
35
+ return (yield import(path)).default();
34
36
  });
35
37
  const loadConfigFromJson = (file) => __awaiter(void 0, void 0, void 0, function* () {
36
38
  return JSON.parse(fs.readFileSync(file, 'utf-8'));