@storm-software/k8s-tools 0.42.136 → 0.42.137
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 +12 -0
- package/README.md +1 -1
- package/dist/{chunk-IOKYYZWX.mjs → chunk-2UC4FK3T.mjs} +2 -2
- package/dist/{chunk-EYPBUFPL.mjs → chunk-552QN2NR.mjs} +2 -2
- package/dist/chunk-A7Y3C3GT.js +202 -0
- package/dist/{chunk-DQ6YPI3I.mjs → chunk-ABUSHSLV.mjs} +1 -1
- package/dist/{chunk-OPAEZJF6.mjs → chunk-B3SGBF5T.mjs} +3 -3
- package/dist/{chunk-ZXM4G35O.js → chunk-BCTLJQEZ.js} +3 -3
- package/dist/{chunk-ULPF44XA.mjs → chunk-BKAW2YSB.mjs} +1 -1
- package/dist/{chunk-QJR6N4PL.js → chunk-C55DOLYT.js} +2 -2
- package/dist/{chunk-MNSGJMJV.js → chunk-DVCZGSQU.js} +20 -20
- package/dist/{chunk-EL6QE5FA.js → chunk-EOWUKLS4.js} +4 -4
- package/dist/{chunk-6VH66K6T.js → chunk-F2HUPD62.js} +25 -25
- package/dist/{chunk-F244EGT5.mjs → chunk-FC3SS2PJ.mjs} +1 -1
- package/dist/{chunk-EA47D42R.js → chunk-HDCLRS5K.js} +3 -3
- package/dist/{chunk-3I3ODZKV.mjs → chunk-L73IY6PR.mjs} +3 -3
- package/dist/chunk-LLXF5T2B.mjs +202 -0
- package/dist/chunk-M5IOCZK5.js +136 -0
- package/dist/{chunk-RECN4I7A.mjs → chunk-OBUQ7WTG.mjs} +2 -2
- package/dist/{chunk-MSZUOD43.mjs → chunk-Q3YQLTYS.mjs} +3 -3
- package/dist/chunk-QHDPAEHO.mjs +136 -0
- package/dist/{chunk-A26WMRXU.mjs → chunk-ROFXLFVW.mjs} +1 -1
- package/dist/{chunk-ZJRDUBGT.js → chunk-X6ZEMTJI.js} +6 -6
- package/dist/{chunk-NSW2CKUH.mjs → chunk-ZN7HUYUZ.mjs} +1 -1
- package/dist/{chunk-YOHT3QWT.js → chunk-ZYR5UQEI.js} +4 -4
- 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 +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - K8s Tools
|
|
4
4
|
|
|
5
|
+
## [0.42.136](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.42.136) (03/19/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update `README.md` files ([46aa73215](https://github.com/storm-software/storm-ops/commit/46aa73215))
|
|
10
|
+
|
|
11
|
+
### Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated **workspace-tools** to **v1.295.21**
|
|
14
|
+
- Updated **config-tools** to **v1.189.45**
|
|
15
|
+
- Updated **config** to **v1.136.4**
|
|
16
|
+
|
|
5
17
|
## [0.42.135](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.42.135) (03/19/2026)
|
|
6
18
|
|
|
7
19
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-WS2G4IWW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
applyWorkspaceTokens
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ABUSHSLV.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
getConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-B3SGBF5T.mjs";
|
|
11
11
|
|
|
12
12
|
// src/executors/container-publish/executor.ts
|
|
13
13
|
import {
|
|
@@ -0,0 +1,202 @@
|
|
|
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
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkC55DOLYTjs = require('./chunk-C55DOLYT.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var _chunkHDCLRS5Kjs = require('./chunk-HDCLRS5K.js');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _chunkM5IOCZK5js = require('./chunk-M5IOCZK5.js');
|
|
22
|
+
|
|
23
|
+
// ../workspace-tools/src/base/base-executor.ts
|
|
24
|
+
var _defu = require('defu');
|
|
25
|
+
var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
26
|
+
const stopwatch = _chunkHDCLRS5Kjs.getStopwatch.call(void 0, name);
|
|
27
|
+
let options = _options;
|
|
28
|
+
let config = {};
|
|
29
|
+
try {
|
|
30
|
+
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
31
|
+
throw new Error(
|
|
32
|
+
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
const workspaceRoot = _chunkHDCLRS5Kjs.findWorkspaceRoot.call(void 0, );
|
|
36
|
+
const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot;
|
|
37
|
+
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
38
|
+
const projectName = context.projectName;
|
|
39
|
+
config.workspaceRoot = workspaceRoot;
|
|
40
|
+
_chunkHDCLRS5Kjs.writeInfo.call(void 0,
|
|
41
|
+
`${_chunkHDCLRS5Kjs.brandIcon.call(void 0, config)} Running the ${name} executor for ${projectName} `,
|
|
42
|
+
config
|
|
43
|
+
);
|
|
44
|
+
if (!executorOptions.skipReadingConfig) {
|
|
45
|
+
_chunkHDCLRS5Kjs.writeTrace.call(void 0,
|
|
46
|
+
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
47
|
+
- workspaceRoot: ${workspaceRoot}
|
|
48
|
+
- projectRoot: ${projectRoot}
|
|
49
|
+
- sourceRoot: ${sourceRoot}
|
|
50
|
+
- projectName: ${projectName}
|
|
51
|
+
`,
|
|
52
|
+
config
|
|
53
|
+
);
|
|
54
|
+
config = await _chunkHDCLRS5Kjs.getConfig.call(void 0, workspaceRoot);
|
|
55
|
+
}
|
|
56
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
57
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
58
|
+
options = await Promise.resolve(
|
|
59
|
+
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
60
|
+
);
|
|
61
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
62
|
+
}
|
|
63
|
+
_chunkHDCLRS5Kjs.writeTrace.call(void 0,
|
|
64
|
+
`Executor schema options \u2699\uFE0F
|
|
65
|
+
${_chunkHDCLRS5Kjs.formatLogMessage.call(void 0, options)}
|
|
66
|
+
`,
|
|
67
|
+
config
|
|
68
|
+
);
|
|
69
|
+
const tokenized = await _chunkC55DOLYTjs.applyWorkspaceTokens.call(void 0,
|
|
70
|
+
options,
|
|
71
|
+
_defu.defu.call(void 0,
|
|
72
|
+
{ workspaceRoot, projectRoot, sourceRoot, projectName, config },
|
|
73
|
+
config,
|
|
74
|
+
context.projectsConfigurations.projects[context.projectName]
|
|
75
|
+
),
|
|
76
|
+
_chunkC55DOLYTjs.applyWorkspaceProjectTokens
|
|
77
|
+
);
|
|
78
|
+
_chunkHDCLRS5Kjs.writeTrace.call(void 0,
|
|
79
|
+
`Executor schema tokenized options \u2699\uFE0F
|
|
80
|
+
${_chunkHDCLRS5Kjs.formatLogMessage.call(void 0, tokenized)}
|
|
81
|
+
`,
|
|
82
|
+
config
|
|
83
|
+
);
|
|
84
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
85
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
86
|
+
await Promise.resolve(
|
|
87
|
+
executorOptions.hooks.preProcess(tokenized, config)
|
|
88
|
+
);
|
|
89
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
90
|
+
}
|
|
91
|
+
const ret = executorFn(tokenized, context, config);
|
|
92
|
+
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
93
|
+
const asyncGen = ret;
|
|
94
|
+
for await (const iter of asyncGen) {
|
|
95
|
+
void iter;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
const result = await Promise.resolve(
|
|
99
|
+
ret
|
|
100
|
+
);
|
|
101
|
+
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")) {
|
|
102
|
+
throw new Error(
|
|
103
|
+
`Failure determined while running the ${name} executor
|
|
104
|
+
${_chunkHDCLRS5Kjs.formatLogMessage.call(void 0,
|
|
105
|
+
result
|
|
106
|
+
)}`,
|
|
107
|
+
{
|
|
108
|
+
cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
113
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
114
|
+
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
115
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
116
|
+
}
|
|
117
|
+
_chunkHDCLRS5Kjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
118
|
+
`, config);
|
|
119
|
+
return {
|
|
120
|
+
success: true
|
|
121
|
+
};
|
|
122
|
+
} catch (error) {
|
|
123
|
+
_chunkHDCLRS5Kjs.writeFatal.call(void 0,
|
|
124
|
+
"A fatal error occurred while running the executor - the process was forced to terminate",
|
|
125
|
+
config
|
|
126
|
+
);
|
|
127
|
+
_chunkHDCLRS5Kjs.writeError.call(void 0,
|
|
128
|
+
`An exception was thrown in the executor's process
|
|
129
|
+
- Details: ${error.message}
|
|
130
|
+
- Stacktrace: ${error.stack}`,
|
|
131
|
+
config
|
|
132
|
+
);
|
|
133
|
+
return {
|
|
134
|
+
success: false
|
|
135
|
+
};
|
|
136
|
+
} finally {
|
|
137
|
+
stopwatch();
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
var _isFunction = (value) => {
|
|
141
|
+
try {
|
|
142
|
+
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _19 => _19.constructor]) && _optionalChain([value, 'optionalAccess', _20 => _20.call]) && _optionalChain([value, 'optionalAccess', _21 => _21.apply]));
|
|
143
|
+
} catch (e) {
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
// src/executors/helm-package/executor.ts
|
|
149
|
+
async function serveExecutor(options, context, config) {
|
|
150
|
+
if (!_optionalChain([context, 'optionalAccess', _22 => _22.projectName]) || !_optionalChain([context, 'optionalAccess', _23 => _23.projectsConfigurations, 'optionalAccess', _24 => _24.projects, 'optionalAccess', _25 => _25[context.projectName], 'optionalAccess', _26 => _26.root])) {
|
|
151
|
+
throw new Error("Nx executor context was invalid");
|
|
152
|
+
}
|
|
153
|
+
const helm = _chunkM5IOCZK5js.createHelmClient.call(void 0, );
|
|
154
|
+
if (_optionalChain([options, 'access', _27 => _27.dependencies, 'optionalAccess', _28 => _28.repositories])) {
|
|
155
|
+
for (const repository of options.dependencies.repositories) {
|
|
156
|
+
if (repository.name && repository.url) {
|
|
157
|
+
helm.addRepository(repository.name, repository.url);
|
|
158
|
+
} else {
|
|
159
|
+
throw new Error("Repository name and url are required");
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
if (_optionalChain([options, 'access', _29 => _29.dependencies, 'optionalAccess', _30 => _30.update])) {
|
|
164
|
+
helm.dependencyUpdate(options.chartFolder);
|
|
165
|
+
}
|
|
166
|
+
if (_optionalChain([options, 'access', _31 => _31.dependencies, 'optionalAccess', _32 => _32.build])) {
|
|
167
|
+
helm.dependencyBuild(options.chartFolder);
|
|
168
|
+
}
|
|
169
|
+
const chartPath = await helm.package({
|
|
170
|
+
chartFolder: options.chartFolder,
|
|
171
|
+
outputFolder: options.outputFolder
|
|
172
|
+
});
|
|
173
|
+
if (options.push && chartPath && options.remote) {
|
|
174
|
+
helm.push({
|
|
175
|
+
chartPath,
|
|
176
|
+
remote: options.remote
|
|
177
|
+
});
|
|
178
|
+
} else {
|
|
179
|
+
_chunkHDCLRS5Kjs.writeWarning.call(void 0, `Chart packaged at: ${chartPath}`, config);
|
|
180
|
+
}
|
|
181
|
+
return {
|
|
182
|
+
success: true
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
var executor_default = withRunExecutor(
|
|
186
|
+
"Helm Chart Package executor",
|
|
187
|
+
serveExecutor,
|
|
188
|
+
{
|
|
189
|
+
skipReadingConfig: false,
|
|
190
|
+
hooks: {
|
|
191
|
+
applyDefaultOptions: (options) => {
|
|
192
|
+
options.port ??= 4500;
|
|
193
|
+
return options;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
);
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
exports.serveExecutor = serveExecutor; exports.executor_default = executor_default;
|
|
@@ -41,7 +41,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
41
41
|
warning: "#e3b341",
|
|
42
42
|
danger: "#D8314A",
|
|
43
43
|
fatal: "#51070f",
|
|
44
|
-
performance: "#
|
|
44
|
+
performance: "#13c302",
|
|
45
45
|
link: "#3fa6ff",
|
|
46
46
|
positive: "#22c55e",
|
|
47
47
|
negative: "#dc2626",
|
|
@@ -59,7 +59,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
59
59
|
warning: "#f3d371",
|
|
60
60
|
danger: "#D8314A",
|
|
61
61
|
fatal: "#a40e26",
|
|
62
|
-
performance: "#
|
|
62
|
+
performance: "#80fd74",
|
|
63
63
|
link: "#3fa6ff",
|
|
64
64
|
positive: "#22c55e",
|
|
65
65
|
negative: "#dc2626",
|
|
@@ -683,7 +683,7 @@ var fatalColorSchema = z.optional(colorSchema);
|
|
|
683
683
|
schemaRegistry.add(fatalColorSchema, {
|
|
684
684
|
description: "The fatal color of the workspace"
|
|
685
685
|
});
|
|
686
|
-
var performanceColorSchema = z._default(colorSchema, "#
|
|
686
|
+
var performanceColorSchema = z._default(colorSchema, "#80fd74");
|
|
687
687
|
schemaRegistry.add(performanceColorSchema, {
|
|
688
688
|
description: "The performance color of the workspace"
|
|
689
689
|
});
|
|
@@ -8,7 +8,7 @@ var _chunkKBSSJUPWjs = require('./chunk-KBSSJUPW.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkHDCLRS5Kjs = require('./chunk-HDCLRS5K.js');
|
|
12
12
|
|
|
13
13
|
// src/plugins/docker/_dockerfile.ts
|
|
14
14
|
|
|
@@ -42,8 +42,8 @@ var createNodesV2 = [
|
|
|
42
42
|
if (_optionalChain([projectJson, 'optionalAccess', _ => _.name])) {
|
|
43
43
|
return {};
|
|
44
44
|
}
|
|
45
|
-
const workspaceRoot =
|
|
46
|
-
const config = await
|
|
45
|
+
const workspaceRoot = _chunkHDCLRS5Kjs.findWorkspaceRoot.call(void 0, );
|
|
46
|
+
const config = await _chunkHDCLRS5Kjs.getConfig.call(void 0, workspaceRoot);
|
|
47
47
|
Object.keys(projectJson).forEach((key) => {
|
|
48
48
|
if (!project[key]) {
|
|
49
49
|
project[key] = projectJson[key];
|
|
@@ -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 _chunkHDCLRS5Kjs = require('./chunk-HDCLRS5K.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]))), () => ( _chunkHDCLRS5Kjs.findWorkspaceRoot.call(void 0, )))
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
43
|
return result;
|
|
@@ -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 _chunkC55DOLYTjs = require('./chunk-C55DOLYT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -13,54 +13,54 @@ var _chunkQJR6N4PLjs = require('./chunk-QJR6N4PL.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkHDCLRS5Kjs = require('./chunk-HDCLRS5K.js');
|
|
17
17
|
|
|
18
18
|
// ../workspace-tools/src/base/base-generator.ts
|
|
19
19
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
20
20
|
skipReadingConfig: false
|
|
21
21
|
}) => async (tree, _options) => {
|
|
22
|
-
const stopwatch =
|
|
22
|
+
const stopwatch = _chunkHDCLRS5Kjs.getStopwatch.call(void 0, name);
|
|
23
23
|
let options = _options;
|
|
24
24
|
let config;
|
|
25
25
|
try {
|
|
26
|
-
|
|
27
|
-
`${
|
|
26
|
+
_chunkHDCLRS5Kjs.writeInfo.call(void 0,
|
|
27
|
+
`${_chunkHDCLRS5Kjs.brandIcon.call(void 0, config)} Running the ${name} generator...
|
|
28
28
|
|
|
29
29
|
`,
|
|
30
30
|
config
|
|
31
31
|
);
|
|
32
|
-
const workspaceRoot =
|
|
32
|
+
const workspaceRoot = _chunkHDCLRS5Kjs.findWorkspaceRoot.call(void 0, );
|
|
33
33
|
if (!generatorOptions.skipReadingConfig) {
|
|
34
|
-
|
|
34
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0,
|
|
35
35
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
36
36
|
- workspaceRoot: ${workspaceRoot}`,
|
|
37
37
|
config
|
|
38
38
|
);
|
|
39
|
-
config = await
|
|
39
|
+
config = await _chunkHDCLRS5Kjs.getConfig.call(void 0, workspaceRoot);
|
|
40
40
|
}
|
|
41
41
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
42
|
-
|
|
42
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
43
43
|
options = await Promise.resolve(
|
|
44
44
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
45
45
|
);
|
|
46
|
-
|
|
46
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
_chunkHDCLRS5Kjs.writeTrace.call(void 0,
|
|
49
49
|
`Generator schema options \u2699\uFE0F
|
|
50
50
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
51
51
|
config
|
|
52
52
|
);
|
|
53
|
-
const tokenized = await
|
|
53
|
+
const tokenized = await _chunkC55DOLYTjs.applyWorkspaceTokens.call(void 0,
|
|
54
54
|
options,
|
|
55
55
|
{ workspaceRoot: tree.root, config },
|
|
56
|
-
|
|
56
|
+
_chunkC55DOLYTjs.applyWorkspaceBaseTokens
|
|
57
57
|
);
|
|
58
58
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
59
|
-
|
|
59
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
60
60
|
await Promise.resolve(
|
|
61
61
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
62
62
|
);
|
|
63
|
-
|
|
63
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
64
64
|
}
|
|
65
65
|
const result = await Promise.resolve(
|
|
66
66
|
generatorFn(tree, tokenized, config)
|
|
@@ -75,21 +75,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
78
|
-
|
|
78
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
79
79
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
80
|
-
|
|
80
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
81
81
|
}
|
|
82
82
|
return () => {
|
|
83
|
-
|
|
83
|
+
_chunkHDCLRS5Kjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
84
84
|
`, config);
|
|
85
85
|
};
|
|
86
86
|
} catch (error) {
|
|
87
87
|
return () => {
|
|
88
|
-
|
|
88
|
+
_chunkHDCLRS5Kjs.writeFatal.call(void 0,
|
|
89
89
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
90
90
|
config
|
|
91
91
|
);
|
|
92
|
-
|
|
92
|
+
_chunkHDCLRS5Kjs.writeError.call(void 0,
|
|
93
93
|
`An exception was thrown in the generator's process
|
|
94
94
|
- Details: ${error.message}
|
|
95
95
|
- Stacktrace: ${error.stack}`,
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkDVCZGSQUjs = require('./chunk-DVCZGSQU.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkHDCLRS5Kjs = require('./chunk-HDCLRS5K.js');
|
|
7
7
|
|
|
8
8
|
// src/generators/helm-dependency/generator.ts
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ var _chunkEA47D42Rjs = require('./chunk-EA47D42R.js');
|
|
|
13
13
|
var _devkit = require('@nx/devkit');
|
|
14
14
|
var _yaml = require('yaml');
|
|
15
15
|
async function helmDependencyGeneratorFn(tree, options, config) {
|
|
16
|
-
|
|
16
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "\u{1F4DD} Preparing to add Helm Dependency", config);
|
|
17
17
|
const project = _devkit.readProjectConfiguration.call(void 0, tree, options.project);
|
|
18
18
|
if (!_optionalChain([project, 'access', _ => _.targets, 'optionalAccess', _2 => _2["helm-package"]])) {
|
|
19
19
|
throw new Error(
|
|
@@ -39,7 +39,7 @@ async function helmDependencyGeneratorFn(tree, options, config) {
|
|
|
39
39
|
success: true
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
var generator_default =
|
|
42
|
+
var generator_default = _chunkDVCZGSQUjs.withRunGenerator.call(void 0,
|
|
43
43
|
"Helm Dependency",
|
|
44
44
|
helmDependencyGeneratorFn
|
|
45
45
|
);
|
|
@@ -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 _chunkC55DOLYTjs = require('./chunk-C55DOLYT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ var _chunkQJR6N4PLjs = require('./chunk-QJR6N4PL.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkHDCLRS5Kjs = require('./chunk-HDCLRS5K.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunk4AADQIGWjs = require('./chunk-4AADQIGW.js');
|
|
@@ -23,7 +23,7 @@ var _chunk4AADQIGWjs = require('./chunk-4AADQIGW.js');
|
|
|
23
23
|
// ../workspace-tools/src/base/base-executor.ts
|
|
24
24
|
var _defu = require('defu');
|
|
25
25
|
var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkHDCLRS5Kjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config = {};
|
|
29
29
|
try {
|
|
@@ -32,17 +32,17 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
32
32
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
|
-
const workspaceRoot =
|
|
35
|
+
const workspaceRoot = _chunkHDCLRS5Kjs.findWorkspaceRoot.call(void 0, );
|
|
36
36
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot;
|
|
37
37
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
38
38
|
const projectName = context.projectName;
|
|
39
39
|
config.workspaceRoot = workspaceRoot;
|
|
40
|
-
|
|
41
|
-
`${
|
|
40
|
+
_chunkHDCLRS5Kjs.writeInfo.call(void 0,
|
|
41
|
+
`${_chunkHDCLRS5Kjs.brandIcon.call(void 0, config)} Running the ${name} executor for ${projectName} `,
|
|
42
42
|
config
|
|
43
43
|
);
|
|
44
44
|
if (!executorOptions.skipReadingConfig) {
|
|
45
|
-
|
|
45
|
+
_chunkHDCLRS5Kjs.writeTrace.call(void 0,
|
|
46
46
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
47
47
|
- workspaceRoot: ${workspaceRoot}
|
|
48
48
|
- projectRoot: ${projectRoot}
|
|
@@ -51,42 +51,42 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
51
51
|
`,
|
|
52
52
|
config
|
|
53
53
|
);
|
|
54
|
-
config = await
|
|
54
|
+
config = await _chunkHDCLRS5Kjs.getConfig.call(void 0, workspaceRoot);
|
|
55
55
|
}
|
|
56
56
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
57
|
-
|
|
57
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
58
58
|
options = await Promise.resolve(
|
|
59
59
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
60
60
|
);
|
|
61
|
-
|
|
61
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
_chunkHDCLRS5Kjs.writeTrace.call(void 0,
|
|
64
64
|
`Executor schema options \u2699\uFE0F
|
|
65
|
-
${
|
|
65
|
+
${_chunkHDCLRS5Kjs.formatLogMessage.call(void 0, options)}
|
|
66
66
|
`,
|
|
67
67
|
config
|
|
68
68
|
);
|
|
69
|
-
const tokenized = await
|
|
69
|
+
const tokenized = await _chunkC55DOLYTjs.applyWorkspaceTokens.call(void 0,
|
|
70
70
|
options,
|
|
71
71
|
_defu.defu.call(void 0,
|
|
72
72
|
{ workspaceRoot, projectRoot, sourceRoot, projectName, config },
|
|
73
73
|
config,
|
|
74
74
|
context.projectsConfigurations.projects[context.projectName]
|
|
75
75
|
),
|
|
76
|
-
|
|
76
|
+
_chunkC55DOLYTjs.applyWorkspaceProjectTokens
|
|
77
77
|
);
|
|
78
|
-
|
|
78
|
+
_chunkHDCLRS5Kjs.writeTrace.call(void 0,
|
|
79
79
|
`Executor schema tokenized options \u2699\uFE0F
|
|
80
|
-
${
|
|
80
|
+
${_chunkHDCLRS5Kjs.formatLogMessage.call(void 0, tokenized)}
|
|
81
81
|
`,
|
|
82
82
|
config
|
|
83
83
|
);
|
|
84
84
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
85
|
-
|
|
85
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
86
86
|
await Promise.resolve(
|
|
87
87
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
88
88
|
);
|
|
89
|
-
|
|
89
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
90
90
|
}
|
|
91
91
|
const ret = executorFn(tokenized, context, config);
|
|
92
92
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -101,7 +101,7 @@ ${_chunkEA47D42Rjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
101
101
|
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")) {
|
|
102
102
|
throw new Error(
|
|
103
103
|
`Failure determined while running the ${name} executor
|
|
104
|
-
${
|
|
104
|
+
${_chunkHDCLRS5Kjs.formatLogMessage.call(void 0,
|
|
105
105
|
result
|
|
106
106
|
)}`,
|
|
107
107
|
{
|
|
@@ -110,21 +110,21 @@ ${_chunkEA47D42Rjs.formatLogMessage.call(void 0,
|
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
112
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
113
|
-
|
|
113
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
114
114
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
115
|
-
|
|
115
|
+
_chunkHDCLRS5Kjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
_chunkHDCLRS5Kjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
118
118
|
`, config);
|
|
119
119
|
return {
|
|
120
120
|
success: true
|
|
121
121
|
};
|
|
122
122
|
} catch (error) {
|
|
123
|
-
|
|
123
|
+
_chunkHDCLRS5Kjs.writeFatal.call(void 0,
|
|
124
124
|
"A fatal error occurred while running the executor - the process was forced to terminate",
|
|
125
125
|
config
|
|
126
126
|
);
|
|
127
|
-
|
|
127
|
+
_chunkHDCLRS5Kjs.writeError.call(void 0,
|
|
128
128
|
`An exception was thrown in the executor's process
|
|
129
129
|
- Details: ${error.message}
|
|
130
130
|
- Stacktrace: ${error.stack}`,
|
|
@@ -176,7 +176,7 @@ async function serveExecutor(options, context, config) {
|
|
|
176
176
|
remote: options.remote
|
|
177
177
|
});
|
|
178
178
|
} else {
|
|
179
|
-
|
|
179
|
+
_chunkHDCLRS5Kjs.writeWarning.call(void 0, `Chart packaged at: ${chartPath}`, config);
|
|
180
180
|
}
|
|
181
181
|
return {
|
|
182
182
|
success: true
|