qcobjects-cli 2.5.107-beta → 2.5.108-beta
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/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.5.
|
|
1
|
+
2.5.108-beta
|
package/package.json
CHANGED
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
/*eslint no-undef: "off"*/
|
|
31
31
|
"use strict";
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
import "qcobjects";
|
|
34
|
+
import {readFileSync} from "node:fs";
|
|
35
|
+
import path from "node:path";
|
|
36
|
+
import { CONFIG, global, logger, _Crypt, findPackageNodePath, Export, _DataStringify } from "qcobjects";
|
|
36
37
|
|
|
37
38
|
export const __get_version__ = () => {
|
|
38
|
-
const path = require("path");
|
|
39
39
|
|
|
40
40
|
const absolutePath = path.resolve(__dirname, "./");
|
|
41
41
|
const package_config = require(path.resolve(process.cwd(), "package.json"));
|
|
@@ -106,7 +106,15 @@ const __load_default_settings__ = () => {
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
try {
|
|
109
|
-
|
|
109
|
+
|
|
110
|
+
const loadConfig = () => {
|
|
111
|
+
const configPath = path.resolve(CONFIG.get("projectPath"),"config.json");
|
|
112
|
+
const configText = readFileSync(configPath).toString();
|
|
113
|
+
const configJson = JSON.parse(configText);
|
|
114
|
+
return configJson;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
var _config = loadConfig();
|
|
110
118
|
logger.debug("Loading settings from your config.json");
|
|
111
119
|
|
|
112
120
|
const _secretKey = (Object.hasOwn(_config, "domain")) ? (_config["domain"]) : ("_secret_");
|