@pronto-tools-and-more/pronto 10.34.0 → 10.36.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/pronto",
3
- "version": "10.34.0",
3
+ "version": "10.36.0",
4
4
  "description": "",
5
5
  "main": "src/main.js",
6
6
  "type": "module",
@@ -17,16 +17,16 @@
17
17
  "@lvce-editor/ipc": "^11.4.0",
18
18
  "@lvce-editor/json-rpc": "^5.2.0",
19
19
  "@lvce-editor/verror": "^1.6.0",
20
- "@pronto-tools-and-more/file-watcher": "10.34.0",
21
- "@pronto-tools-and-more/files": "10.34.0",
22
- "@pronto-tools-and-more/network-process": "10.34.0",
23
- "@pronto-tools-and-more/sass-compiler": "10.34.0",
24
- "@pronto-tools-and-more/components-renderer": "10.34.0",
25
- "@pronto-tools-and-more/components": "10.34.0",
26
- "@pronto-tools-and-more/schema-process": "10.34.0",
27
- "@pronto-tools-and-more/diff-process": "10.34.0",
28
- "@pronto-tools-and-more/type-checker": "10.34.0",
29
- "@pronto-tools-and-more/custom-js-functions": "10.34.0",
20
+ "@pronto-tools-and-more/file-watcher": "10.36.0",
21
+ "@pronto-tools-and-more/files": "10.36.0",
22
+ "@pronto-tools-and-more/network-process": "10.36.0",
23
+ "@pronto-tools-and-more/sass-compiler": "10.36.0",
24
+ "@pronto-tools-and-more/components-renderer": "10.36.0",
25
+ "@pronto-tools-and-more/components": "10.36.0",
26
+ "@pronto-tools-and-more/schema-process": "10.36.0",
27
+ "@pronto-tools-and-more/diff-process": "10.36.0",
28
+ "@pronto-tools-and-more/type-checker": "10.36.0",
29
+ "@pronto-tools-and-more/custom-js-functions": "10.36.0",
30
30
  "execa": "^9.5.1",
31
31
  "express": "^4.21.1"
32
32
  },
@@ -1,4 +1,5 @@
1
1
  import { VError } from "@lvce-editor/verror";
2
+ import { existsSync } from "fs";
2
3
  import { cp, mkdir, rm, writeFile } from "fs/promises";
3
4
  import { dirname, join } from "path";
4
5
  import * as BuildToRemove from "../BuildToRemove/BuildToRemove.js";
@@ -6,10 +7,11 @@ import * as CompileSass from "../CompileSass/CompileSass.js";
6
7
  import * as Config from "../Config/Config.js";
7
8
  import * as Cwd from "../Cwd/Cwd.js";
8
9
  import * as FilesPath from "../FilesPath/FilesPath.js";
10
+ import * as GetCustomServerJsContent from "../GetCustomServerJsContent/GetCustomServerJsContent.js";
11
+ import * as GetTag from "../GetTag/GetTag.js";
9
12
  import * as GetViewsResponse from "../GetViewsResponse/GetViewsResponse.js";
10
13
  import * as SassProcess from "../SassProcess/SassProcess.js";
11
14
  import * as ValidateAllSchemas from "../ValidateAllSchemas/ValidateAllSchemas.js";
12
- import * as GetCustomServerJsContent from "../GetCustomServerJsContent/GetCustomServerJsContent.js";
13
15
 
14
16
  const sourceMap = false;
15
17
 
@@ -89,6 +91,41 @@ export const build = async () => {
89
91
  );
90
92
  await writeFile(customServrJsPathDist, newContent);
91
93
  }
94
+ const tag = await GetTag.getTag();
95
+
96
+ if (
97
+ tag &&
98
+ Config.pushToReleaseOnGitTag &&
99
+ existsSync(
100
+ join(
101
+ dist,
102
+ "src",
103
+ "default",
104
+ "storefront",
105
+ "assets",
106
+ "experience.prod.config.json"
107
+ )
108
+ )
109
+ ) {
110
+ await cp(
111
+ join(
112
+ dist,
113
+ "src",
114
+ "default",
115
+ "storefront",
116
+ "assets",
117
+ "experience.prod.config.json"
118
+ ),
119
+ join(
120
+ dist,
121
+ "src",
122
+ "default",
123
+ "storefront",
124
+ "assets",
125
+ "experience.config.json"
126
+ )
127
+ );
128
+ }
92
129
  if (Config.validateSchema) {
93
130
  await ValidateAllSchemas.validateAllSchemas();
94
131
  }
@@ -1 +1 @@
1
- export const version = '10.34.0'
1
+ export const version = '10.36.0'