@storm-software/config-tools 1.172.10 → 1.173.0
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/bin/config.cjs +4 -0
- package/bin/config.js +4 -0
- package/dist/{chunk-26BPJW3I.js → chunk-62YJAX4N.js} +2 -2
- package/dist/{chunk-6LO4SCE6.cjs → chunk-AH2DDCPN.cjs} +1 -0
- package/dist/{chunk-F7MZXFL2.cjs → chunk-CPWR3CZZ.cjs} +3 -0
- package/dist/{chunk-2CVNUZFW.cjs → chunk-FO5MOLUY.cjs} +6 -6
- package/dist/{chunk-QWVC3UD5.cjs → chunk-ROLVAV5Z.cjs} +3 -3
- package/dist/{chunk-Z3RQ7QQH.js → chunk-XHJCRUWP.js} +1 -0
- package/dist/{chunk-TRI5HQQN.js → chunk-XPPM3PBH.js} +3 -0
- package/dist/{chunk-BLOV7XHL.js → chunk-YTUBIKWS.js} +1 -1
- package/dist/create-storm-config.cjs +4 -4
- package/dist/create-storm-config.js +3 -3
- package/dist/env/get-env.cjs +2 -2
- package/dist/env/get-env.js +1 -1
- package/dist/env/index.cjs +3 -3
- package/dist/env/index.js +2 -2
- package/dist/env/set-env.cjs +2 -2
- package/dist/env/set-env.js +1 -1
- package/dist/get-config.cjs +5 -5
- package/dist/get-config.js +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.js +4 -4
- package/package.json +2 -2
- package/dist/chunk-2VPBY2UN.cjs +0 -40
- package/dist/chunk-33DQVYXE.js +0 -55
- package/dist/chunk-4XFCYYH4.js +0 -40
- package/dist/chunk-5YPGRGBJ.js +0 -158
- package/dist/chunk-DHN65RU7.js +0 -47
- package/dist/chunk-GBW7G3RC.cjs +0 -158
- package/dist/chunk-IHGFD6VV.cjs +0 -138
- package/dist/chunk-IYUFTISY.cjs +0 -47
- package/dist/chunk-LCIW6KMU.cjs +0 -55
- package/dist/chunk-LQ3N3RRC.js +0 -138
- package/dist/chunk-N4GOLNNI.cjs +0 -40
- package/dist/chunk-NUOCEMFW.js +0 -40
- package/dist/chunk-WZTNSSMY.cjs +0 -92
- package/dist/chunk-ZSWS4URS.js +0 -92
package/bin/config.cjs
CHANGED
|
@@ -791,6 +791,7 @@ var getConfigEnv = () => {
|
|
|
791
791
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
792
792
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
793
793
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
794
|
+
portal: process.env[`${prefix}PORTAL`] || void 0,
|
|
794
795
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
795
796
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
796
797
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
@@ -1006,6 +1007,9 @@ var setConfigEnv = (config) => {
|
|
|
1006
1007
|
if (config.docs) {
|
|
1007
1008
|
process.env[`${prefix}DOCS`] = config.docs;
|
|
1008
1009
|
}
|
|
1010
|
+
if (config.portal) {
|
|
1011
|
+
process.env[`${prefix}PORTAL`] = config.portal;
|
|
1012
|
+
}
|
|
1009
1013
|
if (config.licensing) {
|
|
1010
1014
|
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
1011
1015
|
}
|
package/bin/config.js
CHANGED
|
@@ -766,6 +766,7 @@ var getConfigEnv = () => {
|
|
|
766
766
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
767
767
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
768
768
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
769
|
+
portal: process.env[`${prefix}PORTAL`] || void 0,
|
|
769
770
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
770
771
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
771
772
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
@@ -981,6 +982,9 @@ var setConfigEnv = (config) => {
|
|
|
981
982
|
if (config.docs) {
|
|
982
983
|
process.env[`${prefix}DOCS`] = config.docs;
|
|
983
984
|
}
|
|
985
|
+
if (config.portal) {
|
|
986
|
+
process.env[`${prefix}PORTAL`] = config.portal;
|
|
987
|
+
}
|
|
984
988
|
if (config.licensing) {
|
|
985
989
|
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
986
990
|
}
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
} from "./chunk-VLWSWYG7.js";
|
|
16
16
|
import {
|
|
17
17
|
setConfigEnv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XPPM3PBH.js";
|
|
19
19
|
import {
|
|
20
20
|
getConfigEnv,
|
|
21
21
|
getExtensionEnv
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XHJCRUWP.js";
|
|
23
23
|
|
|
24
24
|
// src/create-storm-config.ts
|
|
25
25
|
import { stormWorkspaceConfigSchema } from "@storm-software/config/schema";
|
|
@@ -57,6 +57,7 @@ var getConfigEnv = () => {
|
|
|
57
57
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
58
58
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
59
59
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
60
|
+
portal: process.env[`${prefix}PORTAL`] || void 0,
|
|
60
61
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
61
62
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
62
63
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
@@ -93,6 +93,9 @@ var setConfigEnv = (config) => {
|
|
|
93
93
|
if (config.docs) {
|
|
94
94
|
process.env[`${prefix}DOCS`] = config.docs;
|
|
95
95
|
}
|
|
96
|
+
if (config.portal) {
|
|
97
|
+
process.env[`${prefix}PORTAL`] = config.portal;
|
|
98
|
+
}
|
|
96
99
|
if (config.licensing) {
|
|
97
100
|
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
98
101
|
}
|
|
@@ -15,11 +15,11 @@ var _chunk4PAEA5KVcjs = require('./chunk-4PAEA5KV.cjs');
|
|
|
15
15
|
var _chunkAEZINHEAcjs = require('./chunk-AEZINHEA.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkCPWR3CZZcjs = require('./chunk-CPWR3CZZ.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkAH2DDCPNcjs = require('./chunk-AH2DDCPN.cjs');
|
|
23
23
|
|
|
24
24
|
// src/create-storm-config.ts
|
|
25
25
|
var _schema = require('@storm-software/config/schema');
|
|
@@ -33,7 +33,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
33
33
|
if (!_workspaceRoot) {
|
|
34
34
|
_workspaceRoot = _chunkAEZINHEAcjs.findWorkspaceRoot.call(void 0, );
|
|
35
35
|
}
|
|
36
|
-
const configEnv =
|
|
36
|
+
const configEnv = _chunkAH2DDCPNcjs.getConfigEnv.call(void 0, );
|
|
37
37
|
const configFile = await _chunkBMDGKEGPcjs.getConfigFile.call(void 0, _workspaceRoot);
|
|
38
38
|
if (!configFile) {
|
|
39
39
|
if (!skipLogs) {
|
|
@@ -73,7 +73,7 @@ var createConfigExtension = (extensionName, schema) => {
|
|
|
73
73
|
if (_extension_cache.has(extension_cache_key)) {
|
|
74
74
|
return _extension_cache.get(extension_cache_key);
|
|
75
75
|
}
|
|
76
|
-
let extension =
|
|
76
|
+
let extension = _chunkAH2DDCPNcjs.getExtensionEnv.call(void 0, extensionName);
|
|
77
77
|
if (schema) {
|
|
78
78
|
extension = schema.parse(extension);
|
|
79
79
|
}
|
|
@@ -88,7 +88,7 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
88
88
|
skipLogs,
|
|
89
89
|
true
|
|
90
90
|
);
|
|
91
|
-
|
|
91
|
+
_chunkCPWR3CZZcjs.setConfigEnv.call(void 0, config);
|
|
92
92
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
93
93
|
_chunkDX767CQScjs.writeTrace.call(void 0,
|
|
94
94
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
@@ -110,7 +110,7 @@ var tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDefa
|
|
|
110
110
|
if (!config) {
|
|
111
111
|
return void 0;
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
_chunkCPWR3CZZcjs.setConfigEnv.call(void 0, config);
|
|
114
114
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
115
115
|
_chunkDX767CQScjs.writeTrace.call(void 0,
|
|
116
116
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkFO5MOLUYcjs = require('./chunk-FO5MOLUY.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkAEZINHEAcjs = require('./chunk-AEZINHEA.cjs');
|
|
8
8
|
|
|
9
9
|
// src/get-config.ts
|
|
10
10
|
var getConfig = (workspaceRoot, skipLogs = false) => {
|
|
11
|
-
return
|
|
11
|
+
return _chunkFO5MOLUYcjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
|
|
12
12
|
};
|
|
13
13
|
var getWorkspaceConfig = (skipLogs = false, options = {}) => {
|
|
14
14
|
let workspaceRoot = options.workspaceRoot;
|
|
@@ -23,7 +23,7 @@ var tryGetWorkspaceConfig = async (skipLogs = false, options = {}) => {
|
|
|
23
23
|
if (!workspaceRoot) {
|
|
24
24
|
workspaceRoot = _chunkAEZINHEAcjs.findWorkspaceRoot.call(void 0, options.cwd);
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return _chunkFO5MOLUYcjs.tryLoadStormWorkspaceConfig.call(void 0,
|
|
27
27
|
workspaceRoot,
|
|
28
28
|
skipLogs,
|
|
29
29
|
options.useDefault
|
|
@@ -57,6 +57,7 @@ var getConfigEnv = () => {
|
|
|
57
57
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
58
58
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
59
59
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
60
|
+
portal: process.env[`${prefix}PORTAL`] || void 0,
|
|
60
61
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
61
62
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
62
63
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
@@ -93,6 +93,9 @@ var setConfigEnv = (config) => {
|
|
|
93
93
|
if (config.docs) {
|
|
94
94
|
process.env[`${prefix}DOCS`] = config.docs;
|
|
95
95
|
}
|
|
96
|
+
if (config.portal) {
|
|
97
|
+
process.env[`${prefix}PORTAL`] = config.portal;
|
|
98
|
+
}
|
|
96
99
|
if (config.licensing) {
|
|
97
100
|
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
98
101
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFO5MOLUYcjs = require('./chunk-FO5MOLUY.cjs');
|
|
7
7
|
require('./chunk-BMDGKEGP.cjs');
|
|
8
8
|
require('./chunk-KT6HSF26.cjs');
|
|
9
9
|
require('./chunk-7BVMJTE2.cjs');
|
|
@@ -21,8 +21,8 @@ require('./chunk-NS5PJ2RM.cjs');
|
|
|
21
21
|
require('./chunk-PSHJQ2NP.cjs');
|
|
22
22
|
require('./chunk-PLLCZVZO.cjs');
|
|
23
23
|
require('./chunk-QNDF3RQL.cjs');
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-CPWR3CZZ.cjs');
|
|
25
|
+
require('./chunk-AH2DDCPN.cjs');
|
|
26
26
|
require('./chunk-4JREL2GQ.cjs');
|
|
27
27
|
require('./chunk-7BZWQZUV.cjs');
|
|
28
28
|
require('./chunk-C5OTFOQB.cjs');
|
|
@@ -31,4 +31,4 @@ require('./chunk-C5OTFOQB.cjs');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
exports.createConfigExtension =
|
|
34
|
+
exports.createConfigExtension = _chunkFO5MOLUYcjs.createConfigExtension; exports.createStormWorkspaceConfig = _chunkFO5MOLUYcjs.createStormWorkspaceConfig; exports.loadStormWorkspaceConfig = _chunkFO5MOLUYcjs.loadStormWorkspaceConfig; exports.tryLoadStormWorkspaceConfig = _chunkFO5MOLUYcjs.tryLoadStormWorkspaceConfig;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
createStormWorkspaceConfig,
|
|
4
4
|
loadStormWorkspaceConfig,
|
|
5
5
|
tryLoadStormWorkspaceConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-62YJAX4N.js";
|
|
7
7
|
import "./chunk-XT2XO7TR.js";
|
|
8
8
|
import "./chunk-3EVEDCXL.js";
|
|
9
9
|
import "./chunk-U74E4EM6.js";
|
|
@@ -21,8 +21,8 @@ import "./chunk-T3MUE32G.js";
|
|
|
21
21
|
import "./chunk-OJP4XIBV.js";
|
|
22
22
|
import "./chunk-R6A4VPC4.js";
|
|
23
23
|
import "./chunk-XEZGYUS2.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-XPPM3PBH.js";
|
|
25
|
+
import "./chunk-XHJCRUWP.js";
|
|
26
26
|
import "./chunk-FRR2ZRWD.js";
|
|
27
27
|
import "./chunk-4XRV4CVP.js";
|
|
28
28
|
import "./chunk-3QAWRU2B.js";
|
package/dist/env/get-env.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkAH2DDCPNcjs = require('../chunk-AH2DDCPN.cjs');
|
|
5
5
|
require('../chunk-4JREL2GQ.cjs');
|
|
6
6
|
require('../chunk-7BZWQZUV.cjs');
|
|
7
7
|
require('../chunk-C5OTFOQB.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.getConfigEnv =
|
|
11
|
+
exports.getConfigEnv = _chunkAH2DDCPNcjs.getConfigEnv; exports.getExtensionEnv = _chunkAH2DDCPNcjs.getExtensionEnv;
|
package/dist/env/get-env.js
CHANGED
package/dist/env/index.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkCPWR3CZZcjs = require('../chunk-CPWR3CZZ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkAH2DDCPNcjs = require('../chunk-AH2DDCPN.cjs');
|
|
10
10
|
require('../chunk-4JREL2GQ.cjs');
|
|
11
11
|
require('../chunk-7BZWQZUV.cjs');
|
|
12
12
|
require('../chunk-C5OTFOQB.cjs');
|
|
@@ -15,4 +15,4 @@ require('../chunk-C5OTFOQB.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.getConfigEnv =
|
|
18
|
+
exports.getConfigEnv = _chunkAH2DDCPNcjs.getConfigEnv; exports.getExtensionEnv = _chunkAH2DDCPNcjs.getExtensionEnv; exports.setConfigEnv = _chunkCPWR3CZZcjs.setConfigEnv; exports.setExtensionEnv = _chunkCPWR3CZZcjs.setExtensionEnv;
|
package/dist/env/index.js
CHANGED
|
@@ -2,11 +2,11 @@ import "../chunk-GSK6EGCB.js";
|
|
|
2
2
|
import {
|
|
3
3
|
setConfigEnv,
|
|
4
4
|
setExtensionEnv
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-XPPM3PBH.js";
|
|
6
6
|
import {
|
|
7
7
|
getConfigEnv,
|
|
8
8
|
getExtensionEnv
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-XHJCRUWP.js";
|
|
10
10
|
import "../chunk-FRR2ZRWD.js";
|
|
11
11
|
import "../chunk-4XRV4CVP.js";
|
|
12
12
|
import "../chunk-3QAWRU2B.js";
|
package/dist/env/set-env.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkCPWR3CZZcjs = require('../chunk-CPWR3CZZ.cjs');
|
|
5
5
|
require('../chunk-4JREL2GQ.cjs');
|
|
6
6
|
require('../chunk-7BZWQZUV.cjs');
|
|
7
7
|
require('../chunk-C5OTFOQB.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.setConfigEnv =
|
|
11
|
+
exports.setConfigEnv = _chunkCPWR3CZZcjs.setConfigEnv; exports.setExtensionEnv = _chunkCPWR3CZZcjs.setExtensionEnv;
|
package/dist/env/set-env.js
CHANGED
package/dist/get-config.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var _chunkROLVAV5Zcjs = require('./chunk-ROLVAV5Z.cjs');
|
|
6
|
+
require('./chunk-FO5MOLUY.cjs');
|
|
7
7
|
require('./chunk-BMDGKEGP.cjs');
|
|
8
8
|
require('./chunk-KT6HSF26.cjs');
|
|
9
9
|
require('./chunk-7BVMJTE2.cjs');
|
|
@@ -21,8 +21,8 @@ require('./chunk-NS5PJ2RM.cjs');
|
|
|
21
21
|
require('./chunk-PSHJQ2NP.cjs');
|
|
22
22
|
require('./chunk-PLLCZVZO.cjs');
|
|
23
23
|
require('./chunk-QNDF3RQL.cjs');
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-CPWR3CZZ.cjs');
|
|
25
|
+
require('./chunk-AH2DDCPN.cjs');
|
|
26
26
|
require('./chunk-4JREL2GQ.cjs');
|
|
27
27
|
require('./chunk-7BZWQZUV.cjs');
|
|
28
28
|
require('./chunk-C5OTFOQB.cjs');
|
|
@@ -30,4 +30,4 @@ require('./chunk-C5OTFOQB.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.getConfig =
|
|
33
|
+
exports.getConfig = _chunkROLVAV5Zcjs.getConfig; exports.getWorkspaceConfig = _chunkROLVAV5Zcjs.getWorkspaceConfig; exports.tryGetWorkspaceConfig = _chunkROLVAV5Zcjs.tryGetWorkspaceConfig;
|
package/dist/get-config.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
getConfig,
|
|
3
3
|
getWorkspaceConfig,
|
|
4
4
|
tryGetWorkspaceConfig
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-YTUBIKWS.js";
|
|
6
|
+
import "./chunk-62YJAX4N.js";
|
|
7
7
|
import "./chunk-XT2XO7TR.js";
|
|
8
8
|
import "./chunk-3EVEDCXL.js";
|
|
9
9
|
import "./chunk-U74E4EM6.js";
|
|
@@ -21,8 +21,8 @@ import "./chunk-T3MUE32G.js";
|
|
|
21
21
|
import "./chunk-OJP4XIBV.js";
|
|
22
22
|
import "./chunk-R6A4VPC4.js";
|
|
23
23
|
import "./chunk-XEZGYUS2.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-XPPM3PBH.js";
|
|
25
|
+
import "./chunk-XHJCRUWP.js";
|
|
26
26
|
import "./chunk-FRR2ZRWD.js";
|
|
27
27
|
import "./chunk-4XRV4CVP.js";
|
|
28
28
|
import "./chunk-3QAWRU2B.js";
|
package/dist/index.cjs
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkROLVAV5Zcjs = require('./chunk-ROLVAV5Z.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkFO5MOLUYcjs = require('./chunk-FO5MOLUY.cjs');
|
|
12
12
|
require('./chunk-E4R6RI5D.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
@@ -85,11 +85,11 @@ require('./chunk-6DTRKFZD.cjs');
|
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
var
|
|
88
|
+
var _chunkCPWR3CZZcjs = require('./chunk-CPWR3CZZ.cjs');
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
var
|
|
92
|
+
var _chunkAH2DDCPNcjs = require('./chunk-AH2DDCPN.cjs');
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
@@ -186,4 +186,4 @@ var _chunkC5OTFOQBcjs = require('./chunk-C5OTFOQB.cjs');
|
|
|
186
186
|
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
exports.CONSOLE_ICONS = _chunkPSHJQ2NPcjs.CONSOLE_ICONS; exports.DEFAULT_COLOR_CONFIG = _chunk4PAEA5KVcjs.DEFAULT_COLOR_CONFIG; exports.LARGE_BUFFER = _chunkZGLOKOL3cjs.LARGE_BUFFER; exports.LogLevel = _chunkC5OTFOQBcjs.LogLevel; exports.LogLevelLabel = _chunkC5OTFOQBcjs.LogLevelLabel; exports.applyDefaultConfig = _chunk4PAEA5KVcjs.applyDefaultConfig; exports.applyWorkspaceBaseTokens = _chunkAQ2NOVJFcjs.applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = _chunkAQ2NOVJFcjs.applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = _chunkAQ2NOVJFcjs.applyWorkspaceTokens; exports.basename = _chunk4JREL2GQcjs.basename; exports.correctPaths = _chunk4JREL2GQcjs.correctPaths; exports.createConfigExtension =
|
|
189
|
+
exports.CONSOLE_ICONS = _chunkPSHJQ2NPcjs.CONSOLE_ICONS; exports.DEFAULT_COLOR_CONFIG = _chunk4PAEA5KVcjs.DEFAULT_COLOR_CONFIG; exports.LARGE_BUFFER = _chunkZGLOKOL3cjs.LARGE_BUFFER; exports.LogLevel = _chunkC5OTFOQBcjs.LogLevel; exports.LogLevelLabel = _chunkC5OTFOQBcjs.LogLevelLabel; exports.applyDefaultConfig = _chunk4PAEA5KVcjs.applyDefaultConfig; exports.applyWorkspaceBaseTokens = _chunkAQ2NOVJFcjs.applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = _chunkAQ2NOVJFcjs.applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = _chunkAQ2NOVJFcjs.applyWorkspaceTokens; exports.basename = _chunk4JREL2GQcjs.basename; exports.correctPaths = _chunk4JREL2GQcjs.correctPaths; exports.createConfigExtension = _chunkFO5MOLUYcjs.createConfigExtension; exports.createLogger = _chunk26LV7S6Zcjs.createLogger; exports.createStormWorkspaceConfig = _chunkFO5MOLUYcjs.createStormWorkspaceConfig; exports.dirname = _chunk4JREL2GQcjs.dirname; exports.exitWithError = _chunk7BVMJTE2cjs.exitWithError; exports.exitWithSuccess = _chunk7BVMJTE2cjs.exitWithSuccess; exports.extname = _chunk4JREL2GQcjs.extname; exports.findFileName = _chunkT4ZMKMEGcjs.findFileName; exports.findFilePath = _chunkT4ZMKMEGcjs.findFilePath; exports.findWorkspaceRoot = _chunkAEZINHEAcjs.findWorkspaceRoot; exports.findWorkspaceRootSafe = _chunkAEZINHEAcjs.findWorkspaceRootSafe; exports.format = _chunk4JREL2GQcjs.format; exports.formatLogMessage = _chunkDX767CQScjs.formatLogMessage; exports.formatTimestamp = _chunkQNDF3RQLcjs.formatTimestamp; exports.getChalk = _chunkNS5PJ2RMcjs.getChalk; exports.getConfig = _chunkROLVAV5Zcjs.getConfig; exports.getConfigEnv = _chunkAH2DDCPNcjs.getConfigEnv; exports.getConfigFile = _chunkBMDGKEGPcjs.getConfigFile; exports.getConfigFileByName = _chunkBMDGKEGPcjs.getConfigFileByName; exports.getExtensionEnv = _chunkAH2DDCPNcjs.getExtensionEnv; exports.getLogFn = _chunkDX767CQScjs.getLogFn; exports.getLogLevel = _chunk7BZWQZUVcjs.getLogLevel; exports.getLogLevelLabel = _chunk7BZWQZUVcjs.getLogLevelLabel; exports.getPackageJsonConfig = _chunk4PAEA5KVcjs.getPackageJsonConfig; exports.getStopwatch = _chunkDX767CQScjs.getStopwatch; exports.getWorkspaceConfig = _chunkROLVAV5Zcjs.getWorkspaceConfig; exports.handleProcess = _chunk7BVMJTE2cjs.handleProcess; exports.isAbsolute = _chunk4JREL2GQcjs.isAbsolute; exports.isUnicodeSupported = _chunkPLLCZVZOcjs.isUnicodeSupported; exports.isVerbose = _chunk7BZWQZUVcjs.isVerbose; exports.joinPaths = _chunk4JREL2GQcjs.joinPaths; exports.loadStormWorkspaceConfig = _chunkFO5MOLUYcjs.loadStormWorkspaceConfig; exports.modifyCargoNestedTable = _chunkTGDG6PODcjs.modifyCargoNestedTable; exports.modifyCargoTable = _chunkTGDG6PODcjs.modifyCargoTable; exports.normalizeString = _chunk4JREL2GQcjs.normalizeString; exports.normalizeWindowsPath = _chunk4JREL2GQcjs.normalizeWindowsPath; exports.parse = _chunk4JREL2GQcjs.parse; exports.parseCargoToml = _chunkTGDG6PODcjs.parseCargoToml; exports.parseCargoTomlWithTree = _chunkTGDG6PODcjs.parseCargoTomlWithTree; exports.relative = _chunk4JREL2GQcjs.relative; exports.removeExtension = _chunkT4ZMKMEGcjs.removeExtension; exports.resolve = _chunk4JREL2GQcjs.resolve; exports.run = _chunkZGLOKOL3cjs.run; exports.runAsync = _chunkZGLOKOL3cjs.runAsync; exports.sep = _chunk4JREL2GQcjs.sep; exports.setConfigEnv = _chunkCPWR3CZZcjs.setConfigEnv; exports.setExtensionEnv = _chunkCPWR3CZZcjs.setExtensionEnv; exports.stringifyCargoToml = _chunkTGDG6PODcjs.stringifyCargoToml; exports.toNamespacedPath = _chunk4JREL2GQcjs.toNamespacedPath; exports.tryGetWorkspaceConfig = _chunkROLVAV5Zcjs.tryGetWorkspaceConfig; exports.tryLoadStormWorkspaceConfig = _chunkFO5MOLUYcjs.tryLoadStormWorkspaceConfig; exports.writeDebug = _chunkDX767CQScjs.writeDebug; exports.writeError = _chunkDX767CQScjs.writeError; exports.writeFatal = _chunkDX767CQScjs.writeFatal; exports.writeInfo = _chunkDX767CQScjs.writeInfo; exports.writeSuccess = _chunkDX767CQScjs.writeSuccess; exports.writeSystem = _chunkDX767CQScjs.writeSystem; exports.writeTrace = _chunkDX767CQScjs.writeTrace; exports.writeWarning = _chunkDX767CQScjs.writeWarning;
|
package/dist/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
getConfig,
|
|
3
3
|
getWorkspaceConfig,
|
|
4
4
|
tryGetWorkspaceConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YTUBIKWS.js";
|
|
6
6
|
import {
|
|
7
7
|
createConfigExtension,
|
|
8
8
|
createStormWorkspaceConfig,
|
|
9
9
|
loadStormWorkspaceConfig,
|
|
10
10
|
tryLoadStormWorkspaceConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-62YJAX4N.js";
|
|
12
12
|
import "./chunk-SABD7NYM.js";
|
|
13
13
|
import {
|
|
14
14
|
getConfigFile,
|
|
@@ -85,11 +85,11 @@ import "./chunk-GSK6EGCB.js";
|
|
|
85
85
|
import {
|
|
86
86
|
setConfigEnv,
|
|
87
87
|
setExtensionEnv
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-XPPM3PBH.js";
|
|
89
89
|
import {
|
|
90
90
|
getConfigEnv,
|
|
91
91
|
getExtensionEnv
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-XHJCRUWP.js";
|
|
93
93
|
import {
|
|
94
94
|
basename,
|
|
95
95
|
correctPaths,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.173.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
6
6
|
"repository": {
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
],
|
|
220
220
|
"dependencies": {
|
|
221
221
|
"@ltd/j-toml": "1.38.0",
|
|
222
|
-
"@storm-software/config": "^1.
|
|
222
|
+
"@storm-software/config": "^1.122.0",
|
|
223
223
|
"c12": "^2.0.0-beta.2",
|
|
224
224
|
"chalk": "^4.1.2",
|
|
225
225
|
"commander": "^12.1.0",
|
package/dist/chunk-2VPBY2UN.cjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkGBW7G3RCcjs = require('./chunk-GBW7G3RC.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunkAEZINHEAcjs = require('./chunk-AEZINHEA.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _chunkC5OTFOQBcjs = require('./chunk-C5OTFOQB.cjs');
|
|
11
|
-
|
|
12
|
-
// src/logger/create-logger.ts
|
|
13
|
-
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
14
|
-
async function createLogger(config) {
|
|
15
|
-
const workspaceRoot = _chunkAEZINHEAcjs.findWorkspaceRoot.call(void 0, );
|
|
16
|
-
if (!workspaceRoot) {
|
|
17
|
-
throw new Error("Cannot find workspace root");
|
|
18
|
-
}
|
|
19
|
-
const writeFatal = _chunkGBW7G3RCcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.FATAL, config, _chalk2.default);
|
|
20
|
-
const writeError = _chunkGBW7G3RCcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.ERROR, config, _chalk2.default);
|
|
21
|
-
const writeWarning = _chunkGBW7G3RCcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.WARN, config, _chalk2.default);
|
|
22
|
-
const writeInfo = _chunkGBW7G3RCcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.INFO, config, _chalk2.default);
|
|
23
|
-
const writeSuccess = _chunkGBW7G3RCcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.SUCCESS, config, _chalk2.default);
|
|
24
|
-
const writeDebug = _chunkGBW7G3RCcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.DEBUG, config, _chalk2.default);
|
|
25
|
-
const writeTrace = _chunkGBW7G3RCcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.DEBUG, config, _chalk2.default);
|
|
26
|
-
return {
|
|
27
|
-
fatal: writeFatal,
|
|
28
|
-
error: writeError,
|
|
29
|
-
warning: writeWarning,
|
|
30
|
-
info: writeInfo,
|
|
31
|
-
success: writeSuccess,
|
|
32
|
-
debug: writeDebug,
|
|
33
|
-
trace: writeTrace,
|
|
34
|
-
getStopwatch: _chunkGBW7G3RCcjs.getStopwatch
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
exports.createLogger = createLogger;
|
package/dist/chunk-33DQVYXE.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
writeError,
|
|
3
|
-
writeFatal,
|
|
4
|
-
writeSuccess,
|
|
5
|
-
writeTrace
|
|
6
|
-
} from "./chunk-5YPGRGBJ.js";
|
|
7
|
-
|
|
8
|
-
// src/utilities/process-handler.ts
|
|
9
|
-
var exitWithError = (config) => {
|
|
10
|
-
writeFatal("Exiting script with an error status...", config);
|
|
11
|
-
process.exit(1);
|
|
12
|
-
};
|
|
13
|
-
var exitWithSuccess = (config) => {
|
|
14
|
-
writeSuccess("Script completed successfully. Exiting...", config);
|
|
15
|
-
process.exit(0);
|
|
16
|
-
};
|
|
17
|
-
var handleProcess = (config) => {
|
|
18
|
-
writeTrace(
|
|
19
|
-
`Using the following arguments to process the script: ${process.argv.join(", ")}`,
|
|
20
|
-
config
|
|
21
|
-
);
|
|
22
|
-
process.on("unhandledRejection", (error) => {
|
|
23
|
-
writeError(
|
|
24
|
-
`An Unhandled Rejection occurred while running the program: ${error}`,
|
|
25
|
-
config
|
|
26
|
-
);
|
|
27
|
-
exitWithError(config);
|
|
28
|
-
});
|
|
29
|
-
process.on("uncaughtException", (error) => {
|
|
30
|
-
writeError(
|
|
31
|
-
`An Uncaught Exception occurred while running the program: ${error.message}
|
|
32
|
-
Stacktrace: ${error.stack}`,
|
|
33
|
-
config
|
|
34
|
-
);
|
|
35
|
-
exitWithError(config);
|
|
36
|
-
});
|
|
37
|
-
process.on("SIGTERM", (signal) => {
|
|
38
|
-
writeError(`The program terminated with signal code: ${signal}`, config);
|
|
39
|
-
exitWithError(config);
|
|
40
|
-
});
|
|
41
|
-
process.on("SIGINT", (signal) => {
|
|
42
|
-
writeError(`The program terminated with signal code: ${signal}`, config);
|
|
43
|
-
exitWithError(config);
|
|
44
|
-
});
|
|
45
|
-
process.on("SIGHUP", (signal) => {
|
|
46
|
-
writeError(`The program terminated with signal code: ${signal}`, config);
|
|
47
|
-
exitWithError(config);
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export {
|
|
52
|
-
exitWithError,
|
|
53
|
-
exitWithSuccess,
|
|
54
|
-
handleProcess
|
|
55
|
-
};
|
package/dist/chunk-4XFCYYH4.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getLogFn,
|
|
3
|
-
getStopwatch
|
|
4
|
-
} from "./chunk-5YPGRGBJ.js";
|
|
5
|
-
import {
|
|
6
|
-
findWorkspaceRoot
|
|
7
|
-
} from "./chunk-VLWSWYG7.js";
|
|
8
|
-
import {
|
|
9
|
-
LogLevel
|
|
10
|
-
} from "./chunk-3QAWRU2B.js";
|
|
11
|
-
|
|
12
|
-
// src/logger/create-logger.ts
|
|
13
|
-
import chalk from "chalk";
|
|
14
|
-
async function createLogger(config) {
|
|
15
|
-
const workspaceRoot = findWorkspaceRoot();
|
|
16
|
-
if (!workspaceRoot) {
|
|
17
|
-
throw new Error("Cannot find workspace root");
|
|
18
|
-
}
|
|
19
|
-
const writeFatal = getLogFn(LogLevel.FATAL, config, chalk);
|
|
20
|
-
const writeError = getLogFn(LogLevel.ERROR, config, chalk);
|
|
21
|
-
const writeWarning = getLogFn(LogLevel.WARN, config, chalk);
|
|
22
|
-
const writeInfo = getLogFn(LogLevel.INFO, config, chalk);
|
|
23
|
-
const writeSuccess = getLogFn(LogLevel.SUCCESS, config, chalk);
|
|
24
|
-
const writeDebug = getLogFn(LogLevel.DEBUG, config, chalk);
|
|
25
|
-
const writeTrace = getLogFn(LogLevel.DEBUG, config, chalk);
|
|
26
|
-
return {
|
|
27
|
-
fatal: writeFatal,
|
|
28
|
-
error: writeError,
|
|
29
|
-
warning: writeWarning,
|
|
30
|
-
info: writeInfo,
|
|
31
|
-
success: writeSuccess,
|
|
32
|
-
debug: writeDebug,
|
|
33
|
-
trace: writeTrace,
|
|
34
|
-
getStopwatch
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export {
|
|
39
|
-
createLogger
|
|
40
|
-
};
|