@storm-software/workspace-tools 1.266.2 → 1.266.4
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 +14 -0
- package/README.md +1 -1
- package/dist/{chunk-BRDK3UGW.mjs → chunk-24FSFLEJ.mjs} +2 -2
- package/dist/{chunk-OENTXUOU.mjs → chunk-3FIZEIEU.mjs} +1 -1
- package/dist/{chunk-P3KSR3SR.mjs → chunk-56NOEAUZ.mjs} +1 -1
- package/dist/{chunk-GH7NKN7I.mjs → chunk-5UUINVQE.mjs} +1 -1
- package/dist/{chunk-4MQBPVNM.mjs → chunk-6YRWQ3TB.mjs} +1 -1
- package/dist/{chunk-BBQYSGHD.js → chunk-7F4BVKX3.js} +2 -2
- package/dist/{chunk-7NJYHKD4.js → chunk-AKADBPPT.js} +2 -2
- package/dist/{chunk-ZHCAJSHG.js → chunk-BAJ3JRJC.js} +20 -20
- package/dist/{chunk-XXFGRTIR.js → chunk-BP5OIRQR.js} +5 -5
- package/dist/{chunk-YEIFMXCK.mjs → chunk-CGGBNNFN.mjs} +1 -1
- package/dist/{chunk-KJ5COMK2.js → chunk-CSGLVAIK.js} +2 -2
- package/dist/{chunk-ZNX5CSRD.js → chunk-CXXOP7P6.js} +2 -2
- package/dist/{chunk-SIIOJLU5.mjs → chunk-EXQMY7WD.mjs} +2 -2
- package/dist/{chunk-3XSWT4CQ.mjs → chunk-HAUXJ6F2.mjs} +1 -1
- package/dist/{chunk-ILRTPPJ4.js → chunk-HVOODRL3.js} +2 -2
- package/dist/{chunk-7KECHDTY.mjs → chunk-IOYD4LKE.mjs} +2 -2
- package/dist/{chunk-VKKE7EW4.js → chunk-JADXJLCF.js} +4 -4
- package/dist/{chunk-KN4FIRQI.js → chunk-JOA2AXGF.js} +15 -15
- package/dist/{chunk-QGEPDAWP.mjs → chunk-KE7BLB2Y.mjs} +2 -2
- package/dist/{chunk-QMOP57NZ.mjs → chunk-KLY4F7KE.mjs} +1 -1
- package/dist/{chunk-WBKZ3KUQ.mjs → chunk-LBWGCRH2.mjs} +1 -1
- package/dist/{chunk-4RI5TAZ5.mjs → chunk-LKNIQZ3B.mjs} +2 -2
- package/dist/{chunk-ILLL3MMC.mjs → chunk-MHTKV6DY.mjs} +1 -1
- package/dist/{chunk-UYN4J6AU.mjs → chunk-N5N2BZHB.mjs} +12 -6
- package/dist/{chunk-BHPRU5VN.js → chunk-NY3AXYUD.js} +2 -2
- package/dist/{chunk-R2JUE5UD.js → chunk-OCJK2N3G.js} +2 -2
- package/dist/{chunk-METCIMBV.js → chunk-OFA5UEOD.js} +5 -5
- package/dist/{chunk-YUI473HN.js → chunk-POI2YR4E.js} +16 -16
- package/dist/{chunk-4ZWQHDDR.js → chunk-PYR5LR3M.js} +2 -2
- package/dist/{chunk-G25NYDN4.js → chunk-SN7IJGEE.js} +12 -6
- package/dist/{chunk-ALY3T5YO.js → chunk-TCG7CFMK.js} +2 -2
- package/dist/{chunk-QT4C74CG.mjs → chunk-TEHJDKUJ.mjs} +3 -3
- package/dist/{chunk-5TLQHBOJ.mjs → chunk-UQTVXA7T.mjs} +1 -1
- package/dist/{chunk-Z5ADLA6I.js → chunk-W2AFUJ7A.js} +36 -36
- package/dist/{chunk-ZXO3ZJZW.js → chunk-XFBY2IVQ.js} +9 -9
- package/dist/{chunk-XWHWMA27.mjs → chunk-ZV2PR5R3.mjs} +1 -1
- package/dist/executors.js +12 -12
- package/dist/executors.mjs +11 -11
- package/dist/{generator-UGJuBE-5.d.ts → generator-CLFmsVdh.d.ts} +1 -1
- package/dist/{generator-_OZvHhIS.d.mts → generator-D7pW3Ag7.d.mts} +1 -1
- package/dist/generators.d.mts +2 -2
- package/dist/generators.d.ts +2 -2
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +11 -11
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +19 -19
- package/dist/index.mjs +21 -21
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/base/base-generator.js +3 -3
- package/dist/src/base/base-generator.mjs +2 -2
- package/dist/src/base/index.js +4 -4
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/executors/cargo-build/executor.js +4 -4
- package/dist/src/executors/cargo-build/executor.mjs +3 -3
- package/dist/src/executors/cargo-check/executor.js +4 -4
- package/dist/src/executors/cargo-check/executor.mjs +3 -3
- package/dist/src/executors/cargo-clippy/executor.js +4 -4
- package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
- package/dist/src/executors/cargo-doc/executor.js +4 -4
- package/dist/src/executors/cargo-doc/executor.mjs +3 -3
- package/dist/src/executors/cargo-format/executor.js +4 -4
- package/dist/src/executors/cargo-format/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.js +5 -5
- package/dist/src/executors/clean-package/executor.mjs +2 -2
- package/dist/src/executors/esbuild/executor.js +4 -4
- package/dist/src/executors/esbuild/executor.mjs +3 -3
- package/dist/src/executors/size-limit/executor.js +4 -4
- package/dist/src/executors/size-limit/executor.mjs +3 -3
- package/dist/src/executors/typia/executor.js +4 -4
- package/dist/src/executors/typia/executor.mjs +3 -3
- package/dist/src/executors/unbuild/executor.js +4 -4
- package/dist/src/executors/unbuild/executor.mjs +3 -3
- 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.d.mts +2 -2
- package/dist/src/generators/release-version/generator.d.ts +2 -2
- package/dist/src/generators/release-version/generator.js +3 -3
- package/dist/src/generators/release-version/generator.mjs +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.266.4](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.266.4) (2025-04-15)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Upgrade Nx packages to v20.8.0
|
|
10
|
+
([4cdf26b2a](https://github.com/storm-software/storm-ops/commit/4cdf26b2a))
|
|
11
|
+
|
|
12
|
+
## [1.266.3](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.266.3) (2025-04-15)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Regenerate README markdown files
|
|
17
|
+
([57ce01f17](https://github.com/storm-software/storm-ops/commit/57ce01f17))
|
|
18
|
+
|
|
5
19
|
## [1.266.2](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.266.2) (2025-04-15)
|
|
6
20
|
|
|
7
21
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkRBU35LQWjs = require('./chunk-RBU35LQW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJOA2AXGFjs = require('./chunk-JOA2AXGF.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
@@ -73,7 +73,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
73
73
|
return null;
|
|
74
74
|
}
|
|
75
75
|
_chunk3GQAWCBQjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
|
|
76
|
-
var generator_default =
|
|
76
|
+
var generator_default = _chunkJOA2AXGFjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
|
|
77
77
|
hooks: {
|
|
78
78
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
79
79
|
options.description ??= "A library used by Storm Software to support browser applications";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBAJ3JRJCjs = require('./chunk-BAJ3JRJC.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -20,7 +20,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
20
20
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
21
21
|
}
|
|
22
22
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
|
|
23
|
-
var executor_default =
|
|
23
|
+
var executor_default = _chunkBAJ3JRJCjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
|
|
24
24
|
skipReadingConfig: false,
|
|
25
25
|
hooks: {
|
|
26
26
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -12,7 +12,7 @@ var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkSN7IJGEEjs = require('./chunk-SN7IJGEE.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -23,7 +23,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
23
23
|
// src/base/base-executor.ts
|
|
24
24
|
var _defu = require('defu');
|
|
25
25
|
var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkSN7IJGEEjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config = {};
|
|
29
29
|
try {
|
|
@@ -35,23 +35,23 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
|
|
|
35
35
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
36
36
|
const projectName = context.projectName;
|
|
37
37
|
config.workspaceRoot = workspaceRoot;
|
|
38
|
-
|
|
38
|
+
_chunkSN7IJGEEjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
39
39
|
if (!executorOptions.skipReadingConfig) {
|
|
40
|
-
|
|
40
|
+
_chunkSN7IJGEEjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
41
41
|
- workspaceRoot: ${workspaceRoot}
|
|
42
42
|
- projectRoot: ${projectRoot}
|
|
43
43
|
- sourceRoot: ${sourceRoot}
|
|
44
44
|
- projectName: ${projectName}
|
|
45
45
|
`, config);
|
|
46
|
-
config = await
|
|
46
|
+
config = await _chunkSN7IJGEEjs.getConfig.call(void 0, workspaceRoot);
|
|
47
47
|
}
|
|
48
48
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
49
|
-
|
|
49
|
+
_chunkSN7IJGEEjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
50
50
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
51
|
-
|
|
51
|
+
_chunkSN7IJGEEjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
${
|
|
53
|
+
_chunkSN7IJGEEjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
54
|
+
${_chunkSN7IJGEEjs.formatLogMessage.call(void 0, options)}
|
|
55
55
|
`, config);
|
|
56
56
|
const tokenized = await _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
|
|
57
57
|
workspaceRoot,
|
|
@@ -60,13 +60,13 @@ ${_chunkG25NYDN4js.formatLogMessage.call(void 0, options)}
|
|
|
60
60
|
projectName,
|
|
61
61
|
config
|
|
62
62
|
}, config, context.projectsConfigurations.projects[context.projectName]), _chunkUALZJZUKjs.applyWorkspaceProjectTokens);
|
|
63
|
-
|
|
64
|
-
${
|
|
63
|
+
_chunkSN7IJGEEjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
|
|
64
|
+
${_chunkSN7IJGEEjs.formatLogMessage.call(void 0, tokenized)}
|
|
65
65
|
`, config);
|
|
66
66
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
67
|
-
|
|
67
|
+
_chunkSN7IJGEEjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
68
68
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
69
|
-
|
|
69
|
+
_chunkSN7IJGEEjs.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', _7 => _7.next]))) {
|
|
@@ -76,26 +76,26 @@ ${_chunkG25NYDN4js.formatLogMessage.call(void 0, tokenized)}
|
|
|
76
76
|
}
|
|
77
77
|
const result = await Promise.resolve(ret);
|
|
78
78
|
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")) {
|
|
79
|
-
|
|
80
|
-
${
|
|
79
|
+
_chunkSN7IJGEEjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
80
|
+
${_chunkSN7IJGEEjs.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', _16 => _16.error])
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
87
|
-
|
|
87
|
+
_chunkSN7IJGEEjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
88
88
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
89
|
-
|
|
89
|
+
_chunkSN7IJGEEjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
_chunkSN7IJGEEjs.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
|
+
_chunkSN7IJGEEjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
98
|
+
_chunkSN7IJGEEjs.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 {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBAJ3JRJCjs = require('./chunk-BAJ3JRJC.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSN7IJGEEjs = require('./chunk-SN7IJGEE.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -13,11 +13,11 @@ var _fsextra = require('fs-extra');
|
|
|
13
13
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
14
14
|
async function typiaExecutorFn(options, _, config) {
|
|
15
15
|
if (options.clean !== false) {
|
|
16
|
-
|
|
16
|
+
_chunkSN7IJGEEjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
17
17
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
18
18
|
}
|
|
19
19
|
await Promise.all(options.entry.map((entry) => {
|
|
20
|
-
|
|
20
|
+
_chunkSN7IJGEEjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
21
21
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
22
22
|
input: entry,
|
|
23
23
|
output: options.outputPath,
|
|
@@ -29,7 +29,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
_chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
32
|
-
var executor_default =
|
|
32
|
+
var executor_default = _chunkBAJ3JRJCjs.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
|
|
33
33
|
skipReadingConfig: false,
|
|
34
34
|
hooks: {
|
|
35
35
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBAJ3JRJCjs = require('./chunk-BAJ3JRJC.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoCheckExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkBAJ3JRJCjs.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkRBU35LQWjs = require('./chunk-RBU35LQW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJOA2AXGFjs = require('./chunk-JOA2AXGF.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
@@ -45,7 +45,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
_chunk3GQAWCBQjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
|
|
48
|
-
var generator_default =
|
|
48
|
+
var generator_default = _chunkJOA2AXGFjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
|
|
49
49
|
hooks: {
|
|
50
50
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
51
51
|
options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6YRWQ3TB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
stormWorkspaceConfigSchema,
|
|
6
6
|
writeInfo,
|
|
7
7
|
writeSuccess,
|
|
8
8
|
writeTrace
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-N5N2BZHB.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findWorkspaceRoot
|
|
12
12
|
} from "./chunk-44ZYZKMX.mjs";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJOA2AXGFjs = require('./chunk-JOA2AXGF.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -229,7 +229,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
229
229
|
return null;
|
|
230
230
|
}
|
|
231
231
|
_chunk3GQAWCBQjs.__name.call(void 0, presetGeneratorFn, "presetGeneratorFn");
|
|
232
|
-
var generator_default =
|
|
232
|
+
var generator_default = _chunkJOA2AXGFjs.withRunGenerator.call(void 0, "Storm Workspace Preset Generator", presetGeneratorFn);
|
|
233
233
|
|
|
234
234
|
|
|
235
235
|
|
|
@@ -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 _chunkBAJ3JRJCjs = require('./chunk-BAJ3JRJC.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSN7IJGEEjs = require('./chunk-SN7IJGEE.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
@@ -15,7 +15,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
15
15
|
var _defu = require('defu');
|
|
16
16
|
var _jiti = require('jiti');
|
|
17
17
|
async function unbuildExecutorFn(options, context, config) {
|
|
18
|
-
|
|
18
|
+
_chunkSN7IJGEEjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
19
19
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
20
20
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
21
21
|
}
|
|
@@ -63,7 +63,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
_chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
66
|
-
var executor_default =
|
|
66
|
+
var executor_default = _chunkBAJ3JRJCjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
|
|
67
67
|
skipReadingConfig: false,
|
|
68
68
|
hooks: {
|
|
69
69
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -11,7 +11,7 @@ var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkSN7IJGEEjs = require('./chunk-SN7IJGEE.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.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 = _chunkSN7IJGEEjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config;
|
|
29
29
|
try {
|
|
30
|
-
|
|
30
|
+
_chunkSN7IJGEEjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
31
31
|
|
|
32
32
|
`, config);
|
|
33
33
|
const workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, );
|
|
34
34
|
if (!generatorOptions.skipReadingConfig) {
|
|
35
|
-
|
|
35
|
+
_chunkSN7IJGEEjs.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 _chunkSN7IJGEEjs.getConfig.call(void 0, workspaceRoot);
|
|
38
38
|
}
|
|
39
39
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
40
|
-
|
|
40
|
+
_chunkSN7IJGEEjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
41
41
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
42
|
-
|
|
42
|
+
_chunkSN7IJGEEjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
_chunkSN7IJGEEjs.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 _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, {
|
|
47
47
|
workspaceRoot: tree.root,
|
|
48
48
|
config
|
|
49
49
|
}, _chunkUALZJZUKjs.applyWorkspaceBaseTokens);
|
|
50
50
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
51
|
-
|
|
51
|
+
_chunkSN7IJGEEjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
52
52
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
53
|
-
|
|
53
|
+
_chunkSN7IJGEEjs.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
|
+
_chunkSN7IJGEEjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
67
67
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
68
|
-
|
|
68
|
+
_chunkSN7IJGEEjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
69
69
|
}
|
|
70
70
|
return () => {
|
|
71
|
-
|
|
71
|
+
_chunkSN7IJGEEjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
72
72
|
`, config);
|
|
73
73
|
};
|
|
74
74
|
} catch (error) {
|
|
75
75
|
return () => {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
_chunkSN7IJGEEjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
77
|
+
_chunkSN7IJGEEjs.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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZV2PR5R3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
formatLogMessage,
|
|
6
6
|
getConfig,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
writeSuccess,
|
|
14
14
|
writeTrace,
|
|
15
15
|
writeWarning
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-N5N2BZHB.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
19
|
} from "./chunk-44ZYZKMX.mjs";
|
|
@@ -657,12 +657,12 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
657
657
|
configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
658
658
|
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
659
659
|
directories: {
|
|
660
|
-
cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
661
|
-
data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
662
|
-
config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
663
|
-
temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
664
|
-
log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
665
|
-
build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
660
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
661
|
+
data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
662
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
663
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
664
|
+
log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
665
|
+
build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
666
666
|
},
|
|
667
667
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
668
668
|
mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
|
|
@@ -882,21 +882,27 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
882
882
|
if (config.directories) {
|
|
883
883
|
if (!config.skipCache && config.directories.cache) {
|
|
884
884
|
process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
|
|
885
|
+
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
885
886
|
}
|
|
886
887
|
if (config.directories.data) {
|
|
887
888
|
process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
|
|
889
|
+
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
888
890
|
}
|
|
889
891
|
if (config.directories.config) {
|
|
890
892
|
process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
|
|
893
|
+
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
891
894
|
}
|
|
892
895
|
if (config.directories.temp) {
|
|
893
896
|
process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
|
|
897
|
+
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
894
898
|
}
|
|
895
899
|
if (config.directories.log) {
|
|
896
900
|
process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
|
|
901
|
+
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
897
902
|
}
|
|
898
903
|
if (config.directories.build) {
|
|
899
904
|
process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
|
|
905
|
+
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
900
906
|
}
|
|
901
907
|
}
|
|
902
908
|
if (config.skipCache !== void 0) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBAJ3JRJCjs = require('./chunk-BAJ3JRJC.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 = _chunkBAJ3JRJCjs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBAJ3JRJCjs = require('./chunk-BAJ3JRJC.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 = _chunkBAJ3JRJCjs.withRunExecutor.call(void 0, "Cargo Build", cargoBuildExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|