@storm-software/workspace-tools 1.237.1 → 1.238.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 +11 -0
- package/README.md +1 -1
- package/dist/{chunk-LCGEM7Q4.mjs → chunk-2O5LDYTE.mjs} +1 -1
- package/dist/{chunk-ZQMYL7BB.mjs → chunk-5RMB7B6I.mjs} +1 -1
- package/dist/{chunk-NDDXQD7R.mjs → chunk-6B2346NL.mjs} +4 -0
- package/dist/{chunk-G4RFND4J.js → chunk-6PYOV5GE.js} +2 -2
- package/dist/{chunk-COE4MDQZ.js → chunk-7DE63ASQ.js} +11 -11
- package/dist/{chunk-6JJRTIJE.js → chunk-DVT2OFTJ.js} +2 -2
- package/dist/{chunk-MKWGJTCZ.mjs → chunk-EGGNN7KQ.mjs} +1 -1
- package/dist/{chunk-XOXDKSS6.js → chunk-EJEF43S7.js} +2 -2
- package/dist/{chunk-V5JX4ONQ.js → chunk-EWOVTA4P.js} +2 -2
- package/dist/{chunk-ZSONE7KT.js → chunk-GSH7T6CD.js} +2 -2
- package/dist/{chunk-BEQ7SG6P.js → chunk-HDRHANJ2.js} +2 -2
- package/dist/{chunk-B56EPXXD.js → chunk-IO3RJNYR.js} +2 -2
- package/dist/{chunk-WISLBMNQ.mjs → chunk-JH4GI5XO.mjs} +1 -1
- package/dist/{chunk-HFYUSCRU.mjs → chunk-KHPR33G4.mjs} +1 -1
- package/dist/{chunk-5H2MAX6J.js → chunk-KJOK6J32.js} +2 -2
- package/dist/{chunk-CGDGEBZS.js → chunk-KPUD75QZ.js} +2 -2
- package/dist/{chunk-VXCCFT5N.mjs → chunk-LZGO3TPY.mjs} +1 -1
- package/dist/{chunk-KD5LMZ2A.mjs → chunk-MAXLXVJR.mjs} +1 -1
- package/dist/{chunk-ZOE6ZUZK.mjs → chunk-MHGST32N.mjs} +1 -1
- package/dist/{chunk-XYFHKZNM.mjs → chunk-NEDKAEDT.mjs} +12 -12
- package/dist/{chunk-MVFTFAFJ.js → chunk-PNLIUJRY.js} +2 -2
- package/dist/{chunk-QDMY7CT5.mjs → chunk-PQEBMQKU.mjs} +1 -1
- package/dist/{chunk-KM2H5RYL.mjs → chunk-RGWBBLHG.mjs} +1 -1
- package/dist/{chunk-QIE4V5VC.js → chunk-T72JINQH.js} +3 -3
- package/dist/{chunk-GO4TPJGC.mjs → chunk-TNYOGYUG.mjs} +1 -1
- package/dist/{chunk-UTSK4MXW.mjs → chunk-UI3N7JVE.mjs} +1 -1
- package/dist/{chunk-376H4FPQ.js → chunk-VHNRH2B6.js} +2 -2
- package/dist/{chunk-EF2AYADZ.js → chunk-W4AJ2GF7.js} +2 -2
- package/dist/{chunk-QNPWZQ3H.mjs → chunk-WOMZ7ZQ2.mjs} +1 -1
- package/dist/{chunk-VPZNFU57.mjs → chunk-XGCNTOTV.mjs} +1 -1
- package/dist/{chunk-TUB644GP.mjs → chunk-XGHRUQ4Z.mjs} +1 -1
- package/dist/{chunk-RHYFYBYC.mjs → chunk-XQMD2EHN.mjs} +1 -1
- package/dist/{chunk-PJVQQPVY.js → chunk-YC2LJIIT.js} +2 -2
- package/dist/{chunk-QJSB767L.js → chunk-YSLPOLXZ.js} +2 -2
- package/dist/{chunk-KM2743VP.js → chunk-Z4VFGZYP.js} +2 -2
- package/dist/{chunk-5CPYNJT2.js → chunk-ZOJ5F47Z.js} +5 -1
- package/dist/executors.js +13 -14
- package/dist/executors.mjs +15 -16
- package/dist/generators.js +10 -10
- package/dist/generators.mjs +9 -9
- package/dist/index.js +24 -24
- package/dist/index.mjs +26 -26
- package/dist/src/base/base-executor.js +3 -4
- package/dist/src/base/base-executor.mjs +2 -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 +4 -5
- package/dist/src/base/index.mjs +3 -4
- package/dist/src/executors/cargo-build/executor.js +4 -5
- package/dist/src/executors/cargo-build/executor.mjs +3 -4
- package/dist/src/executors/cargo-check/executor.js +4 -5
- package/dist/src/executors/cargo-check/executor.mjs +3 -4
- package/dist/src/executors/cargo-clippy/executor.js +4 -5
- package/dist/src/executors/cargo-clippy/executor.mjs +3 -4
- package/dist/src/executors/cargo-doc/executor.js +4 -5
- package/dist/src/executors/cargo-doc/executor.mjs +3 -4
- package/dist/src/executors/cargo-format/executor.js +4 -5
- package/dist/src/executors/cargo-format/executor.mjs +3 -4
- package/dist/src/executors/clean-package/executor.js +3 -4
- package/dist/src/executors/clean-package/executor.mjs +2 -3
- package/dist/src/executors/esbuild/executor.js +4 -5
- package/dist/src/executors/esbuild/executor.mjs +3 -4
- package/dist/src/executors/size-limit/executor.js +4 -5
- package/dist/src/executors/size-limit/executor.mjs +3 -4
- package/dist/src/executors/tsdown/executor.js +4 -5
- package/dist/src/executors/tsdown/executor.mjs +3 -4
- package/dist/src/executors/typia/executor.js +4 -5
- package/dist/src/executors/typia/executor.mjs +3 -4
- package/dist/src/executors/unbuild/executor.js +4 -5
- package/dist/src/executors/unbuild/executor.mjs +3 -4
- 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/utils/index.js +3 -3
- package/dist/src/utils/index.mjs +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 1.238.0 (2025-01-21)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **unbuild:** Update the `package.json` file via the `entry` option ([7eaf4a9b](https://github.com/storm-software/storm-ops/commit/7eaf4a9b))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated unbuild to 0.29.0
|
|
10
|
+
- Updated unbuild to 0.29.0
|
|
11
|
+
|
|
1
12
|
## 1.237.1 (2025-01-21)
|
|
2
13
|
|
|
3
14
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -36,6 +36,9 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ __name(async (option, tokenizerOp
|
|
|
36
36
|
}
|
|
37
37
|
return result;
|
|
38
38
|
}, "applyWorkspaceBaseTokens");
|
|
39
|
+
var applyWorkspaceProjectTokens = /* @__PURE__ */ __name((option, tokenizerOptions) => {
|
|
40
|
+
return applyWorkspaceBaseTokens(option, tokenizerOptions);
|
|
41
|
+
}, "applyWorkspaceProjectTokens");
|
|
39
42
|
var applyWorkspaceTokens = /* @__PURE__ */ __name(async (options, config, tokenizerFn) => {
|
|
40
43
|
if (!options) {
|
|
41
44
|
return {};
|
|
@@ -57,5 +60,6 @@ var applyWorkspaceTokens = /* @__PURE__ */ __name(async (options, config, tokeni
|
|
|
57
60
|
|
|
58
61
|
export {
|
|
59
62
|
applyWorkspaceBaseTokens,
|
|
63
|
+
applyWorkspaceProjectTokens,
|
|
60
64
|
applyWorkspaceTokens
|
|
61
65
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
|
|
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
_chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
|
|
37
37
|
skipReadingConfig: false,
|
|
38
38
|
hooks: {
|
|
39
39
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1,9 +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
|
-
var _chunkBWFTYFWMjs = require('./chunk-BWFTYFWM.js');
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
var _chunk5CPYNJT2js = require('./chunk-5CPYNJT2.js');
|
|
4
|
+
var _chunkZOJ5F47Zjs = require('./chunk-ZOJ5F47Z.js');
|
|
7
5
|
|
|
8
6
|
|
|
9
7
|
|
|
@@ -23,6 +21,7 @@ var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
|
23
21
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
24
22
|
|
|
25
23
|
// src/base/base-executor.ts
|
|
24
|
+
var _defu = require('defu');
|
|
26
25
|
var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
27
26
|
const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, name);
|
|
28
27
|
let options = _options;
|
|
@@ -52,17 +51,18 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
|
|
|
52
51
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
53
52
|
_chunkM3X4P6ATjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
54
53
|
}
|
|
55
|
-
_chunkM3X4P6ATjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
56
|
-
${
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
_chunkM3X4P6ATjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
55
|
+
${_chunkM3X4P6ATjs.formatLogMessage.call(void 0, options)}
|
|
56
|
+
`, config);
|
|
57
|
+
const tokenized = await _chunkZOJ5F47Zjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
|
|
59
58
|
workspaceRoot,
|
|
60
59
|
projectRoot,
|
|
61
60
|
sourceRoot,
|
|
62
|
-
projectName
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
projectName
|
|
62
|
+
}, executorOptions, context.projectsConfigurations.projects[context.projectName], config), _chunkZOJ5F47Zjs.applyWorkspaceProjectTokens);
|
|
63
|
+
_chunkM3X4P6ATjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
|
|
64
|
+
${_chunkM3X4P6ATjs.formatLogMessage.call(void 0, options)}
|
|
65
|
+
`, config);
|
|
66
66
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.preProcess])) {
|
|
67
67
|
_chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
68
68
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoFormatExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkT72JINQHjs = require('./chunk-T72JINQH.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 = _chunkT72JINQHjs.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";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkT72JINQHjs = require('./chunk-T72JINQH.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -42,7 +42,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
44
|
_chunk3GQAWCBQjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
|
|
45
|
-
var generator_default =
|
|
45
|
+
var generator_default = _chunkT72JINQHjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
|
|
46
46
|
hooks: {
|
|
47
47
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
48
48
|
options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
|
|
@@ -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 = _chunk7DE63ASQjs.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) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.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 = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
var _chunkSEZJIRERjs = require('./chunk-SEZJIRER.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -282,7 +282,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
284
|
_chunk3GQAWCBQjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
|
|
285
|
-
var executor_default =
|
|
285
|
+
var executor_default = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
|
|
286
286
|
skipReadingConfig: false,
|
|
287
287
|
hooks: {
|
|
288
288
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.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 = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -7,7 +7,7 @@ var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
|
|
|
7
7
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkT72JINQHjs = require('./chunk-T72JINQH.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -49,7 +49,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
49
49
|
return null;
|
|
50
50
|
}
|
|
51
51
|
_chunk3GQAWCBQjs.__name.call(void 0, nodeLibraryGeneratorFn, "nodeLibraryGeneratorFn");
|
|
52
|
-
var generator_default =
|
|
52
|
+
var generator_default = _chunkT72JINQHjs.withRunGenerator.call(void 0, "TypeScript Library Creator (NodeJs Platform)", nodeLibraryGeneratorFn, {
|
|
53
53
|
hooks: {
|
|
54
54
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
55
55
|
options.description ??= "A library used by Storm Software to support NodeJs applications";
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-FFBZYD6R.mjs";
|
|
4
|
-
import {
|
|
2
|
+
applyWorkspaceProjectTokens,
|
|
5
3
|
applyWorkspaceTokens
|
|
6
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6B2346NL.mjs";
|
|
7
5
|
import {
|
|
8
6
|
formatLogMessage,
|
|
9
7
|
getStopwatch,
|
|
@@ -23,6 +21,7 @@ import {
|
|
|
23
21
|
} from "./chunk-XUV4U54K.mjs";
|
|
24
22
|
|
|
25
23
|
// src/base/base-executor.ts
|
|
24
|
+
import { defu } from "defu";
|
|
26
25
|
var withRunExecutor = /* @__PURE__ */ __name((name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
27
26
|
const stopwatch = getStopwatch(name);
|
|
28
27
|
let options = _options;
|
|
@@ -52,17 +51,18 @@ var withRunExecutor = /* @__PURE__ */ __name((name, executorFn, executorOptions
|
|
|
52
51
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
53
52
|
writeDebug("Completed the applyDefaultOptions hook", config);
|
|
54
53
|
}
|
|
55
|
-
writeTrace(`Executor schema options \u2699\uFE0F
|
|
56
|
-
${
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
writeTrace(`Executor schema options \u2699\uFE0F
|
|
55
|
+
${formatLogMessage(options)}
|
|
56
|
+
`, config);
|
|
57
|
+
const tokenized = await applyWorkspaceTokens(options, defu({
|
|
59
58
|
workspaceRoot,
|
|
60
59
|
projectRoot,
|
|
61
60
|
sourceRoot,
|
|
62
|
-
projectName
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
projectName
|
|
62
|
+
}, executorOptions, context.projectsConfigurations.projects[context.projectName], config), applyWorkspaceProjectTokens);
|
|
63
|
+
writeTrace(`Executor schema tokenized options \u2699\uFE0F
|
|
64
|
+
${formatLogMessage(options)}
|
|
65
|
+
`, config);
|
|
66
66
|
if (executorOptions?.hooks?.preProcess) {
|
|
67
67
|
writeDebug("Running the preProcess hook...", config);
|
|
68
68
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
var _chunkSEZJIRERjs = require('./chunk-SEZJIRER.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -1025,7 +1025,7 @@ async function esbuildExecutorFn(options, context2, config) {
|
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
1027
|
_chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
1028
|
-
var executor_default =
|
|
1028
|
+
var executor_default = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
|
|
1029
1029
|
skipReadingConfig: false,
|
|
1030
1030
|
hooks: {
|
|
1031
1031
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZOJ5F47Zjs = require('./chunk-ZOJ5F47Z.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -43,10 +43,10 @@ var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (nam
|
|
|
43
43
|
}
|
|
44
44
|
_chunkM3X4P6ATjs.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
|
-
const tokenized = await
|
|
46
|
+
const tokenized = await _chunkZOJ5F47Zjs.applyWorkspaceTokens.call(void 0, options, {
|
|
47
47
|
workspaceRoot: tree.root,
|
|
48
48
|
config
|
|
49
|
-
},
|
|
49
|
+
}, _chunkZOJ5F47Zjs.applyWorkspaceBaseTokens);
|
|
50
50
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
51
51
|
_chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
52
52
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.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 = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Cargo Build", cargoBuildExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkT72JINQHjs = require('./chunk-T72JINQH.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 = _chunkT72JINQHjs.withRunGenerator.call(void 0, "Storm Workspace Preset Generator", presetGeneratorFn);
|
|
236
236
|
|
|
237
237
|
|
|
238
238
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -19,7 +19,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
19
19
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
20
20
|
}
|
|
21
21
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
|
|
22
|
-
var executor_default =
|
|
22
|
+
var executor_default = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
|
|
23
23
|
skipReadingConfig: false,
|
|
24
24
|
hooks: {
|
|
25
25
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkT72JINQHjs = require('./chunk-T72JINQH.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -36,7 +36,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
_chunk3GQAWCBQjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
|
|
39
|
-
var generator_default =
|
|
39
|
+
var generator_default = _chunkT72JINQHjs.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
|
|
@@ -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 = _chunk7DE63ASQjs.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) => {
|
|
@@ -36,6 +36,9 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
|
|
|
36
36
|
}
|
|
37
37
|
return result;
|
|
38
38
|
}, "applyWorkspaceBaseTokens");
|
|
39
|
+
var applyWorkspaceProjectTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option, tokenizerOptions) => {
|
|
40
|
+
return applyWorkspaceBaseTokens(option, tokenizerOptions);
|
|
41
|
+
}, "applyWorkspaceProjectTokens");
|
|
39
42
|
var applyWorkspaceTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config, tokenizerFn) => {
|
|
40
43
|
if (!options) {
|
|
41
44
|
return {};
|
|
@@ -58,4 +61,5 @@ var applyWorkspaceTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
58
61
|
|
|
59
62
|
|
|
60
63
|
|
|
61
|
-
|
|
64
|
+
|
|
65
|
+
exports.applyWorkspaceBaseTokens = applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = applyWorkspaceTokens;
|