@storm-software/config-tools 1.14.3 → 1.15.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/CHANGELOG.md +7 -0
- package/index.cjs +111 -2
- package/index.js +101 -1
- package/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.14.3](https://github.com/storm-software/storm-ops/compare/config-tools-v1.14.2...config-tools-v1.14.3) (2024-01-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Many code quality improvements and enhanced linting rules ([d2123cf](https://github.com/storm-software/storm-ops/commit/d2123cf87850b1442b8e7c1ed4b3ccc07f2a8673))
|
|
7
|
+
|
|
1
8
|
## [1.14.2](https://github.com/storm-software/storm-ops/compare/config-tools-v1.14.1...config-tools-v1.14.2) (2024-01-15)
|
|
2
9
|
|
|
3
10
|
|
package/index.cjs
CHANGED
|
@@ -44,11 +44,20 @@ __export(src_exports, {
|
|
|
44
44
|
getConfigFile: () => getConfigFile,
|
|
45
45
|
getDefaultConfig: () => getDefaultConfig,
|
|
46
46
|
getExtensionEnv: () => getExtensionEnv,
|
|
47
|
+
getLogFn: () => getLogFn,
|
|
47
48
|
getLogLevel: () => getLogLevel,
|
|
48
49
|
getLogLevelLabel: () => getLogLevelLabel,
|
|
49
50
|
loadStormConfig: () => loadStormConfig,
|
|
50
51
|
setConfigEnv: () => setConfigEnv,
|
|
51
|
-
setExtensionEnv: () => setExtensionEnv
|
|
52
|
+
setExtensionEnv: () => setExtensionEnv,
|
|
53
|
+
writeDebug: () => writeDebug,
|
|
54
|
+
writeError: () => writeError,
|
|
55
|
+
writeFatal: () => writeFatal,
|
|
56
|
+
writeInfo: () => writeInfo,
|
|
57
|
+
writeSuccess: () => writeSuccess,
|
|
58
|
+
writeSystem: () => writeSystem,
|
|
59
|
+
writeTrace: () => writeTrace,
|
|
60
|
+
writeWarning: () => writeWarning
|
|
52
61
|
});
|
|
53
62
|
module.exports = __toCommonJS(src_exports);
|
|
54
63
|
|
|
@@ -98,6 +107,7 @@ var LogLevel = {
|
|
|
98
107
|
ERROR: 20,
|
|
99
108
|
WARN: 30,
|
|
100
109
|
INFO: 40,
|
|
110
|
+
SUCCESS: 45,
|
|
101
111
|
DEBUG: 60,
|
|
102
112
|
TRACE: 70,
|
|
103
113
|
ALL: 100
|
|
@@ -316,6 +326,8 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
316
326
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
317
327
|
var getLogLevel = (label) => {
|
|
318
328
|
switch (label) {
|
|
329
|
+
case "all":
|
|
330
|
+
return LogLevel.ALL;
|
|
319
331
|
case "trace":
|
|
320
332
|
return LogLevel.TRACE;
|
|
321
333
|
case "debug":
|
|
@@ -335,6 +347,9 @@ var getLogLevel = (label) => {
|
|
|
335
347
|
}
|
|
336
348
|
};
|
|
337
349
|
var getLogLevelLabel = (logLevel) => {
|
|
350
|
+
if (logLevel >= LogLevel.ALL) {
|
|
351
|
+
return LogLevelLabel.ALL;
|
|
352
|
+
}
|
|
338
353
|
if (logLevel >= LogLevel.TRACE) {
|
|
339
354
|
return LogLevelLabel.TRACE;
|
|
340
355
|
}
|
|
@@ -359,6 +374,91 @@ var getLogLevelLabel = (logLevel) => {
|
|
|
359
374
|
return LogLevelLabel.INFO;
|
|
360
375
|
};
|
|
361
376
|
|
|
377
|
+
// packages/config-tools/src/utilities/logger.ts
|
|
378
|
+
var chalk = __toESM(require("chalk"), 1);
|
|
379
|
+
var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
380
|
+
if (typeof logLevel === "number" && (logLevel >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL)) {
|
|
381
|
+
return (message) => {
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
385
|
+
return (message) => {
|
|
386
|
+
console.error(
|
|
387
|
+
` ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").inverse("\n\n \u{1F480} Fatal ")} ${chalk.reset.hex(
|
|
388
|
+
config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
|
|
389
|
+
)(message)}
|
|
390
|
+
`
|
|
391
|
+
);
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
395
|
+
return (message) => {
|
|
396
|
+
console.error(
|
|
397
|
+
` ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").inverse("\n\n \u{1F6D1} Error ")} ${chalk.reset.hex(
|
|
398
|
+
config?.colors?.error ? config.colors.error : "#7d1a1a"
|
|
399
|
+
)(message)}
|
|
400
|
+
`
|
|
401
|
+
);
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
405
|
+
return (message) => {
|
|
406
|
+
console.warn(
|
|
407
|
+
` ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").inverse("\n\n \u26A0\uFE0F Warn ")} ${chalk.reset.hex(
|
|
408
|
+
config?.colors?.warning ? config.colors.warning : "#fcc419"
|
|
409
|
+
)(message)}
|
|
410
|
+
`
|
|
411
|
+
);
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
415
|
+
return (message) => {
|
|
416
|
+
console.info(
|
|
417
|
+
` ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").inverse("\n\n \u{1F4EC} Info ")} ${chalk.reset.hex(
|
|
418
|
+
config?.colors?.info ? config.colors.info : "#0ea5e9"
|
|
419
|
+
)(message)}
|
|
420
|
+
`
|
|
421
|
+
);
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
425
|
+
return (message) => {
|
|
426
|
+
console.info(
|
|
427
|
+
` ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").inverse("\n\n \u{1F389} Success ")} ${chalk.reset.hex(
|
|
428
|
+
config?.colors?.success ? config.colors.success : "#087f5b"
|
|
429
|
+
)(message)}
|
|
430
|
+
`
|
|
431
|
+
);
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
435
|
+
return (message) => {
|
|
436
|
+
console.debug(
|
|
437
|
+
` ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").inverse("\n\n \u{1F9EA} Debug ")} ${chalk.reset.hex(
|
|
438
|
+
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
439
|
+
)(message)}
|
|
440
|
+
`
|
|
441
|
+
);
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
return (message) => {
|
|
445
|
+
console.log(
|
|
446
|
+
` ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").inverse("\n\n \u{1F4E2} System ")} ${chalk.bold.hex(
|
|
447
|
+
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
448
|
+
)(message)}
|
|
449
|
+
`
|
|
450
|
+
);
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
var writeFatal = (config, message) => getLogFn(config, LogLevel.FATAL)(message);
|
|
454
|
+
var writeError = (config, message) => getLogFn(config, LogLevel.ERROR)(message);
|
|
455
|
+
var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
|
|
456
|
+
var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
|
|
457
|
+
var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
|
|
458
|
+
var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
|
|
459
|
+
var writeTrace = (config, message) => getLogFn(config, LogLevel.TRACE)(message);
|
|
460
|
+
var writeSystem = (config, message) => getLogFn(config, LogLevel.ALL)(message);
|
|
461
|
+
|
|
362
462
|
// packages/config-tools/src/env/get-env.ts
|
|
363
463
|
var getExtensionEnv = (extensionName) => {
|
|
364
464
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
@@ -639,9 +739,18 @@ var loadStormConfig = async (workspaceRoot) => {
|
|
|
639
739
|
getConfigFile,
|
|
640
740
|
getDefaultConfig,
|
|
641
741
|
getExtensionEnv,
|
|
742
|
+
getLogFn,
|
|
642
743
|
getLogLevel,
|
|
643
744
|
getLogLevelLabel,
|
|
644
745
|
loadStormConfig,
|
|
645
746
|
setConfigEnv,
|
|
646
|
-
setExtensionEnv
|
|
747
|
+
setExtensionEnv,
|
|
748
|
+
writeDebug,
|
|
749
|
+
writeError,
|
|
750
|
+
writeFatal,
|
|
751
|
+
writeInfo,
|
|
752
|
+
writeSuccess,
|
|
753
|
+
writeSystem,
|
|
754
|
+
writeTrace,
|
|
755
|
+
writeWarning
|
|
647
756
|
});
|
package/index.js
CHANGED
|
@@ -44,6 +44,7 @@ var LogLevel = {
|
|
|
44
44
|
ERROR: 20,
|
|
45
45
|
WARN: 30,
|
|
46
46
|
INFO: 40,
|
|
47
|
+
SUCCESS: 45,
|
|
47
48
|
DEBUG: 60,
|
|
48
49
|
TRACE: 70,
|
|
49
50
|
ALL: 100
|
|
@@ -262,6 +263,8 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
262
263
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
263
264
|
var getLogLevel = (label) => {
|
|
264
265
|
switch (label) {
|
|
266
|
+
case "all":
|
|
267
|
+
return LogLevel.ALL;
|
|
265
268
|
case "trace":
|
|
266
269
|
return LogLevel.TRACE;
|
|
267
270
|
case "debug":
|
|
@@ -281,6 +284,9 @@ var getLogLevel = (label) => {
|
|
|
281
284
|
}
|
|
282
285
|
};
|
|
283
286
|
var getLogLevelLabel = (logLevel) => {
|
|
287
|
+
if (logLevel >= LogLevel.ALL) {
|
|
288
|
+
return LogLevelLabel.ALL;
|
|
289
|
+
}
|
|
284
290
|
if (logLevel >= LogLevel.TRACE) {
|
|
285
291
|
return LogLevelLabel.TRACE;
|
|
286
292
|
}
|
|
@@ -305,6 +311,91 @@ var getLogLevelLabel = (logLevel) => {
|
|
|
305
311
|
return LogLevelLabel.INFO;
|
|
306
312
|
};
|
|
307
313
|
|
|
314
|
+
// packages/config-tools/src/utilities/logger.ts
|
|
315
|
+
import * as chalk from "chalk";
|
|
316
|
+
var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
317
|
+
if (typeof logLevel === "number" && (logLevel >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL)) {
|
|
318
|
+
return (message) => {
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
322
|
+
return (message) => {
|
|
323
|
+
console.error(
|
|
324
|
+
` ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").inverse("\n\n \u{1F480} Fatal ")} ${chalk.reset.hex(
|
|
325
|
+
config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
|
|
326
|
+
)(message)}
|
|
327
|
+
`
|
|
328
|
+
);
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
332
|
+
return (message) => {
|
|
333
|
+
console.error(
|
|
334
|
+
` ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").inverse("\n\n \u{1F6D1} Error ")} ${chalk.reset.hex(
|
|
335
|
+
config?.colors?.error ? config.colors.error : "#7d1a1a"
|
|
336
|
+
)(message)}
|
|
337
|
+
`
|
|
338
|
+
);
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
342
|
+
return (message) => {
|
|
343
|
+
console.warn(
|
|
344
|
+
` ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").inverse("\n\n \u26A0\uFE0F Warn ")} ${chalk.reset.hex(
|
|
345
|
+
config?.colors?.warning ? config.colors.warning : "#fcc419"
|
|
346
|
+
)(message)}
|
|
347
|
+
`
|
|
348
|
+
);
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
352
|
+
return (message) => {
|
|
353
|
+
console.info(
|
|
354
|
+
` ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").inverse("\n\n \u{1F4EC} Info ")} ${chalk.reset.hex(
|
|
355
|
+
config?.colors?.info ? config.colors.info : "#0ea5e9"
|
|
356
|
+
)(message)}
|
|
357
|
+
`
|
|
358
|
+
);
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
362
|
+
return (message) => {
|
|
363
|
+
console.info(
|
|
364
|
+
` ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").inverse("\n\n \u{1F389} Success ")} ${chalk.reset.hex(
|
|
365
|
+
config?.colors?.success ? config.colors.success : "#087f5b"
|
|
366
|
+
)(message)}
|
|
367
|
+
`
|
|
368
|
+
);
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
372
|
+
return (message) => {
|
|
373
|
+
console.debug(
|
|
374
|
+
` ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").inverse("\n\n \u{1F9EA} Debug ")} ${chalk.reset.hex(
|
|
375
|
+
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
376
|
+
)(message)}
|
|
377
|
+
`
|
|
378
|
+
);
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
return (message) => {
|
|
382
|
+
console.log(
|
|
383
|
+
` ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").inverse("\n\n \u{1F4E2} System ")} ${chalk.bold.hex(
|
|
384
|
+
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
385
|
+
)(message)}
|
|
386
|
+
`
|
|
387
|
+
);
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
var writeFatal = (config, message) => getLogFn(config, LogLevel.FATAL)(message);
|
|
391
|
+
var writeError = (config, message) => getLogFn(config, LogLevel.ERROR)(message);
|
|
392
|
+
var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
|
|
393
|
+
var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
|
|
394
|
+
var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
|
|
395
|
+
var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
|
|
396
|
+
var writeTrace = (config, message) => getLogFn(config, LogLevel.TRACE)(message);
|
|
397
|
+
var writeSystem = (config, message) => getLogFn(config, LogLevel.ALL)(message);
|
|
398
|
+
|
|
308
399
|
// packages/config-tools/src/env/get-env.ts
|
|
309
400
|
var getExtensionEnv = (extensionName) => {
|
|
310
401
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
@@ -584,9 +675,18 @@ export {
|
|
|
584
675
|
getConfigFile,
|
|
585
676
|
getDefaultConfig,
|
|
586
677
|
getExtensionEnv,
|
|
678
|
+
getLogFn,
|
|
587
679
|
getLogLevel,
|
|
588
680
|
getLogLevelLabel,
|
|
589
681
|
loadStormConfig,
|
|
590
682
|
setConfigEnv,
|
|
591
|
-
setExtensionEnv
|
|
683
|
+
setExtensionEnv,
|
|
684
|
+
writeDebug,
|
|
685
|
+
writeError,
|
|
686
|
+
writeFatal,
|
|
687
|
+
writeInfo,
|
|
688
|
+
writeSuccess,
|
|
689
|
+
writeSystem,
|
|
690
|
+
writeTrace,
|
|
691
|
+
writeWarning
|
|
592
692
|
};
|
package/meta.cjs.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/config-tools/src/config-file/get-config-file.ts":{"bytes":2082,"imports":[{"path":"cosmiconfig","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/config-file/index.ts":{"bytes":35,"imports":[{"path":"packages/config-tools/src/config-file/get-config-file.ts","kind":"import-statement","original":"./get-config-file"}],"format":"esm"},"packages/config-tools/src/types.ts":{"bytes":
|
|
1
|
+
{"inputs":{"packages/config-tools/src/config-file/get-config-file.ts":{"bytes":2082,"imports":[{"path":"cosmiconfig","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/config-file/index.ts":{"bytes":35,"imports":[{"path":"packages/config-tools/src/config-file/get-config-file.ts","kind":"import-statement","original":"./get-config-file"}],"format":"esm"},"packages/config-tools/src/types.ts":{"bytes":1532,"imports":[],"format":"esm"},"packages/config-tools/src/utilities/find-up.ts":{"bytes":631,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytes":1859,"imports":[{"path":"packages/config-tools/src/utilities/find-up.ts","kind":"import-statement","original":"./find-up"}],"format":"esm"},"packages/config-tools/src/schema.ts":{"bytes":5753,"imports":[{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/get-default-config.ts":{"bytes":2727,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"../schema"},{"path":"packages/config-tools/src/utilities/find-workspace-root.ts","kind":"import-statement","original":"./find-workspace-root"}],"format":"esm"},"packages/config-tools/src/utilities/get-log-level.ts":{"bytes":1489,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/config-tools/src/utilities/logger.ts":{"bytes":6173,"imports":[{"path":"chalk","kind":"import-statement","external":true},{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"},{"path":"packages/config-tools/src/utilities/get-log-level.ts","kind":"import-statement","original":"./get-log-level"}],"format":"esm"},"packages/config-tools/src/utilities/index.ts":{"bytes":136,"imports":[{"path":"packages/config-tools/src/utilities/find-workspace-root.ts","kind":"import-statement","original":"./find-workspace-root"},{"path":"packages/config-tools/src/utilities/get-default-config.ts","kind":"import-statement","original":"./get-default-config"},{"path":"packages/config-tools/src/utilities/get-log-level.ts","kind":"import-statement","original":"./get-log-level"},{"path":"packages/config-tools/src/utilities/logger.ts","kind":"import-statement","original":"./logger"}],"format":"esm"},"packages/config-tools/src/env/get-env.ts":{"bytes":4264,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"},{"path":"packages/config-tools/src/utilities/index.ts","kind":"import-statement","original":"../utilities"}],"format":"esm"},"packages/config-tools/src/env/set-env.ts":{"bytes":5356,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"},{"path":"packages/config-tools/src/utilities/get-log-level.ts","kind":"import-statement","original":"../utilities/get-log-level"}],"format":"esm"},"packages/config-tools/src/create-storm-config.ts":{"bytes":3774,"imports":[{"path":"packages/config-tools/src/config-file/get-config-file.ts","kind":"import-statement","original":"./config-file/get-config-file"},{"path":"packages/config-tools/src/env/get-env.ts","kind":"import-statement","original":"./env/get-env"},{"path":"packages/config-tools/src/env/set-env.ts","kind":"import-statement","original":"./env/set-env"},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config-tools/src/utilities/get-default-config.ts","kind":"import-statement","original":"./utilities/get-default-config"}],"format":"esm"},"packages/config-tools/src/env/index.ts":{"bytes":54,"imports":[{"path":"packages/config-tools/src/env/get-env.ts","kind":"import-statement","original":"./get-env"},{"path":"packages/config-tools/src/env/set-env.ts","kind":"import-statement","original":"./set-env"}],"format":"esm"},"packages/config-tools/src/index.ts":{"bytes":399,"imports":[{"path":"packages/config-tools/src/config-file/index.ts","kind":"import-statement","original":"./config-file"},{"path":"packages/config-tools/src/create-storm-config.ts","kind":"import-statement","original":"./create-storm-config"},{"path":"packages/config-tools/src/env/index.ts","kind":"import-statement","original":"./env"},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/config-tools/src/utilities/index.ts","kind":"import-statement","original":"./utilities"}],"format":"esm"}},"outputs":{"dist/packages/config-tools/index.cjs":{"imports":[{"path":"cosmiconfig","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"zod","kind":"require-call","external":true},{"path":"chalk","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/config-tools/src/index.ts","inputs":{"packages/config-tools/src/index.ts":{"bytesInOutput":1233},"packages/config-tools/src/config-file/get-config-file.ts":{"bytesInOutput":1690},"packages/config-tools/src/config-file/index.ts":{"bytesInOutput":0},"packages/config-tools/src/types.ts":{"bytesInOutput":297},"packages/config-tools/src/utilities/find-up.ts":{"bytesInOutput":550},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytesInOutput":1259},"packages/config-tools/src/utilities/index.ts":{"bytesInOutput":0},"packages/config-tools/src/utilities/get-default-config.ts":{"bytesInOutput":2185},"packages/config-tools/src/schema.ts":{"bytesInOutput":4597},"packages/config-tools/src/utilities/get-log-level.ts":{"bytesInOutput":1109},"packages/config-tools/src/utilities/logger.ts":{"bytesInOutput":3999},"packages/config-tools/src/env/get-env.ts":{"bytesInOutput":3259},"packages/config-tools/src/env/set-env.ts":{"bytesInOutput":4590},"packages/config-tools/src/create-storm-config.ts":{"bytesInOutput":1804},"packages/config-tools/src/env/index.ts":{"bytesInOutput":0}},"bytes":29223},"dist/packages/config-tools/utilities/find-workspace-root.cjs":{"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/config-tools/src/utilities/find-workspace-root.ts","inputs":{"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytesInOutput":1500},"packages/config-tools/src/utilities/find-up.ts":{"bytesInOutput":550}},"bytes":3148}}}
|
package/meta.esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/config-tools/src/config-file/get-config-file.ts":{"bytes":2082,"imports":[{"path":"cosmiconfig","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/config-file/index.ts":{"bytes":35,"imports":[{"path":"packages/config-tools/src/config-file/get-config-file.ts","kind":"import-statement","original":"./get-config-file"}],"format":"esm"},"packages/config-tools/src/types.ts":{"bytes":
|
|
1
|
+
{"inputs":{"packages/config-tools/src/config-file/get-config-file.ts":{"bytes":2082,"imports":[{"path":"cosmiconfig","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/config-file/index.ts":{"bytes":35,"imports":[{"path":"packages/config-tools/src/config-file/get-config-file.ts","kind":"import-statement","original":"./get-config-file"}],"format":"esm"},"packages/config-tools/src/types.ts":{"bytes":1532,"imports":[],"format":"esm"},"packages/config-tools/src/utilities/find-up.ts":{"bytes":631,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytes":1859,"imports":[{"path":"packages/config-tools/src/utilities/find-up.ts","kind":"import-statement","original":"./find-up"}],"format":"esm"},"packages/config-tools/src/schema.ts":{"bytes":5753,"imports":[{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/get-default-config.ts":{"bytes":2727,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"../schema"},{"path":"packages/config-tools/src/utilities/find-workspace-root.ts","kind":"import-statement","original":"./find-workspace-root"}],"format":"esm"},"packages/config-tools/src/utilities/get-log-level.ts":{"bytes":1489,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/config-tools/src/utilities/logger.ts":{"bytes":6173,"imports":[{"path":"chalk","kind":"import-statement","external":true},{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"},{"path":"packages/config-tools/src/utilities/get-log-level.ts","kind":"import-statement","original":"./get-log-level"}],"format":"esm"},"packages/config-tools/src/utilities/index.ts":{"bytes":136,"imports":[{"path":"packages/config-tools/src/utilities/find-workspace-root.ts","kind":"import-statement","original":"./find-workspace-root"},{"path":"packages/config-tools/src/utilities/get-default-config.ts","kind":"import-statement","original":"./get-default-config"},{"path":"packages/config-tools/src/utilities/get-log-level.ts","kind":"import-statement","original":"./get-log-level"},{"path":"packages/config-tools/src/utilities/logger.ts","kind":"import-statement","original":"./logger"}],"format":"esm"},"packages/config-tools/src/env/get-env.ts":{"bytes":4264,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"},{"path":"packages/config-tools/src/utilities/index.ts","kind":"import-statement","original":"../utilities"}],"format":"esm"},"packages/config-tools/src/env/set-env.ts":{"bytes":5356,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"},{"path":"packages/config-tools/src/utilities/get-log-level.ts","kind":"import-statement","original":"../utilities/get-log-level"}],"format":"esm"},"packages/config-tools/src/create-storm-config.ts":{"bytes":3774,"imports":[{"path":"packages/config-tools/src/config-file/get-config-file.ts","kind":"import-statement","original":"./config-file/get-config-file"},{"path":"packages/config-tools/src/env/get-env.ts","kind":"import-statement","original":"./env/get-env"},{"path":"packages/config-tools/src/env/set-env.ts","kind":"import-statement","original":"./env/set-env"},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config-tools/src/utilities/get-default-config.ts","kind":"import-statement","original":"./utilities/get-default-config"}],"format":"esm"},"packages/config-tools/src/env/index.ts":{"bytes":54,"imports":[{"path":"packages/config-tools/src/env/get-env.ts","kind":"import-statement","original":"./get-env"},{"path":"packages/config-tools/src/env/set-env.ts","kind":"import-statement","original":"./set-env"}],"format":"esm"},"packages/config-tools/src/index.ts":{"bytes":399,"imports":[{"path":"packages/config-tools/src/config-file/index.ts","kind":"import-statement","original":"./config-file"},{"path":"packages/config-tools/src/create-storm-config.ts","kind":"import-statement","original":"./create-storm-config"},{"path":"packages/config-tools/src/env/index.ts","kind":"import-statement","original":"./env"},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/config-tools/src/utilities/index.ts","kind":"import-statement","original":"./utilities"}],"format":"esm"}},"outputs":{"dist/packages/config-tools/index.js":{"imports":[{"path":"cosmiconfig","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true}],"exports":["ColorConfigSchema","DefaultColorConfig","DefaultStormConfig","LogLevel","LogLevelLabel","StormConfigSchema","createConfig","createConfigExtension","createStormConfig","findWorkspaceRoot","findWorkspaceRootSafe","getConfigEnv","getConfigFile","getDefaultConfig","getExtensionEnv","getLogFn","getLogLevel","getLogLevelLabel","loadStormConfig","setConfigEnv","setExtensionEnv","writeDebug","writeError","writeFatal","writeInfo","writeSuccess","writeSystem","writeTrace","writeWarning"],"entryPoint":"packages/config-tools/src/index.ts","inputs":{"packages/config-tools/src/config-file/get-config-file.ts":{"bytesInOutput":1660},"packages/config-tools/src/config-file/index.ts":{"bytesInOutput":0},"packages/config-tools/src/index.ts":{"bytesInOutput":0},"packages/config-tools/src/types.ts":{"bytesInOutput":297},"packages/config-tools/src/utilities/find-up.ts":{"bytesInOutput":497},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytesInOutput":1259},"packages/config-tools/src/utilities/index.ts":{"bytesInOutput":0},"packages/config-tools/src/utilities/get-default-config.ts":{"bytesInOutput":2152},"packages/config-tools/src/schema.ts":{"bytesInOutput":4587},"packages/config-tools/src/utilities/get-log-level.ts":{"bytesInOutput":1109},"packages/config-tools/src/utilities/logger.ts":{"bytesInOutput":3989},"packages/config-tools/src/env/get-env.ts":{"bytesInOutput":3259},"packages/config-tools/src/env/set-env.ts":{"bytesInOutput":4590},"packages/config-tools/src/create-storm-config.ts":{"bytesInOutput":1804},"packages/config-tools/src/env/index.ts":{"bytesInOutput":0}},"bytes":26353},"dist/packages/config-tools/utilities/find-workspace-root.js":{"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}],"exports":["findWorkspaceRoot","findWorkspaceRootSafe"],"entryPoint":"packages/config-tools/src/utilities/find-workspace-root.ts","inputs":{"packages/config-tools/src/utilities/find-up.ts":{"bytesInOutput":497},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytesInOutput":1259}},"bytes":1926}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
6
6
|
"repository": {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"module": "./index.js",
|
|
14
14
|
"types": "declarations.d.ts",
|
|
15
15
|
"dependencies": {
|
|
16
|
+
"chalk": "4.1.0",
|
|
16
17
|
"cosmiconfig": "^9.0.0",
|
|
17
18
|
"find-up": "^7.0.0",
|
|
18
19
|
"locate-path": "^7.2.0",
|