@pronto-tools-and-more/pronto 3.3.11 → 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.11",
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.11",
17
- "@pronto-tools-and-more/files": "3.3.11",
18
- "@pronto-tools-and-more/network-process": "3.3.11",
19
- "@pronto-tools-and-more/sass-compiler": "3.3.11",
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",
@@ -1,13 +1,13 @@
1
1
  import { dirname, join } from "node:path";
2
- import * as Root from "../Root/Root.js";
3
2
  import * as ResolveBin from "../ResolveBin/ResolveBin.js";
3
+ import * as Root from "../Root/Root.js";
4
4
 
5
5
  const getResolved = () => {
6
6
  const resolved = ResolveBin.resolveBin("@pronto-tools-and-more/files");
7
7
  if (!resolved) {
8
8
  return "";
9
9
  }
10
- return dirname(resolved);
10
+ return join(dirname(resolved), "files");
11
11
  };
12
12
 
13
13
  export const filesPath =
@@ -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 Root from "../Root/Root.js";
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(Root.root, ".tmp", "update.zip");
25
- const outDir = join(Root.root, ".tmp", "update");
26
- const src = join(Root.root, "packages", "daz", "src");
27
- const oldSrc = join(Root.root, ".tmp", "old-src");
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(Root.root, ".tmp", "upload.zip");
29
- const src = join(Root.root, "packages", "daz", "src");
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,
@@ -1,6 +0,0 @@
1
- import { join } from "path";
2
- import * as Root from "../Root/Root.js";
3
-
4
- export const getConfigPath = () => {
5
- return join(Root.root, "packages", "daz", "pronto.json");
6
- };
@@ -1,7 +0,0 @@
1
- import { readFile } from "fs/promises";
2
-
3
- export const loadConfig = async (configPath) => {
4
- const content = await readFile(configPath, "utf8");
5
- const value = JSON.parse(content);
6
- return value;
7
- };