@storm-software/k8s-tools 0.42.170 → 0.42.172
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 +18 -0
- package/README.md +1 -1
- package/dist/{chunk-IPY5NNLV.mjs → chunk-2WFRMEVI.mjs} +1 -1
- package/dist/{chunk-CZAG3AJM.mjs → chunk-4WG5YU76.mjs} +3 -3
- package/dist/{chunk-HE7EOQJY.mjs → chunk-A23BY74M.mjs} +3 -3
- package/dist/{chunk-SMHLUZFA.js → chunk-A4VO4W6H.js} +3 -3
- package/dist/{chunk-F3KQMCR5.js → chunk-BN4ZVYUX.js} +20 -20
- package/dist/{chunk-OUZS6PII.mjs → chunk-CLSUG23S.mjs} +2 -2
- package/dist/{chunk-W7UF4BRT.js → chunk-FM56KBYY.js} +4 -4
- package/dist/{chunk-S7TG34QG.mjs → chunk-GVBPX4P3.mjs} +2 -2
- package/dist/{chunk-AVZUZ6EI.mjs → chunk-HGE25HSB.mjs} +2 -2
- package/dist/{chunk-7NLRPYUR.js → chunk-J4YA3MOH.js} +25 -25
- package/dist/{chunk-EGOVHMX3.js → chunk-L5AIC4GN.js} +4 -4
- package/dist/{chunk-AQJLXLJA.js → chunk-N2YMA2SG.js} +6 -6
- package/dist/{chunk-FCY7ZPWO.mjs → chunk-NYUL5EJI.mjs} +1 -1
- package/dist/{chunk-OBAC4EJZ.js → chunk-OAJB4SET.js} +17 -28
- package/dist/{chunk-Z7BP6SC5.mjs → chunk-PHJ2C6SX.mjs} +1 -1
- package/dist/{chunk-QCHDL62S.mjs → chunk-PXNJS7UH.mjs} +17 -28
- package/dist/{chunk-5PFMRWDW.mjs → chunk-UXUMM6PX.mjs} +1 -1
- package/dist/{chunk-4ZUN77WC.js → chunk-YMZMROXK.js} +2 -2
- package/dist/{chunk-NBJUPPDQ.mjs → chunk-YTPUIRMR.mjs} +1 -1
- 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 +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - K8s Tools
|
|
4
4
|
|
|
5
|
+
## [0.42.171](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.42.171) (04/26/2026)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **workspace-tools** to **v1.295.56**
|
|
10
|
+
- Updated **config-tools** to **v1.189.78**
|
|
11
|
+
- Updated **config** to **v1.137.32**
|
|
12
|
+
|
|
13
|
+
## [0.42.170](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.42.170) (04/15/2026)
|
|
14
|
+
|
|
15
|
+
### Documentation
|
|
16
|
+
|
|
17
|
+
- **monorepo:** Regenerate `README.md` files ([8b9adfe78](https://github.com/storm-software/storm-ops/commit/8b9adfe78))
|
|
18
|
+
|
|
19
|
+
### Updated Dependencies
|
|
20
|
+
|
|
21
|
+
- Updated **workspace-tools** to **v1.295.55**
|
|
22
|
+
|
|
5
23
|
## [0.42.169](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.42.169) (04/14/2026)
|
|
6
24
|
|
|
7
25
|
### Documentation
|
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 -->
|
|
@@ -15,7 +15,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
15
15
|
return result;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
18
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__87fc5674c0e7074b5fd97e8fbac7f007/node_modules/tsup/assets/esm_shims.js
|
|
19
19
|
import { fileURLToPath } from "url";
|
|
20
20
|
import path from "path";
|
|
21
21
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HGE25HSB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeDebug
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PXNJS7UH.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__dirname
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2WFRMEVI.mjs";
|
|
10
10
|
|
|
11
11
|
// src/generators/helm-chart/generator.ts
|
|
12
12
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceProjectTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PHJ2C6SX.mjs";
|
|
5
5
|
import {
|
|
6
6
|
brandIcon,
|
|
7
7
|
findWorkspaceRoot,
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
writeSuccess,
|
|
16
16
|
writeTrace,
|
|
17
17
|
writeWarning
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PXNJS7UH.mjs";
|
|
19
19
|
import {
|
|
20
20
|
createHelmClient
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YTPUIRMR.mjs";
|
|
22
22
|
|
|
23
23
|
// ../workspace-tools/src/base/base-executor.ts
|
|
24
24
|
import { defu } from "defu";
|
|
@@ -8,7 +8,7 @@ var _chunkKBSSJUPWjs = require('./chunk-KBSSJUPW.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkOAJB4SETjs = require('./chunk-OAJB4SET.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 = _chunkOAJB4SETjs.findWorkspaceRoot.call(void 0, );
|
|
46
|
+
const config = await _chunkOAJB4SETjs.getConfig.call(void 0, workspaceRoot);
|
|
47
47
|
Object.keys(projectJson).forEach((key) => {
|
|
48
48
|
if (!project[key]) {
|
|
49
49
|
project[key] = projectJson[key];
|
|
@@ -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 _chunkYMZMROXKjs = require('./chunk-YMZMROXK.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -13,54 +13,54 @@ var _chunk4ZUN77WCjs = require('./chunk-4ZUN77WC.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkOAJB4SETjs = require('./chunk-OAJB4SET.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 = _chunkOAJB4SETjs.getStopwatch.call(void 0, name);
|
|
23
23
|
let options = _options;
|
|
24
24
|
let config;
|
|
25
25
|
try {
|
|
26
|
-
|
|
27
|
-
`${
|
|
26
|
+
_chunkOAJB4SETjs.writeInfo.call(void 0,
|
|
27
|
+
`${_chunkOAJB4SETjs.brandIcon.call(void 0, config)} Running the ${name} generator...
|
|
28
28
|
|
|
29
29
|
`,
|
|
30
30
|
config
|
|
31
31
|
);
|
|
32
|
-
const workspaceRoot =
|
|
32
|
+
const workspaceRoot = _chunkOAJB4SETjs.findWorkspaceRoot.call(void 0, );
|
|
33
33
|
if (!generatorOptions.skipReadingConfig) {
|
|
34
|
-
|
|
34
|
+
_chunkOAJB4SETjs.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 _chunkOAJB4SETjs.getConfig.call(void 0, workspaceRoot);
|
|
40
40
|
}
|
|
41
41
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
42
|
-
|
|
42
|
+
_chunkOAJB4SETjs.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
|
+
_chunkOAJB4SETjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
_chunkOAJB4SETjs.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 _chunkYMZMROXKjs.applyWorkspaceTokens.call(void 0,
|
|
54
54
|
options,
|
|
55
55
|
{ workspaceRoot: tree.root, config },
|
|
56
|
-
|
|
56
|
+
_chunkYMZMROXKjs.applyWorkspaceBaseTokens
|
|
57
57
|
);
|
|
58
58
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
59
|
-
|
|
59
|
+
_chunkOAJB4SETjs.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
|
+
_chunkOAJB4SETjs.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
|
+
_chunkOAJB4SETjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
79
79
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
80
|
-
|
|
80
|
+
_chunkOAJB4SETjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
81
81
|
}
|
|
82
82
|
return () => {
|
|
83
|
-
|
|
83
|
+
_chunkOAJB4SETjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
84
84
|
`, config);
|
|
85
85
|
};
|
|
86
86
|
} catch (error) {
|
|
87
87
|
return () => {
|
|
88
|
-
|
|
88
|
+
_chunkOAJB4SETjs.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
|
+
_chunkOAJB4SETjs.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}`,
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-WS2G4IWW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
applyWorkspaceTokens
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PHJ2C6SX.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
getConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PXNJS7UH.mjs";
|
|
11
11
|
|
|
12
12
|
// src/executors/container-publish/executor.ts
|
|
13
13
|
import {
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkBN4ZVYUXjs = require('./chunk-BN4ZVYUX.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOAJB4SETjs = require('./chunk-OAJB4SET.js');
|
|
7
7
|
|
|
8
8
|
// src/generators/helm-chart/generator.ts
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ var _chunkOBAC4EJZjs = require('./chunk-OBAC4EJZ.js');
|
|
|
14
14
|
var _devkit = require('@nx/devkit');
|
|
15
15
|
var _path = require('path');
|
|
16
16
|
async function helmChartGeneratorFn(tree, options, config) {
|
|
17
|
-
|
|
17
|
+
_chunkOAJB4SETjs.writeDebug.call(void 0, "\u{1F4DD} Preparing to write Helm Chart", config);
|
|
18
18
|
const project = _devkit.readProjectConfiguration.call(void 0, tree, options.project);
|
|
19
19
|
if (_optionalChain([project, 'access', _ => _.targets, 'optionalAccess', _2 => _2["helm-package"]])) {
|
|
20
20
|
throw new Error(
|
|
@@ -55,7 +55,7 @@ async function helmChartGeneratorFn(tree, options, config) {
|
|
|
55
55
|
success: true
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
var generator_default =
|
|
58
|
+
var generator_default = _chunkBN4ZVYUXjs.withRunGenerator.call(void 0,
|
|
59
59
|
"Helm Chart",
|
|
60
60
|
helmChartGeneratorFn
|
|
61
61
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceBaseTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PHJ2C6SX.mjs";
|
|
5
5
|
import {
|
|
6
6
|
brandIcon,
|
|
7
7
|
findWorkspaceRoot,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeSuccess,
|
|
15
15
|
writeTrace
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PXNJS7UH.mjs";
|
|
17
17
|
|
|
18
18
|
// ../workspace-tools/src/base/base-generator.ts
|
|
19
19
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
@@ -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 _chunkYMZMROXKjs = require('./chunk-YMZMROXK.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ var _chunk4ZUN77WCjs = require('./chunk-4ZUN77WC.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkOAJB4SETjs = require('./chunk-OAJB4SET.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 = _chunkOAJB4SETjs.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 = _chunkOAJB4SETjs.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
|
+
_chunkOAJB4SETjs.writeInfo.call(void 0,
|
|
41
|
+
`${_chunkOAJB4SETjs.brandIcon.call(void 0, config)} Running the ${name} executor for ${projectName} `,
|
|
42
42
|
config
|
|
43
43
|
);
|
|
44
44
|
if (!executorOptions.skipReadingConfig) {
|
|
45
|
-
|
|
45
|
+
_chunkOAJB4SETjs.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 _chunkOAJB4SETjs.getConfig.call(void 0, workspaceRoot);
|
|
55
55
|
}
|
|
56
56
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
57
|
-
|
|
57
|
+
_chunkOAJB4SETjs.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
|
+
_chunkOAJB4SETjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
_chunkOAJB4SETjs.writeTrace.call(void 0,
|
|
64
64
|
`Executor schema options \u2699\uFE0F
|
|
65
|
-
${
|
|
65
|
+
${_chunkOAJB4SETjs.formatLogMessage.call(void 0, options)}
|
|
66
66
|
`,
|
|
67
67
|
config
|
|
68
68
|
);
|
|
69
|
-
const tokenized = await
|
|
69
|
+
const tokenized = await _chunkYMZMROXKjs.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
|
+
_chunkYMZMROXKjs.applyWorkspaceProjectTokens
|
|
77
77
|
);
|
|
78
|
-
|
|
78
|
+
_chunkOAJB4SETjs.writeTrace.call(void 0,
|
|
79
79
|
`Executor schema tokenized options \u2699\uFE0F
|
|
80
|
-
${
|
|
80
|
+
${_chunkOAJB4SETjs.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
|
+
_chunkOAJB4SETjs.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
|
+
_chunkOAJB4SETjs.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 @@ ${_chunkOBAC4EJZjs.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
|
+
${_chunkOAJB4SETjs.formatLogMessage.call(void 0,
|
|
105
105
|
result
|
|
106
106
|
)}`,
|
|
107
107
|
{
|
|
@@ -110,21 +110,21 @@ ${_chunkOBAC4EJZjs.formatLogMessage.call(void 0,
|
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
112
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
113
|
-
|
|
113
|
+
_chunkOAJB4SETjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
114
114
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
115
|
-
|
|
115
|
+
_chunkOAJB4SETjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
_chunkOAJB4SETjs.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
|
+
_chunkOAJB4SETjs.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
|
+
_chunkOAJB4SETjs.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
|
+
_chunkOAJB4SETjs.writeWarning.call(void 0, `Chart packaged at: ${chartPath}`, config);
|
|
180
180
|
}
|
|
181
181
|
return {
|
|
182
182
|
success: true
|
|
@@ -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 _chunkBN4ZVYUXjs = require('./chunk-BN4ZVYUX.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOAJB4SETjs = require('./chunk-OAJB4SET.js');
|
|
7
7
|
|
|
8
8
|
// src/generators/helm-dependency/generator.ts
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ var _chunkOBAC4EJZjs = require('./chunk-OBAC4EJZ.js');
|
|
|
13
13
|
var _devkit = require('@nx/devkit');
|
|
14
14
|
var _yaml = require('yaml');
|
|
15
15
|
async function helmDependencyGeneratorFn(tree, options, config) {
|
|
16
|
-
|
|
16
|
+
_chunkOAJB4SETjs.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 = _chunkBN4ZVYUXjs.withRunGenerator.call(void 0,
|
|
43
43
|
"Helm Dependency",
|
|
44
44
|
helmDependencyGeneratorFn
|
|
45
45
|
);
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var _chunkKBSSJUPWjs = require('./chunk-KBSSJUPW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkYMZMROXKjs = require('./chunk-YMZMROXK.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkOAJB4SETjs = require('./chunk-OAJB4SET.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, () => ( _chunkOAJB4SETjs.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 = _chunkOAJB4SETjs.findWorkspaceRoot.call(void 0, );
|
|
84
|
+
const config = await _chunkOAJB4SETjs.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 _chunkYMZMROXKjs.applyWorkspaceTokens.call(void 0,
|
|
96
96
|
options,
|
|
97
97
|
{
|
|
98
98
|
config,
|
|
@@ -155,8 +155,8 @@ var CONSOLE_ICONS = {
|
|
|
155
155
|
};
|
|
156
156
|
|
|
157
157
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
158
|
-
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
159
|
-
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
158
|
+
var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
159
|
+
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
// ../config-tools/src/logger/get-log-level.ts
|
|
@@ -216,7 +216,12 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
216
216
|
};
|
|
217
217
|
|
|
218
218
|
// ../config-tools/src/logger/console.ts
|
|
219
|
-
var getLogFn = (logLevel = LogLevel.INFO, config = {},
|
|
219
|
+
var getLogFn = (logLevel = LogLevel.INFO, config = {}, options = {}) => {
|
|
220
|
+
const {
|
|
221
|
+
chalk: _chalk = getChalk(),
|
|
222
|
+
fullDateTime = false,
|
|
223
|
+
hideDateTime = false
|
|
224
|
+
} = options;
|
|
220
225
|
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;
|
|
221
226
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
222
227
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
@@ -227,9 +232,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
|
227
232
|
return (message) => {
|
|
228
233
|
console.error(
|
|
229
234
|
`
|
|
230
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
231
|
-
_nullishCoalesce(colors.fatal, () => ( DEFAULT_COLOR_CONFIG.dark.fatal))
|
|
232
|
-
)(
|
|
235
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( DEFAULT_COLOR_CONFIG.dark.fatal)))(
|
|
233
236
|
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
234
237
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
235
238
|
`
|
|
@@ -240,9 +243,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
240
243
|
return (message) => {
|
|
241
244
|
console.error(
|
|
242
245
|
`
|
|
243
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
244
|
-
_nullishCoalesce(colors.danger, () => ( DEFAULT_COLOR_CONFIG.dark.danger))
|
|
245
|
-
)(
|
|
246
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.danger, () => ( DEFAULT_COLOR_CONFIG.dark.danger)))(
|
|
246
247
|
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
247
248
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
248
249
|
`
|
|
@@ -253,9 +254,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
253
254
|
return (message) => {
|
|
254
255
|
console.warn(
|
|
255
256
|
`
|
|
256
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
257
|
-
_nullishCoalesce(colors.warning, () => ( DEFAULT_COLOR_CONFIG.dark.warning))
|
|
258
|
-
)(
|
|
257
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.warning, () => ( DEFAULT_COLOR_CONFIG.dark.warning)))(
|
|
259
258
|
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
260
259
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
261
260
|
`
|
|
@@ -266,9 +265,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
266
265
|
return (message) => {
|
|
267
266
|
console.info(
|
|
268
267
|
`
|
|
269
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
270
|
-
_nullishCoalesce(colors.success, () => ( DEFAULT_COLOR_CONFIG.dark.success))
|
|
271
|
-
)(
|
|
268
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.success, () => ( DEFAULT_COLOR_CONFIG.dark.success)))(
|
|
272
269
|
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
273
270
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
274
271
|
`
|
|
@@ -279,9 +276,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
279
276
|
return (message) => {
|
|
280
277
|
console.info(
|
|
281
278
|
`
|
|
282
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
283
|
-
_nullishCoalesce(colors.info, () => ( DEFAULT_COLOR_CONFIG.dark.info))
|
|
284
|
-
)(
|
|
279
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.info, () => ( DEFAULT_COLOR_CONFIG.dark.info)))(
|
|
285
280
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
286
281
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
287
282
|
`
|
|
@@ -292,9 +287,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
292
287
|
return (message) => {
|
|
293
288
|
console.debug(
|
|
294
289
|
`
|
|
295
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
296
|
-
_nullishCoalesce(colors.performance, () => ( DEFAULT_COLOR_CONFIG.dark.performance))
|
|
297
|
-
)(
|
|
290
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.performance, () => ( DEFAULT_COLOR_CONFIG.dark.performance)))(
|
|
298
291
|
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
299
292
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
300
293
|
`
|
|
@@ -305,9 +298,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
305
298
|
return (message) => {
|
|
306
299
|
console.debug(
|
|
307
300
|
`
|
|
308
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
309
|
-
_nullishCoalesce(colors.debug, () => ( DEFAULT_COLOR_CONFIG.dark.debug))
|
|
310
|
-
)(
|
|
301
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.debug, () => ( DEFAULT_COLOR_CONFIG.dark.debug)))(
|
|
311
302
|
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
312
303
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
313
304
|
`
|
|
@@ -318,7 +309,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
318
309
|
return (message) => {
|
|
319
310
|
console.debug(
|
|
320
311
|
`
|
|
321
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
312
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
|
|
322
313
|
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
323
314
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
324
315
|
`
|
|
@@ -328,9 +319,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
|
328
319
|
return (message) => {
|
|
329
320
|
console.log(
|
|
330
321
|
`
|
|
331
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
332
|
-
_nullishCoalesce(colors.brand, () => ( DEFAULT_COLOR_CONFIG.dark.brand))
|
|
333
|
-
)(
|
|
322
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.brand, () => ( DEFAULT_COLOR_CONFIG.dark.brand)))(
|
|
334
323
|
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
335
324
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
336
325
|
`
|