@storm-software/config-tools 1.190.118 → 1.190.120
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/README.md +1 -1
- package/bin/config.cjs +20 -1532
- package/bin/config.js +19 -1527
- package/dist/config-file/get-config-file.cjs +80 -25
- package/dist/config-file/get-config-file.js +79 -24
- package/dist/config-file/index.cjs +1 -29
- package/dist/config-file/index.js +1 -29
- package/dist/create-storm-config.cjs +138 -26
- package/dist/create-storm-config.js +140 -28
- package/dist/env/get-env.cjs +221 -6
- package/dist/env/get-env.js +221 -6
- package/dist/env/index.cjs +2 -18
- package/dist/env/index.js +2 -18
- package/dist/env/set-env.cjs +383 -8
- package/dist/env/set-env.js +382 -7
- package/dist/get-config.cjs +28 -27
- package/dist/get-config.js +29 -28
- package/dist/index.cjs +7 -201
- package/dist/index.js +7 -201
- package/dist/logger/chalk.cjs +32 -4
- package/dist/logger/chalk.js +31 -3
- package/dist/logger/console-icons.cjs +15 -6
- package/dist/logger/console-icons.js +14 -5
- package/dist/logger/console.cjs +191 -37
- package/dist/logger/console.js +176 -22
- package/dist/logger/create-logger.cjs +25 -12
- package/dist/logger/create-logger.js +24 -11
- package/dist/logger/format-timestamp.cjs +4 -4
- package/dist/logger/format-timestamp.js +3 -3
- package/dist/logger/get-log-level.cjs +60 -7
- package/dist/logger/get-log-level.js +59 -6
- package/dist/logger/index.cjs +7 -61
- package/dist/logger/index.js +7 -61
- package/dist/logger/is-unicode-supported.cjs +10 -4
- package/dist/logger/is-unicode-supported.js +9 -3
- package/dist/types.cjs +25 -5
- package/dist/types.js +24 -4
- package/dist/utilities/apply-workspace-tokens.cjs +72 -9
- package/dist/utilities/apply-workspace-tokens.js +71 -8
- package/dist/utilities/colors.cjs +76 -7
- package/dist/utilities/colors.js +75 -6
- package/dist/utilities/correct-paths.cjs +231 -32
- package/dist/utilities/correct-paths.js +215 -16
- package/dist/utilities/file-path-utils.cjs +29 -7
- package/dist/utilities/file-path-utils.js +28 -6
- package/dist/utilities/find-up.cjs +21 -4
- package/dist/utilities/find-up.js +20 -3
- package/dist/utilities/find-workspace-root.cjs +74 -7
- package/dist/utilities/find-workspace-root.js +73 -6
- package/dist/utilities/get-default-config.cjs +90 -6
- package/dist/utilities/get-default-config.js +90 -6
- package/dist/utilities/index.cjs +9 -109
- package/dist/utilities/index.js +9 -109
- package/dist/utilities/process-handler.cjs +46 -11
- package/dist/utilities/process-handler.js +47 -12
- package/dist/utilities/run.cjs +34 -6
- package/dist/utilities/run.js +33 -5
- package/dist/utilities/toml.cjs +42 -24
- package/dist/utilities/toml.js +35 -17
- package/package.json +4 -4
- package/dist/chunk-24B36RDB.cjs +0 -81
- package/dist/chunk-27N3QEX5.js +0 -40
- package/dist/chunk-2AVLCXLT.js +0 -0
- package/dist/chunk-2RLMTBVZ.js +0 -233
- package/dist/chunk-2WBD2G3E.cjs +0 -38
- package/dist/chunk-3COHMHPU.cjs +0 -1
- package/dist/chunk-4Q45WJYQ.js +0 -165
- package/dist/chunk-5C7PIENF.js +0 -92
- package/dist/chunk-5J2SS4QU.js +0 -83
- package/dist/chunk-65SWKEHV.cjs +0 -1
- package/dist/chunk-6Y623TCS.cjs +0 -40
- package/dist/chunk-7PV6L7I7.cjs +0 -1
- package/dist/chunk-7QBTVNMR.cjs +0 -30
- package/dist/chunk-BDATZ3UB.cjs +0 -233
- package/dist/chunk-BZRTSWH4.cjs +0 -395
- package/dist/chunk-D3FRXXDE.js +0 -947
- package/dist/chunk-DTGT4OI3.cjs +0 -14
- package/dist/chunk-EC2KPWRG.cjs +0 -24
- package/dist/chunk-EENQN6N2.js +0 -40
- package/dist/chunk-ENI4UUSK.cjs +0 -35
- package/dist/chunk-FJNXECWU.js +0 -395
- package/dist/chunk-FMDVBSP6.cjs +0 -83
- package/dist/chunk-G2MK47WL.js +0 -14
- package/dist/chunk-HFS7WJVW.js +0 -81
- package/dist/chunk-HVVJHTFS.js +0 -36
- package/dist/chunk-IWD6YQKX.cjs +0 -1
- package/dist/chunk-IWQRXQ4N.cjs +0 -84
- package/dist/chunk-JK4TT5IV.js +0 -35
- package/dist/chunk-JWLDCEBZ.cjs +0 -70
- package/dist/chunk-JZAYHDV3.js +0 -8
- package/dist/chunk-KSMN3HSC.js +0 -38
- package/dist/chunk-L6UNTUC4.js +0 -0
- package/dist/chunk-LOY6ICHZ.cjs +0 -36
- package/dist/chunk-MBG2FTBL.cjs +0 -47
- package/dist/chunk-MQG74XF7.js +0 -102
- package/dist/chunk-MSAQEGBK.cjs +0 -92
- package/dist/chunk-NJFLUTGH.cjs +0 -25
- package/dist/chunk-PCYB64MB.cjs +0 -40
- package/dist/chunk-RALMUN5C.js +0 -30
- package/dist/chunk-RRKB32OH.js +0 -0
- package/dist/chunk-RUKM6FCF.js +0 -25
- package/dist/chunk-SIW7AXUG.js +0 -56
- package/dist/chunk-SLICWTO2.cjs +0 -165
- package/dist/chunk-SO3FWVXC.js +0 -84
- package/dist/chunk-SXPH7ILL.js +0 -70
- package/dist/chunk-T7YISGRS.cjs +0 -102
- package/dist/chunk-TZZRLM5J.cjs +0 -947
- package/dist/chunk-UJ77IBHD.cjs +0 -233
- package/dist/chunk-UKGRDKIH.js +0 -0
- package/dist/chunk-V3GMJ4TX.js +0 -233
- package/dist/chunk-WQJYIPSL.cjs +0 -8
- package/dist/chunk-YBVOKYAM.cjs +0 -56
- package/dist/chunk-YX4736HU.js +0 -47
- package/dist/chunk-ZFNAUMQS.js +0 -24
package/dist/index.cjs
CHANGED
|
@@ -1,201 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _chunkSLICWTO2cjs = require('./chunk-SLICWTO2.cjs');
|
|
12
|
-
require('./chunk-IWD6YQKX.cjs');
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var _chunkMSAQEGBKcjs = require('./chunk-MSAQEGBK.cjs');
|
|
17
|
-
require('./chunk-3COHMHPU.cjs');
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var _chunkYBVOKYAMcjs = require('./chunk-YBVOKYAM.cjs');
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var _chunk6Y623TCScjs = require('./chunk-6Y623TCS.cjs');
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var _chunkMBG2FTBLcjs = require('./chunk-MBG2FTBL.cjs');
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
var _chunk24B36RDBcjs = require('./chunk-24B36RDB.cjs');
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var _chunk2WBD2G3Ecjs = require('./chunk-2WBD2G3E.cjs');
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
var _chunkT7YISGRScjs = require('./chunk-T7YISGRS.cjs');
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var _chunkIWQRXQ4Ncjs = require('./chunk-IWQRXQ4N.cjs');
|
|
53
|
-
require('./chunk-NJFLUTGH.cjs');
|
|
54
|
-
require('./chunk-7PV6L7I7.cjs');
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
var _chunkENI4UUSKcjs = require('./chunk-ENI4UUSK.cjs');
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
var _chunkTZZRLM5Jcjs = require('./chunk-TZZRLM5J.cjs');
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
var _chunkFMDVBSP6cjs = require('./chunk-FMDVBSP6.cjs');
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
var _chunkLOY6ICHZcjs = require('./chunk-LOY6ICHZ.cjs');
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
var _chunkEC2KPWRGcjs = require('./chunk-EC2KPWRG.cjs');
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
var _chunkDTGT4OI3cjs = require('./chunk-DTGT4OI3.cjs');
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
var _chunkWQJYIPSLcjs = require('./chunk-WQJYIPSL.cjs');
|
|
91
|
-
require('./chunk-65SWKEHV.cjs');
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
var _chunkBZRTSWH4cjs = require('./chunk-BZRTSWH4.cjs');
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
var _chunkUJ77IBHDcjs = require('./chunk-UJ77IBHD.cjs');
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
var _chunkBDATZ3UBcjs = require('./chunk-BDATZ3UB.cjs');
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
var _chunkJWLDCEBZcjs = require('./chunk-JWLDCEBZ.cjs');
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
var _chunk7QBTVNMRcjs = require('./chunk-7QBTVNMR.cjs');
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
exports.CONSOLE_ICONS = _chunkEC2KPWRGcjs.CONSOLE_ICONS; exports.DEFAULT_COLOR_CONFIG = _chunkFMDVBSP6cjs.DEFAULT_COLOR_CONFIG; exports.LARGE_BUFFER = _chunk6Y623TCScjs.LARGE_BUFFER; exports.LogLevel = _chunk7QBTVNMRcjs.LogLevel; exports.LogLevelLabel = _chunk7QBTVNMRcjs.LogLevelLabel; exports.applyDefaultConfig = _chunkT7YISGRScjs.applyDefaultConfig; exports.applyWorkspaceBaseTokens = _chunk24B36RDBcjs.applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = _chunk24B36RDBcjs.applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = _chunk24B36RDBcjs.applyWorkspaceTokens; exports.basename = _chunkBDATZ3UBcjs.basename; exports.brandIcon = _chunkTZZRLM5Jcjs.brandIcon; exports.correctPaths = _chunkBDATZ3UBcjs.correctPaths; exports.createConfigExtension = _chunkSLICWTO2cjs.createConfigExtension; exports.createLogger = _chunkENI4UUSKcjs.createLogger; exports.createStormWorkspaceConfig = _chunkSLICWTO2cjs.createStormWorkspaceConfig; exports.dirname = _chunkBDATZ3UBcjs.dirname; exports.exitWithError = _chunkYBVOKYAMcjs.exitWithError; exports.exitWithSuccess = _chunkYBVOKYAMcjs.exitWithSuccess; exports.extname = _chunkBDATZ3UBcjs.extname; exports.findFileName = _chunk2WBD2G3Ecjs.findFileName; exports.findFilePath = _chunk2WBD2G3Ecjs.findFilePath; exports.findWorkspaceRoot = _chunkIWQRXQ4Ncjs.findWorkspaceRoot; exports.findWorkspaceRootSafe = _chunkIWQRXQ4Ncjs.findWorkspaceRootSafe; exports.format = _chunkBDATZ3UBcjs.format; exports.formatLogMessage = _chunkTZZRLM5Jcjs.formatLogMessage; exports.formatTimestamp = _chunkWQJYIPSLcjs.formatTimestamp; exports.getChalk = _chunkLOY6ICHZcjs.getChalk; exports.getColor = _chunkFMDVBSP6cjs.getColor; exports.getColors = _chunkFMDVBSP6cjs.getColors; exports.getConfig = _chunkPCYB64MBcjs.getConfig; exports.getConfigEnv = _chunkUJ77IBHDcjs.getConfigEnv; exports.getConfigFile = _chunkMSAQEGBKcjs.getConfigFile; exports.getConfigFileByName = _chunkMSAQEGBKcjs.getConfigFileByName; exports.getExtensionEnv = _chunkUJ77IBHDcjs.getExtensionEnv; exports.getGradient = _chunkFMDVBSP6cjs.getGradient; exports.getLogFn = _chunkTZZRLM5Jcjs.getLogFn; exports.getLogLevel = _chunkJWLDCEBZcjs.getLogLevel; exports.getLogLevelLabel = _chunkJWLDCEBZcjs.getLogLevelLabel; exports.getPackageJsonConfig = _chunkT7YISGRScjs.getPackageJsonConfig; exports.getStopwatch = _chunkTZZRLM5Jcjs.getStopwatch; exports.getWorkspaceConfig = _chunkPCYB64MBcjs.getWorkspaceConfig; exports.handleProcess = _chunkYBVOKYAMcjs.handleProcess; exports.isAbsolute = _chunkBDATZ3UBcjs.isAbsolute; exports.isUnicodeSupported = _chunkDTGT4OI3cjs.isUnicodeSupported; exports.isVerbose = _chunkJWLDCEBZcjs.isVerbose; exports.joinPaths = _chunkBDATZ3UBcjs.joinPaths; exports.loadStormWorkspaceConfig = _chunkSLICWTO2cjs.loadStormWorkspaceConfig; exports.modifyCargoNestedTable = _chunkMBG2FTBLcjs.modifyCargoNestedTable; exports.modifyCargoTable = _chunkMBG2FTBLcjs.modifyCargoTable; exports.normalizeString = _chunkBDATZ3UBcjs.normalizeString; exports.normalizeWindowsPath = _chunkBDATZ3UBcjs.normalizeWindowsPath; exports.parse = _chunkBDATZ3UBcjs.parse; exports.parseCargoToml = _chunkMBG2FTBLcjs.parseCargoToml; exports.parseCargoTomlWithTree = _chunkMBG2FTBLcjs.parseCargoTomlWithTree; exports.relative = _chunkBDATZ3UBcjs.relative; exports.removeExtension = _chunk2WBD2G3Ecjs.removeExtension; exports.resolve = _chunkBDATZ3UBcjs.resolve; exports.run = _chunk6Y623TCScjs.run; exports.runAsync = _chunk6Y623TCScjs.runAsync; exports.sep = _chunkBDATZ3UBcjs.sep; exports.setConfigEnv = _chunkBZRTSWH4cjs.setConfigEnv; exports.setExtensionEnv = _chunkBZRTSWH4cjs.setExtensionEnv; exports.stringifyCargoToml = _chunkMBG2FTBLcjs.stringifyCargoToml; exports.toNamespacedPath = _chunkBDATZ3UBcjs.toNamespacedPath; exports.tryGetWorkspaceConfig = _chunkPCYB64MBcjs.tryGetWorkspaceConfig; exports.tryLoadStormWorkspaceConfig = _chunkSLICWTO2cjs.tryLoadStormWorkspaceConfig; exports.writeDebug = _chunkTZZRLM5Jcjs.writeDebug; exports.writeError = _chunkTZZRLM5Jcjs.writeError; exports.writeFatal = _chunkTZZRLM5Jcjs.writeFatal; exports.writeInfo = _chunkTZZRLM5Jcjs.writeInfo; exports.writePerformance = _chunkTZZRLM5Jcjs.writePerformance; exports.writeSuccess = _chunkTZZRLM5Jcjs.writeSuccess; exports.writeSystem = _chunkTZZRLM5Jcjs.writeSystem; exports.writeTrace = _chunkTZZRLM5Jcjs.writeTrace; exports.writeWarning = _chunkTZZRLM5Jcjs.writeWarning;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _createStarExport(obj) { Object.keys(obj) .filter((key) => key !== "default" && key !== "__esModule") .forEach((key) => { if (exports.hasOwnProperty(key)) { return; } Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]}); }); }var _configfile = require('./config-file'); _createStarExport(_configfile);
|
|
2
|
+
var _createstormconfig = require('./create-storm-config'); _createStarExport(_createstormconfig);
|
|
3
|
+
var _env = require('./env'); _createStarExport(_env);
|
|
4
|
+
var _getconfig = require('./get-config'); _createStarExport(_getconfig);
|
|
5
|
+
var _logger = require('./logger'); _createStarExport(_logger);
|
|
6
|
+
var _types = require('./types'); _createStarExport(_types);
|
|
7
|
+
var _utilities = require('./utilities'); _createStarExport(_utilities);
|
package/dist/index.js
CHANGED
|
@@ -1,201 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
createStormWorkspaceConfig,
|
|
9
|
-
loadStormWorkspaceConfig,
|
|
10
|
-
tryLoadStormWorkspaceConfig
|
|
11
|
-
} from "./chunk-4Q45WJYQ.js";
|
|
12
|
-
import "./chunk-2AVLCXLT.js";
|
|
13
|
-
import {
|
|
14
|
-
getConfigFile,
|
|
15
|
-
getConfigFileByName
|
|
16
|
-
} from "./chunk-5C7PIENF.js";
|
|
17
|
-
import "./chunk-UKGRDKIH.js";
|
|
18
|
-
import {
|
|
19
|
-
exitWithError,
|
|
20
|
-
exitWithSuccess,
|
|
21
|
-
handleProcess
|
|
22
|
-
} from "./chunk-SIW7AXUG.js";
|
|
23
|
-
import {
|
|
24
|
-
LARGE_BUFFER,
|
|
25
|
-
run,
|
|
26
|
-
runAsync
|
|
27
|
-
} from "./chunk-EENQN6N2.js";
|
|
28
|
-
import {
|
|
29
|
-
modifyCargoNestedTable,
|
|
30
|
-
modifyCargoTable,
|
|
31
|
-
parseCargoToml,
|
|
32
|
-
parseCargoTomlWithTree,
|
|
33
|
-
stringifyCargoToml
|
|
34
|
-
} from "./chunk-YX4736HU.js";
|
|
35
|
-
import {
|
|
36
|
-
applyWorkspaceBaseTokens,
|
|
37
|
-
applyWorkspaceProjectTokens,
|
|
38
|
-
applyWorkspaceTokens
|
|
39
|
-
} from "./chunk-HFS7WJVW.js";
|
|
40
|
-
import {
|
|
41
|
-
findFileName,
|
|
42
|
-
findFilePath,
|
|
43
|
-
removeExtension
|
|
44
|
-
} from "./chunk-KSMN3HSC.js";
|
|
45
|
-
import {
|
|
46
|
-
applyDefaultConfig,
|
|
47
|
-
getPackageJsonConfig
|
|
48
|
-
} from "./chunk-MQG74XF7.js";
|
|
49
|
-
import {
|
|
50
|
-
findWorkspaceRoot,
|
|
51
|
-
findWorkspaceRootSafe
|
|
52
|
-
} from "./chunk-SO3FWVXC.js";
|
|
53
|
-
import "./chunk-RUKM6FCF.js";
|
|
54
|
-
import "./chunk-RRKB32OH.js";
|
|
55
|
-
import {
|
|
56
|
-
createLogger
|
|
57
|
-
} from "./chunk-JK4TT5IV.js";
|
|
58
|
-
import {
|
|
59
|
-
brandIcon,
|
|
60
|
-
formatLogMessage,
|
|
61
|
-
getLogFn,
|
|
62
|
-
getStopwatch,
|
|
63
|
-
writeDebug,
|
|
64
|
-
writeError,
|
|
65
|
-
writeFatal,
|
|
66
|
-
writeInfo,
|
|
67
|
-
writePerformance,
|
|
68
|
-
writeSuccess,
|
|
69
|
-
writeSystem,
|
|
70
|
-
writeTrace,
|
|
71
|
-
writeWarning
|
|
72
|
-
} from "./chunk-D3FRXXDE.js";
|
|
73
|
-
import {
|
|
74
|
-
DEFAULT_COLOR_CONFIG,
|
|
75
|
-
getColor,
|
|
76
|
-
getColors,
|
|
77
|
-
getGradient
|
|
78
|
-
} from "./chunk-5J2SS4QU.js";
|
|
79
|
-
import {
|
|
80
|
-
getChalk
|
|
81
|
-
} from "./chunk-HVVJHTFS.js";
|
|
82
|
-
import {
|
|
83
|
-
CONSOLE_ICONS
|
|
84
|
-
} from "./chunk-ZFNAUMQS.js";
|
|
85
|
-
import {
|
|
86
|
-
isUnicodeSupported
|
|
87
|
-
} from "./chunk-G2MK47WL.js";
|
|
88
|
-
import {
|
|
89
|
-
formatTimestamp
|
|
90
|
-
} from "./chunk-JZAYHDV3.js";
|
|
91
|
-
import "./chunk-L6UNTUC4.js";
|
|
92
|
-
import {
|
|
93
|
-
setConfigEnv,
|
|
94
|
-
setExtensionEnv
|
|
95
|
-
} from "./chunk-FJNXECWU.js";
|
|
96
|
-
import {
|
|
97
|
-
getConfigEnv,
|
|
98
|
-
getExtensionEnv
|
|
99
|
-
} from "./chunk-2RLMTBVZ.js";
|
|
100
|
-
import {
|
|
101
|
-
basename,
|
|
102
|
-
correctPaths,
|
|
103
|
-
dirname,
|
|
104
|
-
extname,
|
|
105
|
-
format,
|
|
106
|
-
isAbsolute,
|
|
107
|
-
joinPaths,
|
|
108
|
-
normalizeString,
|
|
109
|
-
normalizeWindowsPath,
|
|
110
|
-
parse,
|
|
111
|
-
relative,
|
|
112
|
-
resolve,
|
|
113
|
-
sep,
|
|
114
|
-
toNamespacedPath
|
|
115
|
-
} from "./chunk-V3GMJ4TX.js";
|
|
116
|
-
import {
|
|
117
|
-
getLogLevel,
|
|
118
|
-
getLogLevelLabel,
|
|
119
|
-
isVerbose
|
|
120
|
-
} from "./chunk-SXPH7ILL.js";
|
|
121
|
-
import {
|
|
122
|
-
LogLevel,
|
|
123
|
-
LogLevelLabel
|
|
124
|
-
} from "./chunk-RALMUN5C.js";
|
|
125
|
-
export {
|
|
126
|
-
CONSOLE_ICONS,
|
|
127
|
-
DEFAULT_COLOR_CONFIG,
|
|
128
|
-
LARGE_BUFFER,
|
|
129
|
-
LogLevel,
|
|
130
|
-
LogLevelLabel,
|
|
131
|
-
applyDefaultConfig,
|
|
132
|
-
applyWorkspaceBaseTokens,
|
|
133
|
-
applyWorkspaceProjectTokens,
|
|
134
|
-
applyWorkspaceTokens,
|
|
135
|
-
basename,
|
|
136
|
-
brandIcon,
|
|
137
|
-
correctPaths,
|
|
138
|
-
createConfigExtension,
|
|
139
|
-
createLogger,
|
|
140
|
-
createStormWorkspaceConfig,
|
|
141
|
-
dirname,
|
|
142
|
-
exitWithError,
|
|
143
|
-
exitWithSuccess,
|
|
144
|
-
extname,
|
|
145
|
-
findFileName,
|
|
146
|
-
findFilePath,
|
|
147
|
-
findWorkspaceRoot,
|
|
148
|
-
findWorkspaceRootSafe,
|
|
149
|
-
format,
|
|
150
|
-
formatLogMessage,
|
|
151
|
-
formatTimestamp,
|
|
152
|
-
getChalk,
|
|
153
|
-
getColor,
|
|
154
|
-
getColors,
|
|
155
|
-
getConfig,
|
|
156
|
-
getConfigEnv,
|
|
157
|
-
getConfigFile,
|
|
158
|
-
getConfigFileByName,
|
|
159
|
-
getExtensionEnv,
|
|
160
|
-
getGradient,
|
|
161
|
-
getLogFn,
|
|
162
|
-
getLogLevel,
|
|
163
|
-
getLogLevelLabel,
|
|
164
|
-
getPackageJsonConfig,
|
|
165
|
-
getStopwatch,
|
|
166
|
-
getWorkspaceConfig,
|
|
167
|
-
handleProcess,
|
|
168
|
-
isAbsolute,
|
|
169
|
-
isUnicodeSupported,
|
|
170
|
-
isVerbose,
|
|
171
|
-
joinPaths,
|
|
172
|
-
loadStormWorkspaceConfig,
|
|
173
|
-
modifyCargoNestedTable,
|
|
174
|
-
modifyCargoTable,
|
|
175
|
-
normalizeString,
|
|
176
|
-
normalizeWindowsPath,
|
|
177
|
-
parse,
|
|
178
|
-
parseCargoToml,
|
|
179
|
-
parseCargoTomlWithTree,
|
|
180
|
-
relative,
|
|
181
|
-
removeExtension,
|
|
182
|
-
resolve,
|
|
183
|
-
run,
|
|
184
|
-
runAsync,
|
|
185
|
-
sep,
|
|
186
|
-
setConfigEnv,
|
|
187
|
-
setExtensionEnv,
|
|
188
|
-
stringifyCargoToml,
|
|
189
|
-
toNamespacedPath,
|
|
190
|
-
tryGetWorkspaceConfig,
|
|
191
|
-
tryLoadStormWorkspaceConfig,
|
|
192
|
-
writeDebug,
|
|
193
|
-
writeError,
|
|
194
|
-
writeFatal,
|
|
195
|
-
writeInfo,
|
|
196
|
-
writePerformance,
|
|
197
|
-
writeSuccess,
|
|
198
|
-
writeSystem,
|
|
199
|
-
writeTrace,
|
|
200
|
-
writeWarning
|
|
201
|
-
};
|
|
1
|
+
export * from "./config-file";
|
|
2
|
+
export * from "./create-storm-config";
|
|
3
|
+
export * from "./env";
|
|
4
|
+
export * from "./get-config";
|
|
5
|
+
export * from "./logger";
|
|
6
|
+
export * from "./types";
|
|
7
|
+
export * from "./utilities";
|
package/dist/logger/chalk.cjs
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
2
|
+
const chalkDefault = {
|
|
3
|
+
hex: (_) => (message) => message,
|
|
4
|
+
bgHex: (_) => ({
|
|
5
|
+
whiteBright: (message) => message,
|
|
6
|
+
white: (message) => message
|
|
7
|
+
}),
|
|
8
|
+
white: (message) => message,
|
|
9
|
+
whiteBright: (message) => message,
|
|
10
|
+
gray: (message) => message,
|
|
11
|
+
bold: {
|
|
12
|
+
hex: (_) => (message) => message,
|
|
13
|
+
bgHex: (_) => ({
|
|
14
|
+
whiteBright: (message) => message,
|
|
15
|
+
white: (message) => message
|
|
16
|
+
}),
|
|
17
|
+
whiteBright: (message) => message,
|
|
18
|
+
white: (message) => message
|
|
19
|
+
},
|
|
20
|
+
dim: {
|
|
21
|
+
hex: (_) => (message) => message,
|
|
22
|
+
gray: (message) => message
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const getChalk = () => {
|
|
26
|
+
let _chalk = _chalk3.default;
|
|
27
|
+
if (!_optionalChain([_chalk, 'optionalAccess', _2 => _2.hex]) || !_optionalChain([_chalk, 'optionalAccess', _3 => _3.bold, 'optionalAccess', _4 => _4.hex]) || !_optionalChain([_chalk, 'optionalAccess', _5 => _5.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _6 => _6.whiteBright]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.white])) {
|
|
28
|
+
_chalk = chalkDefault;
|
|
29
|
+
}
|
|
30
|
+
return _chalk;
|
|
31
|
+
};
|
|
2
32
|
|
|
3
|
-
var _chunkLOY6ICHZcjs = require('../chunk-LOY6ICHZ.cjs');
|
|
4
33
|
|
|
5
|
-
|
|
6
|
-
exports.getChalk = _chunkLOY6ICHZcjs.getChalk;
|
|
34
|
+
exports.getChalk = getChalk;
|
package/dist/logger/chalk.js
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import chalk from "chalk";
|
|
2
|
+
const chalkDefault = {
|
|
3
|
+
hex: (_) => (message) => message,
|
|
4
|
+
bgHex: (_) => ({
|
|
5
|
+
whiteBright: (message) => message,
|
|
6
|
+
white: (message) => message
|
|
7
|
+
}),
|
|
8
|
+
white: (message) => message,
|
|
9
|
+
whiteBright: (message) => message,
|
|
10
|
+
gray: (message) => message,
|
|
11
|
+
bold: {
|
|
12
|
+
hex: (_) => (message) => message,
|
|
13
|
+
bgHex: (_) => ({
|
|
14
|
+
whiteBright: (message) => message,
|
|
15
|
+
white: (message) => message
|
|
16
|
+
}),
|
|
17
|
+
whiteBright: (message) => message,
|
|
18
|
+
white: (message) => message
|
|
19
|
+
},
|
|
20
|
+
dim: {
|
|
21
|
+
hex: (_) => (message) => message,
|
|
22
|
+
gray: (message) => message
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const getChalk = () => {
|
|
26
|
+
let _chalk = chalk;
|
|
27
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) {
|
|
28
|
+
_chalk = chalkDefault;
|
|
29
|
+
}
|
|
30
|
+
return _chalk;
|
|
31
|
+
};
|
|
4
32
|
export {
|
|
5
33
|
getChalk
|
|
6
34
|
};
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _types = require('../types');
|
|
2
|
+
var _isunicodesupported = require('./is-unicode-supported');
|
|
3
|
+
const useIcon = (c, fallback) => _isunicodesupported.isUnicodeSupported.call(void 0, ) ? c : fallback;
|
|
4
|
+
const CONSOLE_ICONS = {
|
|
5
|
+
[_types.LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
6
|
+
[_types.LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
7
|
+
[_types.LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
8
|
+
[_types.LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
9
|
+
[_types.LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
|
|
10
|
+
[_types.LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
11
|
+
[_types.LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
12
|
+
[_types.LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
13
|
+
[_types.LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
14
|
+
};
|
|
2
15
|
|
|
3
|
-
var _chunkEC2KPWRGcjs = require('../chunk-EC2KPWRG.cjs');
|
|
4
|
-
require('../chunk-DTGT4OI3.cjs');
|
|
5
|
-
require('../chunk-7QBTVNMR.cjs');
|
|
6
16
|
|
|
7
|
-
|
|
8
|
-
exports.CONSOLE_ICONS = _chunkEC2KPWRGcjs.CONSOLE_ICONS;
|
|
17
|
+
exports.CONSOLE_ICONS = CONSOLE_ICONS;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { LogLevelLabel } from "../types";
|
|
2
|
+
import { isUnicodeSupported } from "./is-unicode-supported";
|
|
3
|
+
const useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
4
|
+
const CONSOLE_ICONS = {
|
|
5
|
+
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
6
|
+
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
7
|
+
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
8
|
+
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
9
|
+
[LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
|
|
10
|
+
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
11
|
+
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
12
|
+
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
13
|
+
[LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
14
|
+
};
|
|
6
15
|
export {
|
|
7
16
|
CONSOLE_ICONS
|
|
8
17
|
};
|