@pronto-tools-and-more/pronto 6.26.0 → 6.26.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/pronto",
3
- "version": "6.26.0",
3
+ "version": "6.26.2",
4
4
  "description": "",
5
5
  "main": "src/main.js",
6
6
  "type": "module",
@@ -17,13 +17,13 @@
17
17
  "@lvce-editor/ipc": "^11.0.1",
18
18
  "@lvce-editor/json-rpc": "^4.1.0",
19
19
  "@lvce-editor/verror": "^1.4.0",
20
- "@pronto-tools-and-more/file-watcher": "6.26.0",
21
- "@pronto-tools-and-more/files": "6.26.0",
22
- "@pronto-tools-and-more/network-process": "6.26.0",
23
- "@pronto-tools-and-more/sass-compiler": "6.26.0",
24
- "@pronto-tools-and-more/components-renderer": "6.26.0",
25
- "@pronto-tools-and-more/components": "6.26.0",
26
- "@pronto-tools-and-more/schema-process": "6.26.0",
20
+ "@pronto-tools-and-more/file-watcher": "6.26.2",
21
+ "@pronto-tools-and-more/files": "6.26.2",
22
+ "@pronto-tools-and-more/network-process": "6.26.2",
23
+ "@pronto-tools-and-more/sass-compiler": "6.26.2",
24
+ "@pronto-tools-and-more/components-renderer": "6.26.2",
25
+ "@pronto-tools-and-more/components": "6.26.2",
26
+ "@pronto-tools-and-more/schema-process": "6.26.2",
27
27
  "execa": "^9.4.0",
28
28
  "express": "^4.21.0"
29
29
  },
@@ -1,6 +1,6 @@
1
1
  import { VError } from "@lvce-editor/verror";
2
2
  import { cp, mkdir, rm, writeFile } from "fs/promises";
3
- import { join } from "path";
3
+ import { dirname, join } from "path";
4
4
  import * as CompileSass from "../CompileSass/CompileSass.js";
5
5
  import * as Config from "../Config/Config.js";
6
6
  import * as Cwd from "../Cwd/Cwd.js";
@@ -32,17 +32,17 @@ export const build = async () => {
32
32
  recursive: true,
33
33
  }
34
34
  );
35
- await cp(join(Cwd.cwd, "src"), join(dist, "src"), {
36
- recursive: true,
37
- errorOnExist: false,
38
- filter(source, destination) {
39
- if (source.includes("node_modules")) {
40
- return false;
41
- }
42
- return true;
43
- },
44
- });
45
35
  }
36
+ await cp(join(Cwd.cwd, "src"), join(dist, "src"), {
37
+ recursive: true,
38
+ errorOnExist: false,
39
+ filter(source, destination) {
40
+ if (source.includes("node_modules")) {
41
+ return false;
42
+ }
43
+ return true;
44
+ },
45
+ });
46
46
  if (Config.splitViews || Config.reactComponents) {
47
47
  const viewsResponse = await GetViewsResponse.getViewsResponse({
48
48
  storeFrontPath: join(Cwd.cwd, "src", "default", "storefront"),
@@ -50,10 +50,16 @@ export const build = async () => {
50
50
  reactComponents: Config.reactComponents,
51
51
  pathPrefix: Config.pathPrefix,
52
52
  });
53
- await writeFile(
54
- join(dist, "src", "default", "storefront", "assets", "views.json"),
55
- viewsResponse
53
+ const viewsPath = join(
54
+ dist,
55
+ "src",
56
+ "default",
57
+ "storefront",
58
+ "assets",
59
+ "views.json"
56
60
  );
61
+ await mkdir(dirname(viewsPath), { recursive: true });
62
+ await writeFile(viewsPath, viewsResponse);
57
63
  }
58
64
  if (Config.validateSchema) {
59
65
  await ValidateAllSchemas.validateAllSchemas();