@pronto-tools-and-more/pronto 3.3.12 → 3.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pronto-tools-and-more/pronto",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@pronto-tools-and-more/file-watcher": "3.3.
|
|
17
|
-
"@pronto-tools-and-more/files": "3.3.
|
|
18
|
-
"@pronto-tools-and-more/network-process": "3.3.
|
|
19
|
-
"@pronto-tools-and-more/sass-compiler": "3.3.
|
|
16
|
+
"@pronto-tools-and-more/file-watcher": "3.3.13",
|
|
17
|
+
"@pronto-tools-and-more/files": "3.3.13",
|
|
18
|
+
"@pronto-tools-and-more/network-process": "3.3.13",
|
|
19
|
+
"@pronto-tools-and-more/sass-compiler": "3.3.13",
|
|
20
20
|
"@lvce-editor/assert": "^1.2.0",
|
|
21
21
|
"@lvce-editor/ipc": "^9.1.0",
|
|
22
22
|
"@lvce-editor/json-rpc": "^1.3.0",
|
|
@@ -2,14 +2,12 @@ import { VError } from "@lvce-editor/verror";
|
|
|
2
2
|
import { rename, rm } from "node:fs/promises";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import * as Config from "../Config/Config.js";
|
|
5
|
+
import * as Cwd from "../Cwd/Cwd.js";
|
|
5
6
|
import * as DownloadZipFile from "../DownloadZipFile/DownloadZipFile.js";
|
|
6
7
|
import * as ExtractZip from "../ExtractZip/ExtractZip.js";
|
|
7
|
-
import * as GetConfigPath from "../GetConfigPath/GetConfigPath.js";
|
|
8
8
|
import * as ListContentZipFiles from "../ListContentZipFiles/ListContentZipFiles.js";
|
|
9
|
-
import * as NetworkProcess from "../NetworkProcess/NetworkProcess.js";
|
|
10
|
-
import * as LoadConfig from "../LoadConfig/LoadConfig.js";
|
|
11
9
|
import * as Login from "../Login/Login.js";
|
|
12
|
-
import * as
|
|
10
|
+
import * as NetworkProcess from "../NetworkProcess/NetworkProcess.js";
|
|
13
11
|
|
|
14
12
|
export const pullCode = async () => {
|
|
15
13
|
try {
|
|
@@ -21,12 +19,10 @@ export const pullCode = async () => {
|
|
|
21
19
|
downloadBaseUrl,
|
|
22
20
|
listResourcesUrl,
|
|
23
21
|
} = Config;
|
|
24
|
-
const outFile = join(
|
|
25
|
-
const outDir = join(
|
|
26
|
-
const src = join(
|
|
27
|
-
const oldSrc = join(
|
|
28
|
-
const configPath = GetConfigPath.getConfigPath();
|
|
29
|
-
const config = await LoadConfig.loadConfig(configPath);
|
|
22
|
+
const outFile = join(Cwd.cwd, ".tmp", "update.zip");
|
|
23
|
+
const outDir = join(Cwd.cwd, ".tmp", "update");
|
|
24
|
+
const src = join(Cwd.cwd, "src");
|
|
25
|
+
const oldSrc = join(Cwd.cwd, ".tmp", "old-src");
|
|
30
26
|
const sessionInfo = await Login.login({
|
|
31
27
|
loginUrl,
|
|
32
28
|
userEmail,
|
|
@@ -2,10 +2,10 @@ import { VError } from "@lvce-editor/verror";
|
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import * as Config from "../Config/Config.js";
|
|
4
4
|
import * as CreateZip from "../CreateZip/CreateZip.js";
|
|
5
|
+
import * as Cwd from "../Cwd/Cwd.js";
|
|
5
6
|
import * as GetZipUploadMessage from "../GetZipUploadMessage/GetZipUploadMessage.js";
|
|
6
7
|
import * as Login from "../Login/Login.js";
|
|
7
8
|
import * as NetworkProcess from "../NetworkProcess/NetworkProcess.js";
|
|
8
|
-
import * as Root from "../Root/Root.js";
|
|
9
9
|
import * as UploadZip from "../UploadZip/UploadZip.js";
|
|
10
10
|
|
|
11
11
|
export const pushCode = async () => {
|
|
@@ -25,8 +25,8 @@ export const pushCode = async () => {
|
|
|
25
25
|
if (!userPassword) {
|
|
26
26
|
throw new Error("missing user password");
|
|
27
27
|
}
|
|
28
|
-
const outFile = join(
|
|
29
|
-
const src = join(
|
|
28
|
+
const outFile = join(Cwd.cwd, ".tmp", "upload.zip");
|
|
29
|
+
const src = join(Cwd.cwd, "src");
|
|
30
30
|
const sessionInfo = await Login.login({
|
|
31
31
|
loginUrl,
|
|
32
32
|
userEmail,
|