@storm-software/k8s-tools 0.33.49 → 0.33.52
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 +64 -0
- package/README.md +2 -1
- package/dist/{chunk-CUNTHNH2.mjs → chunk-2KR4F2AI.mjs} +3 -3
- package/dist/{chunk-ORBOK4VZ.js → chunk-BALQIROH.js} +21 -17
- package/dist/{chunk-UOZBIABY.js → chunk-BWJB4BML.js} +2 -2
- package/dist/{chunk-DCJ2TVZJ.mjs → chunk-DQF4CUMK.mjs} +1 -1
- package/dist/{chunk-LZLKOY3I.mjs → chunk-EBXC3NOB.mjs} +8 -4
- package/dist/{chunk-CGYS66AH.js → chunk-ETWEFMQB.js} +25 -25
- package/dist/{chunk-2OLVQCED.mjs → chunk-GNQKTUCN.mjs} +2 -2
- package/dist/{chunk-J47ZEZ55.mjs → chunk-HE7OVWY7.mjs} +1 -1
- package/dist/{chunk-AYBPSQPG.js → chunk-JHDVLY6L.js} +6 -6
- package/dist/{chunk-5I7FNGMC.js → chunk-KCB6YSMC.js} +19 -19
- package/dist/{chunk-LANPEIXJ.mjs → chunk-LKSSXK6W.mjs} +1 -1
- package/dist/{chunk-K7L3WVNZ.js → chunk-M73TO2T7.js} +3 -3
- package/dist/{chunk-FN37GL2R.js → chunk-OOFQDRAA.js} +4 -4
- package/dist/{chunk-D5L7SWND.mjs → chunk-R3YETOE5.mjs} +2 -2
- package/dist/{chunk-AFZYDWZL.mjs → chunk-S245JDPX.mjs} +2 -2
- package/dist/{chunk-2KVM7MJH.mjs → chunk-VUNLN4IF.mjs} +1 -1
- package/dist/{chunk-GMTGF6X4.mjs → chunk-XFDQ3EIP.mjs} +1 -1
- package/dist/{chunk-EQQHNJCX.js → chunk-XPNLW6RB.js} +4 -4
- package/dist/{chunk-FUTYP5WM.mjs → chunk-YHXHPRO7.mjs} +3 -3
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +6 -6
- package/dist/generators.js +6 -6
- package/dist/generators.mjs +6 -6
- package/dist/index.js +9 -9
- package/dist/index.mjs +11 -11
- package/dist/src/executors/container-publish/executor.js +4 -4
- package/dist/src/executors/container-publish/executor.mjs +4 -4
- package/dist/src/executors/helm-package/executor.js +4 -4
- package/dist/src/executors/helm-package/executor.mjs +5 -5
- package/dist/src/generators/helm-chart/generator.js +5 -5
- package/dist/src/generators/helm-chart/generator.mjs +5 -5
- package/dist/src/generators/helm-dependency/generator.js +5 -5
- package/dist/src/generators/helm-dependency/generator.mjs +5 -5
- package/dist/src/plugins/docker/index.js +3 -3
- package/dist/src/plugins/docker/index.mjs +3 -3
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/client.mjs +2 -2
- package/dist/src/utils/ensure-init.mjs +1 -1
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/prettier.mjs +2 -2
- package/dist/tsup.config.mjs +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,70 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - K8s Tools
|
|
4
4
|
|
|
5
|
+
## [0.33.51](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.33.51) (2025-07-31)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update TypeScript to v5.9.2
|
|
10
|
+
([d4a90784d](https://github.com/storm-software/storm-ops/commit/d4a90784d))
|
|
11
|
+
- **monorepo:** Regenerate README markdown files
|
|
12
|
+
([18c227394](https://github.com/storm-software/storm-ops/commit/18c227394))
|
|
13
|
+
- **monorepo:** Update workspace package links
|
|
14
|
+
([3ec10b48b](https://github.com/storm-software/storm-ops/commit/3ec10b48b))
|
|
15
|
+
- **monorepo:** Regenerate README markdown files
|
|
16
|
+
([8aeb77070](https://github.com/storm-software/storm-ops/commit/8aeb77070))
|
|
17
|
+
- **monorepo:** Regenerate workspace repository packages
|
|
18
|
+
([a78abe68e](https://github.com/storm-software/storm-ops/commit/a78abe68e))
|
|
19
|
+
- **monorepo:** Regenerate README markdown files
|
|
20
|
+
([b7b8fec51](https://github.com/storm-software/storm-ops/commit/b7b8fec51))
|
|
21
|
+
- **eslint:** Update package dependencies
|
|
22
|
+
([a6eaee75a](https://github.com/storm-software/storm-ops/commit/a6eaee75a))
|
|
23
|
+
- **monorepo:** Regenerate README markdown files
|
|
24
|
+
([d02c46b78](https://github.com/storm-software/storm-ops/commit/d02c46b78))
|
|
25
|
+
- **monorepo:** Update workspace package links
|
|
26
|
+
([ed53c2aea](https://github.com/storm-software/storm-ops/commit/ed53c2aea))
|
|
27
|
+
- **git-tools:** Ensure dependencies are marked `external` by default for `bin`
|
|
28
|
+
build
|
|
29
|
+
([b6c66aae5](https://github.com/storm-software/storm-ops/commit/b6c66aae5))
|
|
30
|
+
- **monorepo:** Regenerate README markdown files
|
|
31
|
+
([fa4b5a24f](https://github.com/storm-software/storm-ops/commit/fa4b5a24f))
|
|
32
|
+
|
|
33
|
+
### Updated Dependencies
|
|
34
|
+
|
|
35
|
+
- Updated workspace-tools to 1.277.27
|
|
36
|
+
- Updated config-tools to 1.176.16
|
|
37
|
+
- Updated config to 1.125.15
|
|
38
|
+
|
|
39
|
+
## [0.33.50](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.33.50) (2025-07-14)
|
|
40
|
+
|
|
41
|
+
### Miscellaneous
|
|
42
|
+
|
|
43
|
+
- **monorepo:** Update workspace package links
|
|
44
|
+
([aa3c5e120](https://github.com/storm-software/storm-ops/commit/aa3c5e120))
|
|
45
|
+
- **monorepo:** Regenerate README markdown files
|
|
46
|
+
([11ac201a7](https://github.com/storm-software/storm-ops/commit/11ac201a7))
|
|
47
|
+
|
|
48
|
+
### Updated Dependencies
|
|
49
|
+
|
|
50
|
+
- Updated workspace-tools to 1.277.26
|
|
51
|
+
- Updated config-tools to 1.176.15
|
|
52
|
+
- Updated config to 1.125.14
|
|
53
|
+
|
|
54
|
+
## [0.33.49](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.33.49) (2025-07-14)
|
|
55
|
+
|
|
56
|
+
### Miscellaneous
|
|
57
|
+
|
|
58
|
+
- **monorepo:** Update workspace package links
|
|
59
|
+
([e041bb876](https://github.com/storm-software/storm-ops/commit/e041bb876))
|
|
60
|
+
- **monorepo:** Regenerate README markdown files
|
|
61
|
+
([9c1c8c7cc](https://github.com/storm-software/storm-ops/commit/9c1c8c7cc))
|
|
62
|
+
|
|
63
|
+
### Updated Dependencies
|
|
64
|
+
|
|
65
|
+
- Updated workspace-tools to 1.277.25
|
|
66
|
+
- Updated config-tools to 1.176.14
|
|
67
|
+
- Updated config to 1.125.13
|
|
68
|
+
|
|
5
69
|
## [0.33.48](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.33.48) (2025-07-11)
|
|
6
70
|
|
|
7
71
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -40,6 +40,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
+
|
|
43
44
|
## Table of Contents
|
|
44
45
|
|
|
45
46
|
- [Storm Kubernetes Tools](#storm-kubernetes-tools)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GNQKTUCN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeDebug
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EBXC3NOB.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__dirname
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XFDQ3EIP.mjs";
|
|
10
10
|
|
|
11
11
|
// src/generators/helm-chart/generator.ts
|
|
12
12
|
import {
|
|
@@ -621,16 +621,20 @@ var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
|
621
621
|
var chalkDefault = {
|
|
622
622
|
hex: (_) => (message) => message,
|
|
623
623
|
bgHex: (_) => ({
|
|
624
|
-
whiteBright: (message) => message
|
|
624
|
+
whiteBright: (message) => message,
|
|
625
|
+
white: (message) => message
|
|
625
626
|
}),
|
|
627
|
+
white: (message) => message,
|
|
626
628
|
whiteBright: (message) => message,
|
|
627
629
|
gray: (message) => message,
|
|
628
630
|
bold: {
|
|
629
631
|
hex: (_) => (message) => message,
|
|
630
632
|
bgHex: (_) => ({
|
|
631
|
-
whiteBright: (message) => message
|
|
633
|
+
whiteBright: (message) => message,
|
|
634
|
+
white: (message) => message
|
|
632
635
|
}),
|
|
633
|
-
whiteBright: (message) => message
|
|
636
|
+
whiteBright: (message) => message,
|
|
637
|
+
white: (message) => message
|
|
634
638
|
},
|
|
635
639
|
dim: {
|
|
636
640
|
hex: (_) => (message) => message,
|
|
@@ -639,7 +643,7 @@ var chalkDefault = {
|
|
|
639
643
|
};
|
|
640
644
|
var getChalk = () => {
|
|
641
645
|
let _chalk = _chalk3.default;
|
|
642
|
-
if (!_optionalChain([_chalk, 'optionalAccess', _6 => _6.hex]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.bold, 'optionalAccess', _8 => _8.hex]) || !_optionalChain([_chalk, 'optionalAccess', _9 => _9.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _10 => _10.whiteBright])) {
|
|
646
|
+
if (!_optionalChain([_chalk, 'optionalAccess', _6 => _6.hex]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.bold, 'optionalAccess', _8 => _8.hex]) || !_optionalChain([_chalk, 'optionalAccess', _9 => _9.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _10 => _10.whiteBright]) || !_optionalChain([_chalk, 'optionalAccess', _11 => _11.white])) {
|
|
643
647
|
_chalk = chalkDefault;
|
|
644
648
|
}
|
|
645
649
|
return _chalk;
|
|
@@ -727,7 +731,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
727
731
|
|
|
728
732
|
// ../config-tools/src/logger/console.ts
|
|
729
733
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
730
|
-
const colors = !_optionalChain([config, 'access',
|
|
734
|
+
const colors = !_optionalChain([config, 'access', _12 => _12.colors, 'optionalAccess', _13 => _13.dark]) && !_optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) && !_optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"], 'optionalAccess', _23 => _23.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _24 => _24.colors, 'optionalAccess', _25 => _25["base"]]) ? _optionalChain([config, 'access', _26 => _26.colors, 'optionalAccess', _27 => _27["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
731
735
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
732
736
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
733
737
|
return (_) => {
|
|
@@ -843,7 +847,7 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
|
|
|
843
847
|
};
|
|
844
848
|
var _isFunction = (value) => {
|
|
845
849
|
try {
|
|
846
|
-
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess',
|
|
850
|
+
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _28 => _28.constructor]) && _optionalChain([value, 'optionalAccess', _29 => _29.call]) && _optionalChain([value, 'optionalAccess', _30 => _30.apply]));
|
|
847
851
|
} catch (e) {
|
|
848
852
|
return false;
|
|
849
853
|
}
|
|
@@ -862,7 +866,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
862
866
|
cwd: workspacePath,
|
|
863
867
|
packageJson: true,
|
|
864
868
|
name: fileName,
|
|
865
|
-
envName: _optionalChain([fileName, 'optionalAccess',
|
|
869
|
+
envName: _optionalChain([fileName, 'optionalAccess', _31 => _31.toUpperCase, 'call', _32 => _32()]),
|
|
866
870
|
jitiOptions: {
|
|
867
871
|
debug: false,
|
|
868
872
|
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
|
|
@@ -876,7 +880,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
876
880
|
cwd: workspacePath,
|
|
877
881
|
packageJson: true,
|
|
878
882
|
name: fileName,
|
|
879
|
-
envName: _optionalChain([fileName, 'optionalAccess',
|
|
883
|
+
envName: _optionalChain([fileName, 'optionalAccess', _33 => _33.toUpperCase, 'call', _34 => _34()]),
|
|
880
884
|
jitiOptions: {
|
|
881
885
|
debug: false,
|
|
882
886
|
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
|
|
@@ -910,7 +914,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
910
914
|
)
|
|
911
915
|
);
|
|
912
916
|
for (const result2 of results) {
|
|
913
|
-
if (_optionalChain([result2, 'optionalAccess',
|
|
917
|
+
if (_optionalChain([result2, 'optionalAccess', _35 => _35.config]) && _optionalChain([result2, 'optionalAccess', _36 => _36.configFile]) && Object.keys(result2.config).length > 0) {
|
|
914
918
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
915
919
|
writeTrace(
|
|
916
920
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
@@ -1116,16 +1120,16 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
1116
1120
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1117
1121
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1118
1122
|
if (extension[key]) {
|
|
1119
|
-
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess',
|
|
1123
|
+
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _37 => _37.replace, 'call', _38 => _38(
|
|
1120
1124
|
/([A-Z])+/g,
|
|
1121
|
-
(input) => input ? _optionalChain([input, 'access',
|
|
1122
|
-
), 'access',
|
|
1125
|
+
(input) => input ? _optionalChain([input, 'access', _39 => _39[0], 'optionalAccess', _40 => _40.toUpperCase, 'call', _41 => _41()]) + input.slice(1) : ""
|
|
1126
|
+
), 'access', _42 => _42.split, 'call', _43 => _43(/(?=[A-Z])|[.\-\s_]/), 'access', _44 => _44.map, 'call', _45 => _45((x) => x.toLowerCase())]), () => ( []));
|
|
1123
1127
|
let extensionKey;
|
|
1124
1128
|
if (result.length === 0) {
|
|
1125
1129
|
return;
|
|
1126
1130
|
}
|
|
1127
1131
|
if (result.length === 1) {
|
|
1128
|
-
extensionKey = _nullishCoalesce(_optionalChain([result, 'access',
|
|
1132
|
+
extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _46 => _46[0], 'optionalAccess', _47 => _47.toUpperCase, 'call', _48 => _48()]), () => ( ""));
|
|
1129
1133
|
} else {
|
|
1130
1134
|
extensionKey = result.reduce((ret, part) => {
|
|
1131
1135
|
return `${ret}_${part.toLowerCase()}`;
|
|
@@ -1298,7 +1302,7 @@ var setConfigEnv = (config) => {
|
|
|
1298
1302
|
process.env.NODE_ENV = config.mode;
|
|
1299
1303
|
process.env.ENVIRONMENT = config.mode;
|
|
1300
1304
|
}
|
|
1301
|
-
if (_optionalChain([config, 'access',
|
|
1305
|
+
if (_optionalChain([config, 'access', _49 => _49.colors, 'optionalAccess', _50 => _50.base, 'optionalAccess', _51 => _51.light]) || _optionalChain([config, 'access', _52 => _52.colors, 'optionalAccess', _53 => _53.base, 'optionalAccess', _54 => _54.dark])) {
|
|
1302
1306
|
for (const key of Object.keys(config.colors)) {
|
|
1303
1307
|
setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
1304
1308
|
}
|
|
@@ -1359,7 +1363,7 @@ var setConfigEnv = (config) => {
|
|
|
1359
1363
|
}
|
|
1360
1364
|
};
|
|
1361
1365
|
var setThemeColorConfigEnv = (prefix, config) => {
|
|
1362
|
-
return _optionalChain([config, 'optionalAccess',
|
|
1366
|
+
return _optionalChain([config, 'optionalAccess', _55 => _55.light, 'optionalAccess', _56 => _56.brand]) || _optionalChain([config, 'optionalAccess', _57 => _57.dark, 'optionalAccess', _58 => _58.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
1363
1367
|
};
|
|
1364
1368
|
var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
1365
1369
|
if (config.dark) {
|
|
@@ -1461,7 +1465,7 @@ var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
|
1461
1465
|
var _static_cache = void 0;
|
|
1462
1466
|
var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
|
|
1463
1467
|
let result;
|
|
1464
|
-
if (!_optionalChain([_static_cache, 'optionalAccess',
|
|
1468
|
+
if (!_optionalChain([_static_cache, 'optionalAccess', _59 => _59.data]) || !_optionalChain([_static_cache, 'optionalAccess', _60 => _60.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1465
1469
|
let _workspaceRoot = workspaceRoot;
|
|
1466
1470
|
if (!_workspaceRoot) {
|
|
1467
1471
|
_workspaceRoot = findWorkspaceRoot();
|
|
@@ -1492,7 +1496,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1492
1496
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1493
1497
|
} catch (error) {
|
|
1494
1498
|
throw new Error(
|
|
1495
|
-
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess',
|
|
1499
|
+
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _61 => _61.message]) ? `: ${error.message}` : ""}
|
|
1496
1500
|
|
|
1497
1501
|
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
|
|
1498
1502
|
configInput
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBALQIROHjs = require('./chunk-BALQIROH.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
6
6
|
var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
@@ -37,7 +37,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
|
37
37
|
if (result.includes("{workspaceRoot}")) {
|
|
38
38
|
result = result.replaceAll(
|
|
39
39
|
"{workspaceRoot}",
|
|
40
|
-
_nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => (
|
|
40
|
+
_nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => ( _chunkBALQIROHjs.findWorkspaceRoot.call(void 0, )))
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
43
|
return result;
|
|
@@ -621,16 +621,20 @@ import chalk from "chalk";
|
|
|
621
621
|
var chalkDefault = {
|
|
622
622
|
hex: (_) => (message) => message,
|
|
623
623
|
bgHex: (_) => ({
|
|
624
|
-
whiteBright: (message) => message
|
|
624
|
+
whiteBright: (message) => message,
|
|
625
|
+
white: (message) => message
|
|
625
626
|
}),
|
|
627
|
+
white: (message) => message,
|
|
626
628
|
whiteBright: (message) => message,
|
|
627
629
|
gray: (message) => message,
|
|
628
630
|
bold: {
|
|
629
631
|
hex: (_) => (message) => message,
|
|
630
632
|
bgHex: (_) => ({
|
|
631
|
-
whiteBright: (message) => message
|
|
633
|
+
whiteBright: (message) => message,
|
|
634
|
+
white: (message) => message
|
|
632
635
|
}),
|
|
633
|
-
whiteBright: (message) => message
|
|
636
|
+
whiteBright: (message) => message,
|
|
637
|
+
white: (message) => message
|
|
634
638
|
},
|
|
635
639
|
dim: {
|
|
636
640
|
hex: (_) => (message) => message,
|
|
@@ -639,7 +643,7 @@ var chalkDefault = {
|
|
|
639
643
|
};
|
|
640
644
|
var getChalk = () => {
|
|
641
645
|
let _chalk = chalk;
|
|
642
|
-
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
646
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) {
|
|
643
647
|
_chalk = chalkDefault;
|
|
644
648
|
}
|
|
645
649
|
return _chalk;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkBWJB4BMLjs = require('./chunk-BWJB4BML.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ var _chunkUOZBIABYjs = require('./chunk-UOZBIABY.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkBALQIROHjs = require('./chunk-BALQIROH.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk4AADQIGWjs = require('./chunk-4AADQIGW.js');
|
|
@@ -22,7 +22,7 @@ var _chunk4AADQIGWjs = require('./chunk-4AADQIGW.js');
|
|
|
22
22
|
// ../workspace-tools/src/base/base-executor.ts
|
|
23
23
|
var _defu = require('defu');
|
|
24
24
|
var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
25
|
-
const stopwatch =
|
|
25
|
+
const stopwatch = _chunkBALQIROHjs.getStopwatch.call(void 0, name);
|
|
26
26
|
let options = _options;
|
|
27
27
|
let config = {};
|
|
28
28
|
try {
|
|
@@ -31,14 +31,14 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
31
31
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
|
-
const workspaceRoot =
|
|
34
|
+
const workspaceRoot = _chunkBALQIROHjs.findWorkspaceRoot.call(void 0, );
|
|
35
35
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot;
|
|
36
36
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
37
37
|
const projectName = context.projectName;
|
|
38
38
|
config.workspaceRoot = workspaceRoot;
|
|
39
|
-
|
|
39
|
+
_chunkBALQIROHjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
40
40
|
if (!executorOptions.skipReadingConfig) {
|
|
41
|
-
|
|
41
|
+
_chunkBALQIROHjs.writeTrace.call(void 0,
|
|
42
42
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
43
43
|
- workspaceRoot: ${workspaceRoot}
|
|
44
44
|
- projectRoot: ${projectRoot}
|
|
@@ -47,42 +47,42 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
47
47
|
`,
|
|
48
48
|
config
|
|
49
49
|
);
|
|
50
|
-
config = await
|
|
50
|
+
config = await _chunkBALQIROHjs.getConfig.call(void 0, workspaceRoot);
|
|
51
51
|
}
|
|
52
52
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
53
|
-
|
|
53
|
+
_chunkBALQIROHjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
54
54
|
options = await Promise.resolve(
|
|
55
55
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
56
56
|
);
|
|
57
|
-
|
|
57
|
+
_chunkBALQIROHjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
_chunkBALQIROHjs.writeTrace.call(void 0,
|
|
60
60
|
`Executor schema options \u2699\uFE0F
|
|
61
|
-
${
|
|
61
|
+
${_chunkBALQIROHjs.formatLogMessage.call(void 0, options)}
|
|
62
62
|
`,
|
|
63
63
|
config
|
|
64
64
|
);
|
|
65
|
-
const tokenized = await
|
|
65
|
+
const tokenized = await _chunkBWJB4BMLjs.applyWorkspaceTokens.call(void 0,
|
|
66
66
|
options,
|
|
67
67
|
_defu.defu.call(void 0,
|
|
68
68
|
{ workspaceRoot, projectRoot, sourceRoot, projectName, config },
|
|
69
69
|
config,
|
|
70
70
|
context.projectsConfigurations.projects[context.projectName]
|
|
71
71
|
),
|
|
72
|
-
|
|
72
|
+
_chunkBWJB4BMLjs.applyWorkspaceProjectTokens
|
|
73
73
|
);
|
|
74
|
-
|
|
74
|
+
_chunkBALQIROHjs.writeTrace.call(void 0,
|
|
75
75
|
`Executor schema tokenized options \u2699\uFE0F
|
|
76
|
-
${
|
|
76
|
+
${_chunkBALQIROHjs.formatLogMessage.call(void 0, tokenized)}
|
|
77
77
|
`,
|
|
78
78
|
config
|
|
79
79
|
);
|
|
80
80
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
81
|
-
|
|
81
|
+
_chunkBALQIROHjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
82
82
|
await Promise.resolve(
|
|
83
83
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
84
84
|
);
|
|
85
|
-
|
|
85
|
+
_chunkBALQIROHjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
86
86
|
}
|
|
87
87
|
const ret = executorFn(tokenized, context, config);
|
|
88
88
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -95,9 +95,9 @@ ${_chunkORBOK4VZjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
95
95
|
ret
|
|
96
96
|
);
|
|
97
97
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _8 => _8.error, 'optionalAccess', _9 => _9.message]) && typeof _optionalChain([result, 'optionalAccess', _10 => _10.error, 'optionalAccess', _11 => _11.message]) === "string" && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.name]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.name]) === "string")) {
|
|
98
|
-
|
|
98
|
+
_chunkBALQIROHjs.writeTrace.call(void 0,
|
|
99
99
|
`Failure determined by the ${name} executor
|
|
100
|
-
${
|
|
100
|
+
${_chunkBALQIROHjs.formatLogMessage.call(void 0, result)}`,
|
|
101
101
|
config
|
|
102
102
|
);
|
|
103
103
|
console.error(result);
|
|
@@ -106,21 +106,21 @@ ${_chunkORBOK4VZjs.formatLogMessage.call(void 0, result)}`,
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
109
|
-
|
|
109
|
+
_chunkBALQIROHjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
110
110
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
111
|
-
|
|
111
|
+
_chunkBALQIROHjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
_chunkBALQIROHjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
114
114
|
`, config);
|
|
115
115
|
return {
|
|
116
116
|
success: true
|
|
117
117
|
};
|
|
118
118
|
} catch (error) {
|
|
119
|
-
|
|
119
|
+
_chunkBALQIROHjs.writeFatal.call(void 0,
|
|
120
120
|
"A fatal error occurred while running the executor - the process was forced to terminate",
|
|
121
121
|
config
|
|
122
122
|
);
|
|
123
|
-
|
|
123
|
+
_chunkBALQIROHjs.writeError.call(void 0,
|
|
124
124
|
`An exception was thrown in the executor's process
|
|
125
125
|
- Details: ${error.message}
|
|
126
126
|
- Stacktrace: ${error.stack}`,
|
|
@@ -172,7 +172,7 @@ async function serveExecutor(options, context, config) {
|
|
|
172
172
|
remote: options.remote
|
|
173
173
|
});
|
|
174
174
|
} else {
|
|
175
|
-
|
|
175
|
+
_chunkBALQIROHjs.writeWarning.call(void 0, `Chart packaged at: ${chartPath}`, config);
|
|
176
176
|
}
|
|
177
177
|
return {
|
|
178
178
|
success: true
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceBaseTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VUNLN4IF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findWorkspaceRoot,
|
|
7
7
|
getConfig,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
writeInfo,
|
|
13
13
|
writeSuccess,
|
|
14
14
|
writeTrace
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EBXC3NOB.mjs";
|
|
16
16
|
|
|
17
17
|
// ../workspace-tools/src/base/base-generator.ts
|
|
18
18
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var _chunkXJT7AOEUjs = require('./chunk-XJT7AOEU.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBWJB4BMLjs = require('./chunk-BWJB4BML.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkBALQIROHjs = require('./chunk-BALQIROH.js');
|
|
11
11
|
|
|
12
12
|
// src/executors/container-publish/executor.ts
|
|
13
13
|
|
|
@@ -64,7 +64,7 @@ var applyWorkspaceExecutorTokens = async (option, tokenizerOptions) => {
|
|
|
64
64
|
if (result.includes("{workspaceRoot}")) {
|
|
65
65
|
result = result.replaceAll(
|
|
66
66
|
"{workspaceRoot}",
|
|
67
|
-
_nullishCoalesce(tokenizerOptions.workspaceRoot, () => (
|
|
67
|
+
_nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunkBALQIROHjs.findWorkspaceRoot.call(void 0, )))
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
70
|
return result;
|
|
@@ -80,8 +80,8 @@ async function* publishExecutor(options, context) {
|
|
|
80
80
|
console.info(
|
|
81
81
|
`\u{1F680} Running Storm Container Registry Publish executor on the ${context.projectName} crate`
|
|
82
82
|
);
|
|
83
|
-
const workspaceRoot =
|
|
84
|
-
const config = await
|
|
83
|
+
const workspaceRoot = _chunkBALQIROHjs.findWorkspaceRoot.call(void 0, );
|
|
84
|
+
const config = await _chunkBALQIROHjs.getConfig.call(void 0, workspaceRoot);
|
|
85
85
|
const projectConfig = _optionalChain([context, 'access', _2 => _2.projectsConfigurations, 'optionalAccess', _3 => _3.projects, 'access', _4 => _4[context.projectName]]);
|
|
86
86
|
if (!projectConfig) {
|
|
87
87
|
throw new Error(
|
|
@@ -92,7 +92,7 @@ async function* publishExecutor(options, context) {
|
|
|
92
92
|
const sourceRoot = _nullishCoalesce(_optionalChain([projectConfig, 'optionalAccess', _6 => _6.sourceRoot]), () => ( workspaceRoot));
|
|
93
93
|
const projectName = _nullishCoalesce(_optionalChain([projectConfig, 'optionalAccess', _7 => _7.name]), () => ( context.projectName));
|
|
94
94
|
config.workspaceRoot = workspaceRoot;
|
|
95
|
-
const tokenized = await
|
|
95
|
+
const tokenized = await _chunkBWJB4BMLjs.applyWorkspaceTokens.call(void 0,
|
|
96
96
|
options,
|
|
97
97
|
{
|
|
98
98
|
config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkBWJB4BMLjs = require('./chunk-BWJB4BML.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,51 +12,51 @@ var _chunkUOZBIABYjs = require('./chunk-UOZBIABY.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkBALQIROHjs = require('./chunk-BALQIROH.js');
|
|
16
16
|
|
|
17
17
|
// ../workspace-tools/src/base/base-generator.ts
|
|
18
18
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
19
19
|
skipReadingConfig: false
|
|
20
20
|
}) => async (tree, _options) => {
|
|
21
|
-
const stopwatch =
|
|
21
|
+
const stopwatch = _chunkBALQIROHjs.getStopwatch.call(void 0, name);
|
|
22
22
|
let options = _options;
|
|
23
23
|
let config;
|
|
24
24
|
try {
|
|
25
|
-
|
|
25
|
+
_chunkBALQIROHjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
26
26
|
|
|
27
27
|
`, config);
|
|
28
|
-
const workspaceRoot =
|
|
28
|
+
const workspaceRoot = _chunkBALQIROHjs.findWorkspaceRoot.call(void 0, );
|
|
29
29
|
if (!generatorOptions.skipReadingConfig) {
|
|
30
|
-
|
|
30
|
+
_chunkBALQIROHjs.writeDebug.call(void 0,
|
|
31
31
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
32
32
|
- workspaceRoot: ${workspaceRoot}`,
|
|
33
33
|
config
|
|
34
34
|
);
|
|
35
|
-
config = await
|
|
35
|
+
config = await _chunkBALQIROHjs.getConfig.call(void 0, workspaceRoot);
|
|
36
36
|
}
|
|
37
37
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
38
|
-
|
|
38
|
+
_chunkBALQIROHjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
39
39
|
options = await Promise.resolve(
|
|
40
40
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
41
41
|
);
|
|
42
|
-
|
|
42
|
+
_chunkBALQIROHjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
_chunkBALQIROHjs.writeTrace.call(void 0,
|
|
45
45
|
`Generator schema options \u2699\uFE0F
|
|
46
46
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
47
47
|
config
|
|
48
48
|
);
|
|
49
|
-
const tokenized = await
|
|
49
|
+
const tokenized = await _chunkBWJB4BMLjs.applyWorkspaceTokens.call(void 0,
|
|
50
50
|
options,
|
|
51
51
|
{ workspaceRoot: tree.root, config },
|
|
52
|
-
|
|
52
|
+
_chunkBWJB4BMLjs.applyWorkspaceBaseTokens
|
|
53
53
|
);
|
|
54
54
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
55
|
-
|
|
55
|
+
_chunkBALQIROHjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
56
56
|
await Promise.resolve(
|
|
57
57
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
58
58
|
);
|
|
59
|
-
|
|
59
|
+
_chunkBALQIROHjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
60
60
|
}
|
|
61
61
|
const result = await Promise.resolve(
|
|
62
62
|
generatorFn(tree, tokenized, config)
|
|
@@ -71,21 +71,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
74
|
-
|
|
74
|
+
_chunkBALQIROHjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
75
75
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
76
|
-
|
|
76
|
+
_chunkBALQIROHjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
77
77
|
}
|
|
78
78
|
return () => {
|
|
79
|
-
|
|
79
|
+
_chunkBALQIROHjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
80
80
|
`, config);
|
|
81
81
|
};
|
|
82
82
|
} catch (error) {
|
|
83
83
|
return () => {
|
|
84
|
-
|
|
84
|
+
_chunkBALQIROHjs.writeFatal.call(void 0,
|
|
85
85
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
86
86
|
config
|
|
87
87
|
);
|
|
88
|
-
|
|
88
|
+
_chunkBALQIROHjs.writeError.call(void 0,
|
|
89
89
|
`An exception was thrown in the generator's process
|
|
90
90
|
- Details: ${error.message}
|
|
91
91
|
- Stacktrace: ${error.stack}`,
|