@storm-software/workspace-tools 1.230.0 → 1.231.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/{chunk-CT7IVPJY.js → chunk-22DNWOG2.js} +25 -36
- package/dist/{chunk-ESRRKJO5.mjs → chunk-357OS575.mjs} +2 -2
- package/dist/{chunk-WTHELTBU.mjs → chunk-3QS2VXIW.mjs} +2 -2
- package/dist/{chunk-ZCZVVZBX.js → chunk-4KC6BQY6.js} +3 -3
- package/dist/{chunk-B3KIYNGT.mjs → chunk-63CXRJMW.mjs} +1 -1
- package/dist/{chunk-6B6IVIMQ.js → chunk-6G34PMHG.js} +3 -3
- package/dist/{chunk-DLO5NZQI.mjs → chunk-6S33LGZA.mjs} +3 -3
- package/dist/{chunk-DIODSFGH.js → chunk-AEHR536C.js} +41 -41
- package/dist/{chunk-I7OZOKTH.js → chunk-AX2GAIC6.js} +3 -3
- package/dist/{chunk-GV44QHV3.mjs → chunk-BXRWY5YI.mjs} +3 -3
- package/dist/{chunk-NCVJPQSP.js → chunk-CXLDWFA3.js} +15 -15
- package/dist/{chunk-PMDV5GKD.js → chunk-DDDV5CIY.js} +3 -3
- package/dist/{chunk-3GVBGSCQ.js → chunk-DIPIPI7H.js} +2 -2
- package/dist/{chunk-35B5C22H.mjs → chunk-E4RAOLUW.mjs} +2 -2
- package/dist/{chunk-7MZQTO7J.js → chunk-EDHSW6KA.js} +12 -12
- package/dist/{chunk-JEV3GSS7.js → chunk-EI3PUSCC.js} +9 -9
- package/dist/{chunk-W4QV74K2.mjs → chunk-FAD3MJIO.mjs} +1 -1
- package/dist/{chunk-UDAQKEJS.mjs → chunk-GFOMWTSR.mjs} +21 -32
- package/dist/{chunk-ZXT33DDB.js → chunk-I56CGXM6.js} +3 -3
- package/dist/{chunk-FP4PPOO6.js → chunk-IQU4KSXC.js} +3 -3
- package/dist/{chunk-36FMHXUD.js → chunk-IX2EZD3F.js} +4 -4
- package/dist/{chunk-SFT3A33D.mjs → chunk-JXN5JXWD.mjs} +3 -3
- package/dist/{chunk-OA7KWN7D.mjs → chunk-KKDGYFKY.mjs} +3 -3
- package/dist/{chunk-WJ5TU6JU.mjs → chunk-KNXGOGL5.mjs} +4 -4
- package/dist/{chunk-MSENNRAY.js → chunk-LDCPNOWX.js} +19 -19
- package/dist/{chunk-KLEKFCL2.js → chunk-LPWSHG6O.js} +2 -2
- package/dist/{chunk-DB7BVAE7.js → chunk-LXPMDNMJ.js} +58 -86
- package/dist/{chunk-OESA3G7F.mjs → chunk-NZMTUJGQ.mjs} +3 -3
- package/dist/{chunk-PS55UN6T.mjs → chunk-PE2DD2SV.mjs} +1 -1
- package/dist/{chunk-JGTW4AJ7.mjs → chunk-S73VA7HH.mjs} +3 -3
- package/dist/{chunk-OJ3R7YBK.js → chunk-S7QZCTBR.js} +31 -31
- package/dist/{chunk-XSCTGWRG.mjs → chunk-TAJBCIVO.mjs} +3 -3
- package/dist/{chunk-F5WI7VDM.js → chunk-TRTFGC6N.js} +3 -3
- package/dist/{chunk-6267MSX4.mjs → chunk-UENELRBB.mjs} +4 -4
- package/dist/{chunk-MF4RRA4Q.mjs → chunk-UK7LZSMG.mjs} +7 -7
- package/dist/{chunk-QMJ7P54Z.mjs → chunk-VHTLAFRU.mjs} +3 -3
- package/dist/{chunk-T7IVGU7T.mjs → chunk-X7G7IR2C.mjs} +3 -3
- package/dist/{chunk-B7LWGAUI.js → chunk-X7YSSPPZ.js} +5 -5
- package/dist/{chunk-TILR7372.js → chunk-Y2IMY233.js} +5 -5
- package/dist/{chunk-JMWQGXHM.mjs → chunk-YMGOLNMM.mjs} +33 -61
- package/dist/executors.js +17 -17
- package/dist/executors.mjs +18 -18
- package/dist/generators.js +11 -11
- package/dist/generators.mjs +13 -13
- package/dist/index.js +47 -47
- package/dist/index.mjs +64 -64
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-generator.js +3 -3
- package/dist/src/base/base-generator.mjs +2 -2
- package/dist/src/base/index.js +12 -12
- package/dist/src/base/index.mjs +14 -14
- package/dist/src/executors/cargo-build/executor.js +6 -6
- package/dist/src/executors/cargo-build/executor.mjs +5 -5
- package/dist/src/executors/cargo-check/executor.js +6 -6
- package/dist/src/executors/cargo-check/executor.mjs +5 -5
- package/dist/src/executors/cargo-clippy/executor.js +6 -6
- package/dist/src/executors/cargo-clippy/executor.mjs +5 -5
- package/dist/src/executors/cargo-doc/executor.js +6 -6
- package/dist/src/executors/cargo-doc/executor.mjs +5 -5
- package/dist/src/executors/cargo-format/executor.js +6 -6
- package/dist/src/executors/cargo-format/executor.mjs +5 -5
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- package/dist/src/executors/esbuild/executor.js +6 -6
- package/dist/src/executors/esbuild/executor.mjs +5 -5
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/tsdown/executor.js +6 -6
- package/dist/src/executors/tsdown/executor.mjs +5 -5
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +4 -4
- package/dist/src/executors/unbuild/executor.js +6 -6
- package/dist/src/executors/unbuild/executor.mjs +5 -5
- package/dist/src/generators/browser-library/generator.js +4 -4
- package/dist/src/generators/browser-library/generator.mjs +3 -3
- package/dist/src/generators/config-schema/generator.js +4 -4
- package/dist/src/generators/config-schema/generator.mjs +3 -3
- package/dist/src/generators/neutral-library/generator.js +4 -4
- package/dist/src/generators/neutral-library/generator.mjs +3 -3
- package/dist/src/generators/node-library/generator.js +4 -4
- package/dist/src/generators/node-library/generator.mjs +3 -3
- package/dist/src/generators/preset/generator.js +4 -4
- package/dist/src/generators/preset/generator.mjs +3 -3
- package/dist/src/generators/release-version/generator.js +3 -3
- package/dist/src/generators/release-version/generator.mjs +2 -2
- package/dist/src/plugins/rust/cargo-toml.js +3 -3
- package/dist/src/plugins/rust/cargo-toml.mjs +2 -2
- package/dist/src/plugins/rust/index.js +3 -3
- package/dist/src/plugins/rust/index.mjs +2 -2
- package/dist/src/utils/index.js +8 -8
- package/dist/src/utils/index.mjs +18 -18
- package/package.json +1 -1
- package/dist/{chunk-XONECYS4.js → chunk-YESI2BBC.js} +2 -2
- package/dist/{chunk-GZPCM2GI.mjs → chunk-Z322IWWR.mjs} +4 -4
|
@@ -11,7 +11,7 @@ var _chunk5CPYNJT2js = require('./chunk-5CPYNJT2.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkIX2EZD3Fjs = require('./chunk-IX2EZD3F.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -23,34 +23,34 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
23
23
|
var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
24
24
|
skipReadingConfig: false
|
|
25
25
|
}) => async (tree, _options) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config;
|
|
29
29
|
try {
|
|
30
|
-
|
|
30
|
+
_chunkIX2EZD3Fjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
31
31
|
|
|
32
32
|
`, config);
|
|
33
33
|
const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
|
|
34
34
|
if (!generatorOptions.skipReadingConfig) {
|
|
35
|
-
|
|
35
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
36
36
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
37
|
-
config = await
|
|
37
|
+
config = await _chunkIX2EZD3Fjs.loadStormConfig.call(void 0, workspaceRoot);
|
|
38
38
|
}
|
|
39
39
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
40
|
-
|
|
40
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
41
41
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
42
|
-
|
|
42
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
_chunkIX2EZD3Fjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
45
45
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
46
46
|
const tokenized = await _chunk5CPYNJT2js.applyWorkspaceTokens.call(void 0, options, {
|
|
47
47
|
workspaceRoot: tree.root,
|
|
48
48
|
config
|
|
49
49
|
}, _chunk5CPYNJT2js.applyWorkspaceBaseTokens);
|
|
50
50
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
51
|
-
|
|
51
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
52
52
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
53
|
-
|
|
53
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
54
54
|
}
|
|
55
55
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
56
56
|
if (result) {
|
|
@@ -63,18 +63,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
66
|
-
|
|
66
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
67
67
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
68
|
-
|
|
68
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
69
69
|
}
|
|
70
70
|
return () => {
|
|
71
|
-
|
|
71
|
+
_chunkIX2EZD3Fjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
72
72
|
`, config);
|
|
73
73
|
};
|
|
74
74
|
} catch (error) {
|
|
75
75
|
return () => {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
_chunkIX2EZD3Fjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
77
|
+
_chunkIX2EZD3Fjs.writeError.call(void 0, `An exception was thrown in the generator's process
|
|
78
78
|
- Details: ${error.message}
|
|
79
79
|
- Stacktrace: ${error.stack}`, config);
|
|
80
80
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
2
|
|
|
3
|
+
var _chunkCXLDWFA3js = require('./chunk-CXLDWFA3.js');
|
|
3
4
|
|
|
4
|
-
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -232,7 +232,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
232
232
|
return null;
|
|
233
233
|
}
|
|
234
234
|
_chunk3GQAWCBQjs.__name.call(void 0, presetGeneratorFn, "presetGeneratorFn");
|
|
235
|
-
var generator_default =
|
|
235
|
+
var generator_default = _chunkCXLDWFA3js.withRunGenerator.call(void 0, "Storm Workspace Preset Generator", presetGeneratorFn);
|
|
236
236
|
|
|
237
237
|
|
|
238
238
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCXLDWFA3js = require('./chunk-CXLDWFA3.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -70,7 +70,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
70
70
|
return null;
|
|
71
71
|
}
|
|
72
72
|
_chunk3GQAWCBQjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
|
|
73
|
-
var generator_default =
|
|
73
|
+
var generator_default = _chunkCXLDWFA3js.withRunGenerator.call(void 0, "TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
|
|
74
74
|
hooks: {
|
|
75
75
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
76
76
|
options.description ??= "A library used by Storm Software to support browser applications";
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
|
|
10
|
+
var _chunkIX2EZD3Fjs = require('./chunk-IX2EZD3F.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -248,16 +248,16 @@ var _version = require('nx/src/command-line/release/version');
|
|
|
248
248
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
249
249
|
var _semver3 = require('semver');
|
|
250
250
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
251
|
-
|
|
251
|
+
_chunkIX2EZD3Fjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
252
252
|
|
|
253
253
|
`, config);
|
|
254
|
-
const stopwatch =
|
|
254
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
255
255
|
try {
|
|
256
256
|
const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
|
|
257
|
-
|
|
257
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
258
258
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
259
|
-
config = await
|
|
260
|
-
|
|
259
|
+
config = await _chunkIX2EZD3Fjs.loadStormConfig.call(void 0, workspaceRoot);
|
|
260
|
+
_chunkIX2EZD3Fjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
261
261
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
262
262
|
const versionData = {};
|
|
263
263
|
if (options.specifier) {
|
|
@@ -307,9 +307,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
307
307
|
}
|
|
308
308
|
const workspaceRelativePackagePath = _path.relative.call(void 0, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, ))), tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath);
|
|
309
309
|
const log = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (msg) => {
|
|
310
|
-
|
|
310
|
+
_chunkIX2EZD3Fjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
311
311
|
}, "log");
|
|
312
|
-
|
|
312
|
+
_chunkIX2EZD3Fjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
313
313
|
let packageName;
|
|
314
314
|
let currentVersionFromDisk;
|
|
315
315
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -583,7 +583,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
await _devkit.formatFiles.call(void 0, tree);
|
|
586
|
-
|
|
586
|
+
_chunkIX2EZD3Fjs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
|
|
587
587
|
`, config);
|
|
588
588
|
return {
|
|
589
589
|
data: versionData,
|
|
@@ -617,8 +617,8 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
617
617
|
}, "callback")
|
|
618
618
|
};
|
|
619
619
|
} catch (error) {
|
|
620
|
-
|
|
621
|
-
|
|
620
|
+
_chunkIX2EZD3Fjs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
|
|
621
|
+
_chunkIX2EZD3Fjs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
|
|
622
622
|
- Details: ${error.message}
|
|
623
623
|
- Stacktrace: ${error.stack}`, config);
|
|
624
624
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -1,12 +1,12 @@
|
|
|
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 _chunkCXLDWFA3js = require('./chunk-CXLDWFA3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkIX2EZD3Fjs = require('./chunk-IX2EZD3F.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -18,25 +18,25 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
20
20
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
21
|
+
_chunkIX2EZD3Fjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
|
|
22
|
+
_chunkIX2EZD3Fjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
|
|
23
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkIX2EZD3Fjs.StormConfigSchema, {
|
|
24
24
|
name: "StormWorkspaceConfiguration"
|
|
25
25
|
});
|
|
26
|
-
|
|
26
|
+
_chunkIX2EZD3Fjs.writeTrace.call(void 0, jsonSchema, config);
|
|
27
27
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./");
|
|
28
|
-
|
|
28
|
+
_chunkIX2EZD3Fjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
29
29
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
30
30
|
spaces: 2
|
|
31
31
|
});
|
|
32
32
|
await _devkit.formatFiles.call(void 0, tree);
|
|
33
|
-
|
|
33
|
+
_chunkIX2EZD3Fjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
|
|
34
34
|
return {
|
|
35
35
|
success: true
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
_chunk3GQAWCBQjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
|
|
39
|
-
var generator_default =
|
|
39
|
+
var generator_default = _chunkCXLDWFA3js.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
|
|
40
40
|
hooks: {
|
|
41
41
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
42
42
|
options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
loadStormConfig,
|
|
4
4
|
writeDebug,
|
|
5
5
|
writeTrace
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KNXGOGL5.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot
|
|
9
9
|
} from "./chunk-DMUTOQCB.mjs";
|
|
@@ -27,13 +27,14 @@ var DEFAULT_TARGET = "esnext";
|
|
|
27
27
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
28
28
|
|
|
29
29
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
30
|
-
import {
|
|
31
|
-
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph } from "@nx/devkit";
|
|
30
|
+
import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "@nx/devkit";
|
|
32
31
|
import { copyAssets as copyAssetsBase } from "@nx/js";
|
|
33
32
|
import { glob } from "glob";
|
|
33
|
+
import { readFile as readFile2, writeFile } from "node:fs/promises";
|
|
34
34
|
|
|
35
35
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
36
|
-
import {
|
|
36
|
+
import { existsSync } from "node:fs";
|
|
37
|
+
import { readFile } from "node:fs/promises";
|
|
37
38
|
var readNxConfig = /* @__PURE__ */ __name(async (workspaceRoot) => {
|
|
38
39
|
let rootDir = workspaceRoot;
|
|
39
40
|
if (!rootDir) {
|
|
@@ -41,10 +42,11 @@ var readNxConfig = /* @__PURE__ */ __name(async (workspaceRoot) => {
|
|
|
41
42
|
rootDir = config.workspaceRoot;
|
|
42
43
|
}
|
|
43
44
|
const nxJsonPath = joinPaths(rootDir, "nx.json");
|
|
44
|
-
if (!
|
|
45
|
+
if (!existsSync(nxJsonPath)) {
|
|
45
46
|
throw new Error("Cannot find project.json configuration");
|
|
46
47
|
}
|
|
47
|
-
|
|
48
|
+
const configContent = await readFile(nxJsonPath, "utf8");
|
|
49
|
+
return JSON.parse(configContent);
|
|
48
50
|
}, "readNxConfig");
|
|
49
51
|
|
|
50
52
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
@@ -79,14 +81,12 @@ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, proje
|
|
|
79
81
|
});
|
|
80
82
|
}
|
|
81
83
|
const nxJson = readNxConfig(config.workspaceRoot);
|
|
82
|
-
const projectGraph =
|
|
83
|
-
exitOnError: true
|
|
84
|
-
});
|
|
84
|
+
const projectGraph = readCachedProjectGraph();
|
|
85
85
|
const projectsConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
86
86
|
if (!projectsConfigurations?.projects?.[projectName]) {
|
|
87
87
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
88
88
|
}
|
|
89
|
-
const buildTarget = projectsConfigurations.projects[projectName]
|
|
89
|
+
const buildTarget = projectsConfigurations.projects[projectName].targets?.build;
|
|
90
90
|
if (!buildTarget) {
|
|
91
91
|
throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${joinPaths(projectRoot, "project.json")}`);
|
|
92
92
|
}
|
|
@@ -116,42 +116,30 @@ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, proje
|
|
|
116
116
|
joinPaths(config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
117
117
|
joinPaths(config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
118
118
|
]);
|
|
119
|
-
await Promise.allSettled(files.map(async (file) =>
|
|
119
|
+
await Promise.allSettled(files.map(async (file) => writeFile(file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
120
120
|
|
|
121
|
-
${await
|
|
121
|
+
${await readFile2(file, "utf8")}
|
|
122
122
|
|
|
123
123
|
${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `// ${footer}` : ""}`)));
|
|
124
124
|
}
|
|
125
125
|
}, "copyAssets");
|
|
126
126
|
|
|
127
127
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
128
|
-
import { hfs as hfs3 } from "@humanfs/node";
|
|
129
128
|
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
130
129
|
import { Glob } from "glob";
|
|
131
|
-
import {
|
|
130
|
+
import { existsSync as existsSync2 } from "node:fs";
|
|
131
|
+
import { readFile as readFile3 } from "node:fs/promises";
|
|
132
|
+
import { readCachedProjectGraph as readCachedProjectGraph2 } from "nx/src/project-graph/project-graph";
|
|
132
133
|
var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projectRoot, projectName, packageJson) => {
|
|
133
|
-
const
|
|
134
|
-
exitOnError: true
|
|
135
|
-
});
|
|
136
|
-
const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
|
|
137
|
-
if (!projectConfigurations?.projects?.[projectName]) {
|
|
138
|
-
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
139
|
-
}
|
|
140
|
-
const projectJsonPath = joinPaths(workspaceRoot, projectRoot, "project.json");
|
|
141
|
-
if (!await hfs3.isFile(projectJsonPath)) {
|
|
142
|
-
throw new Error("Cannot find project.json configuration");
|
|
143
|
-
}
|
|
144
|
-
if (!projectConfigurations?.projects?.[projectName]) {
|
|
145
|
-
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
146
|
-
}
|
|
147
|
-
const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
134
|
+
const projectDependencies = calculateProjectBuildableDependencies(void 0, readCachedProjectGraph2(), workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
148
135
|
const localPackages = [];
|
|
149
136
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
|
|
150
137
|
const projectNode = project.node;
|
|
151
138
|
if (projectNode.data.root) {
|
|
152
139
|
const projectPackageJsonPath = joinPaths(workspaceRoot, projectNode.data.root, "package.json");
|
|
153
|
-
if (
|
|
154
|
-
const
|
|
140
|
+
if (existsSync2(projectPackageJsonPath)) {
|
|
141
|
+
const projectPackageJsonContent = await readFile3(projectPackageJsonPath, "utf8");
|
|
142
|
+
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
155
143
|
if (projectPackageJson.private !== false) {
|
|
156
144
|
localPackages.push(projectPackageJson);
|
|
157
145
|
}
|
|
@@ -187,7 +175,8 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projec
|
|
|
187
175
|
}, "addPackageDependencies");
|
|
188
176
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
189
177
|
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
|
|
190
|
-
const
|
|
178
|
+
const workspacePackageJsonContent = await readFile3(joinPaths(workspaceRoot, "package.json"), "utf8");
|
|
179
|
+
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
191
180
|
packageJson.type ??= "module";
|
|
192
181
|
packageJson.sideEffects ??= false;
|
|
193
182
|
if (includeSrc === true) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
+
var _chunkLDCPNOWXjs = require('./chunk-LDCPNOWX.js');
|
|
3
4
|
|
|
4
|
-
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoBuildExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoBuildExecutor, "cargoBuildExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkLDCPNOWXjs.withRunExecutor.call(void 0, "Cargo Build", cargoBuildExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
+
var _chunkLDCPNOWXjs = require('./chunk-LDCPNOWX.js');
|
|
3
4
|
|
|
4
|
-
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoClippyExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkLDCPNOWXjs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -502,26 +502,26 @@ var _c12 = require('c12');
|
|
|
502
502
|
|
|
503
503
|
var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
504
504
|
const workspacePath = filePath || _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, filePath);
|
|
505
|
-
let config = _c12.loadConfig.call(void 0, {
|
|
505
|
+
let config = await _c12.loadConfig.call(void 0, {
|
|
506
506
|
cwd: workspacePath,
|
|
507
507
|
packageJson: true,
|
|
508
508
|
name: fileName,
|
|
509
509
|
envName: _optionalChain([fileName, 'optionalAccess', _30 => _30.toUpperCase, 'call', _31 => _31()]),
|
|
510
510
|
jitiOptions: {
|
|
511
511
|
debug: false,
|
|
512
|
-
|
|
512
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkXCSSYTCUjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
|
|
513
513
|
},
|
|
514
514
|
...options
|
|
515
515
|
});
|
|
516
516
|
if (!config || Object.keys(config).length === 0) {
|
|
517
|
-
config = _c12.loadConfig.call(void 0, {
|
|
517
|
+
config = await _c12.loadConfig.call(void 0, {
|
|
518
518
|
cwd: workspacePath,
|
|
519
519
|
packageJson: true,
|
|
520
520
|
name: fileName,
|
|
521
521
|
envName: _optionalChain([fileName, 'optionalAccess', _32 => _32.toUpperCase, 'call', _33 => _33()]),
|
|
522
522
|
jitiOptions: {
|
|
523
523
|
debug: false,
|
|
524
|
-
|
|
524
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkXCSSYTCUjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
|
|
525
525
|
},
|
|
526
526
|
configFile: fileName,
|
|
527
527
|
...options
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-UENELRBB.mjs";
|
|
1
4
|
import {
|
|
2
5
|
buildCargoCommand,
|
|
3
6
|
cargoCommand
|
|
4
7
|
} from "./chunk-QZHIWK5Z.mjs";
|
|
5
|
-
import {
|
|
6
|
-
withRunExecutor
|
|
7
|
-
} from "./chunk-6267MSX4.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
4
|
} from "./chunk-XSRDTQ5C.mjs";
|
|
5
|
+
import {
|
|
6
|
+
withRunGenerator
|
|
7
|
+
} from "./chunk-63CXRJMW.mjs";
|
|
5
8
|
import {
|
|
6
9
|
typesNodeVersion
|
|
7
10
|
} from "./chunk-EK75QNMS.mjs";
|
|
8
|
-
import {
|
|
9
|
-
withRunGenerator
|
|
10
|
-
} from "./chunk-B3KIYNGT.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname,
|
|
13
13
|
__name
|
|
@@ -502,26 +502,26 @@ import { loadConfig } from "c12";
|
|
|
502
502
|
import defu from "defu";
|
|
503
503
|
var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, options = {}) => {
|
|
504
504
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
505
|
-
let config = loadConfig({
|
|
505
|
+
let config = await loadConfig({
|
|
506
506
|
cwd: workspacePath,
|
|
507
507
|
packageJson: true,
|
|
508
508
|
name: fileName,
|
|
509
509
|
envName: fileName?.toUpperCase(),
|
|
510
510
|
jitiOptions: {
|
|
511
511
|
debug: false,
|
|
512
|
-
|
|
512
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
|
|
513
513
|
},
|
|
514
514
|
...options
|
|
515
515
|
});
|
|
516
516
|
if (!config || Object.keys(config).length === 0) {
|
|
517
|
-
config = loadConfig({
|
|
517
|
+
config = await loadConfig({
|
|
518
518
|
cwd: workspacePath,
|
|
519
519
|
packageJson: true,
|
|
520
520
|
name: fileName,
|
|
521
521
|
envName: fileName?.toUpperCase(),
|
|
522
522
|
jitiOptions: {
|
|
523
523
|
debug: false,
|
|
524
|
-
|
|
524
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
|
|
525
525
|
},
|
|
526
526
|
configFile: fileName,
|
|
527
527
|
...options
|
|
@@ -1,9 +1,8 @@
|
|
|
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 _chunk5CPYNJT2js = require('./chunk-5CPYNJT2.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var _chunk5CPYNJT2js = require('./chunk-5CPYNJT2.js');
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
|
|
@@ -12,9 +11,10 @@ var _chunk5CPYNJT2js = require('./chunk-5CPYNJT2.js');
|
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
|
|
14
|
+
var _chunkIX2EZD3Fjs = require('./chunk-IX2EZD3F.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkBWFTYFWMjs = require('./chunk-BWFTYFWM.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -24,11 +24,11 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
24
24
|
|
|
25
25
|
// src/base/base-executor.ts
|
|
26
26
|
var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
27
|
-
const stopwatch =
|
|
27
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, name);
|
|
28
28
|
let options = _options;
|
|
29
29
|
let config = {};
|
|
30
30
|
try {
|
|
31
|
-
|
|
31
|
+
_chunkIX2EZD3Fjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor...
|
|
32
32
|
`, config);
|
|
33
33
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
34
34
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
@@ -39,20 +39,20 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
|
|
|
39
39
|
const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
|
|
40
40
|
config.workspaceRoot = workspaceRoot;
|
|
41
41
|
if (!executorOptions.skipReadingConfig) {
|
|
42
|
-
|
|
42
|
+
_chunkIX2EZD3Fjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
43
43
|
- workspaceRoot: ${workspaceRoot}
|
|
44
44
|
- projectRoot: ${projectRoot}
|
|
45
45
|
- sourceRoot: ${sourceRoot}
|
|
46
46
|
- projectName: ${projectName}
|
|
47
47
|
`, config);
|
|
48
|
-
config = await
|
|
48
|
+
config = await _chunkIX2EZD3Fjs.loadStormConfig.call(void 0, workspaceRoot);
|
|
49
49
|
}
|
|
50
50
|
if (_optionalChain([executorOptions, 'optionalAccess', _15 => _15.hooks, 'optionalAccess', _16 => _16.applyDefaultOptions])) {
|
|
51
|
-
|
|
51
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
52
52
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
53
|
-
|
|
53
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
_chunkIX2EZD3Fjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
56
56
|
${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
57
57
|
const tokenized = await _chunk5CPYNJT2js.applyWorkspaceTokens.call(void 0, options, {
|
|
58
58
|
config,
|
|
@@ -64,9 +64,9 @@ ${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<f
|
|
|
64
64
|
...executorOptions
|
|
65
65
|
}, _chunkBWFTYFWMjs.applyWorkspaceExecutorTokens);
|
|
66
66
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.preProcess])) {
|
|
67
|
-
|
|
67
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
68
68
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
69
|
-
|
|
69
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
70
70
|
}
|
|
71
71
|
const ret = executorFn(tokenized, context, config);
|
|
72
72
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _19 => _19.next]))) {
|
|
@@ -76,26 +76,26 @@ ${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<f
|
|
|
76
76
|
}
|
|
77
77
|
const result = await Promise.resolve(ret);
|
|
78
78
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _20 => _20.error, 'optionalAccess', _21 => _21.message]) && typeof _optionalChain([result, 'optionalAccess', _22 => _22.error, 'optionalAccess', _23 => _23.message]) === "string" && _optionalChain([result, 'optionalAccess', _24 => _24.error, 'optionalAccess', _25 => _25.name]) && typeof _optionalChain([result, 'optionalAccess', _26 => _26.error, 'optionalAccess', _27 => _27.name]) === "string")) {
|
|
79
|
-
|
|
80
|
-
${
|
|
79
|
+
_chunkIX2EZD3Fjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
80
|
+
${_chunkIX2EZD3Fjs.formatLogMessage.call(void 0, result)}`, config);
|
|
81
81
|
console.error(result);
|
|
82
82
|
throw new Error(`The ${name} executor failed to run`, {
|
|
83
83
|
cause: _optionalChain([result, 'optionalAccess', _28 => _28.error])
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
if (_optionalChain([executorOptions, 'optionalAccess', _29 => _29.hooks, 'optionalAccess', _30 => _30.postProcess])) {
|
|
87
|
-
|
|
87
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
88
88
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
89
|
-
|
|
89
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
_chunkIX2EZD3Fjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
92
92
|
`, config);
|
|
93
93
|
return {
|
|
94
94
|
success: true
|
|
95
95
|
};
|
|
96
96
|
} catch (error) {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
_chunkIX2EZD3Fjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
98
|
+
_chunkIX2EZD3Fjs.writeError.call(void 0, `An exception was thrown in the executor's process
|
|
99
99
|
- Details: ${error.message}
|
|
100
100
|
- Stacktrace: ${error.stack}`, config);
|
|
101
101
|
return {
|