@storm-software/workspace-tools 1.272.0 → 1.273.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 +34 -0
- package/README.md +2 -1
- package/dist/chunk-2CZBN33P.js +685 -0
- package/dist/{chunk-LBAVVYKU.js → chunk-2F5TLK3C.js} +21 -19
- package/dist/{chunk-AHLKRK7D.mjs → chunk-33FZTHTK.mjs} +2 -2
- package/dist/{chunk-7RVW57VK.js → chunk-3G3HNZ22.js} +2 -2
- package/dist/{chunk-DCPKZRRY.js → chunk-3QD2U6SS.js} +30 -28
- package/dist/{chunk-EKWR7TBP.mjs → chunk-5MOK3MSQ.mjs} +1 -1
- package/dist/{chunk-MZSZKV4N.mjs → chunk-5XTW4576.mjs} +1 -1
- package/dist/{chunk-MMBLGUC3.mjs → chunk-5XYM22SB.mjs} +5 -3
- package/dist/{chunk-YXBFVZ3K.js → chunk-7Q2NOIDR.js} +2 -2
- package/dist/{chunk-4QYM3VS4.mjs → chunk-A6H2SCIM.mjs} +41 -3
- package/dist/{chunk-4K5FV2MH.mjs → chunk-AAQQSGPY.mjs} +1 -1
- package/dist/{chunk-EXYV2BKT.mjs → chunk-AW3I76E2.mjs} +1 -1
- package/dist/{chunk-WE4HK4RN.js → chunk-BNERGX6I.js} +1 -655
- package/dist/{chunk-KQBEYBS7.js → chunk-BNV64O5L.js} +2 -2
- package/dist/{chunk-T7BALDKJ.js → chunk-C22PXFKF.js} +5 -5
- package/dist/{chunk-RZVF4LHT.js → chunk-CUMWQELT.js} +41 -3
- package/dist/{chunk-6QZSAZZ3.mjs → chunk-DJYOYWNY.mjs} +2 -2
- package/dist/{chunk-Q2HYWACQ.mjs → chunk-DMJKKHEC.mjs} +2 -2
- package/dist/{chunk-SPXJBMLY.js → chunk-DYDIVZRW.js} +5 -5
- package/dist/{chunk-BWGJVRAS.js → chunk-EDMNYJEB.js} +7 -9
- package/dist/{chunk-SITFTWPY.mjs → chunk-EHAI3NXN.mjs} +1 -1
- package/dist/{chunk-AMW7VHFM.mjs → chunk-EQ3664ZD.mjs} +2 -2
- package/dist/{chunk-FYXWAGK3.js → chunk-F6X43VUX.js} +1 -4
- package/dist/{chunk-UYSJG2E5.mjs → chunk-FCRAGTW6.mjs} +4 -2
- package/dist/{chunk-7HWV6U3E.mjs → chunk-HLMSVHZY.mjs} +2 -2
- package/dist/{chunk-X5VIC7HP.js → chunk-KF6AKLGE.js} +2 -2
- package/dist/{chunk-MJMN2T4N.mjs → chunk-KHT5W6AJ.mjs} +0 -3
- package/dist/{chunk-I2GT7ECM.mjs → chunk-M6IYTP2T.mjs} +1 -1
- package/dist/{chunk-7CA3TDXD.js → chunk-M75P2EGZ.js} +2 -2
- package/dist/{chunk-5HUW3BTP.mjs → chunk-MLF7ZQBW.mjs} +4 -2
- package/dist/{chunk-H5NKKUPV.js → chunk-MNQIKYEB.js} +5 -5
- package/dist/{chunk-EYXDS7SG.js → chunk-MSCI7LQ2.js} +4 -4
- package/dist/chunk-N63KWRTH.mjs +685 -0
- package/dist/{chunk-WGDJV4SH.js → chunk-ON5324R7.js} +2 -2
- package/dist/{chunk-RJRBED5Q.js → chunk-QWRE2UFS.js} +17 -15
- package/dist/{chunk-U65XVJ4Y.mjs → chunk-R2WP5YDO.mjs} +7 -9
- package/dist/{chunk-S5Z4QGF3.js → chunk-S2JDNKK6.js} +9 -9
- package/dist/{chunk-I5MSPQMO.js → chunk-SMRFUKN7.js} +5 -5
- package/dist/{chunk-54FVHKCU.js → chunk-TSP73RLP.js} +2 -2
- package/dist/{chunk-GNOIETZR.js → chunk-TVH6TDED.js} +5 -5
- package/dist/{chunk-AJ3C2EDW.js → chunk-VUSG5IWM.js} +22 -20
- package/dist/{chunk-PCVYQGOH.mjs → chunk-W2RLHQ24.mjs} +1 -1
- package/dist/{chunk-2M22JVJQ.mjs → chunk-WLB7XVWW.mjs} +9 -663
- package/dist/{chunk-MF6VZSIO.mjs → chunk-XOKT6TQL.mjs} +2 -2
- package/dist/{chunk-KP4RPOBI.mjs → chunk-Y5UH66KY.mjs} +2 -2
- package/dist/{chunk-IZN2IVJ4.js → chunk-Y7JE33K2.js} +2 -2
- package/dist/{chunk-J6OXY3KI.mjs → chunk-YTHGOOKO.mjs} +5 -3
- package/dist/{chunk-EZPQKO5C.mjs → chunk-ZASRR3NW.mjs} +1 -1
- package/dist/{executor-B3lwM9GM.d.mts → executor-0ivVjqma.d.mts} +8 -0
- package/dist/{executor-B3lwM9GM.d.ts → executor-0ivVjqma.d.ts} +8 -0
- package/dist/executors.d.mts +1 -1
- package/dist/executors.d.ts +1 -1
- package/dist/executors.js +17 -16
- package/dist/executors.mjs +16 -15
- package/dist/generators.js +13 -12
- package/dist/generators.mjs +12 -11
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +29 -39
- package/dist/index.mjs +36 -46
- package/dist/src/base/base-executor.js +4 -3
- package/dist/src/base/base-executor.mjs +3 -2
- package/dist/src/base/base-generator.js +4 -3
- package/dist/src/base/base-generator.mjs +3 -2
- package/dist/src/base/index.js +7 -6
- package/dist/src/base/index.mjs +6 -5
- package/dist/src/executors/cargo-build/executor.js +5 -4
- package/dist/src/executors/cargo-build/executor.mjs +4 -3
- package/dist/src/executors/cargo-check/executor.js +5 -4
- package/dist/src/executors/cargo-check/executor.mjs +4 -3
- package/dist/src/executors/cargo-clippy/executor.js +5 -4
- package/dist/src/executors/cargo-clippy/executor.mjs +4 -3
- package/dist/src/executors/cargo-doc/executor.js +5 -4
- package/dist/src/executors/cargo-doc/executor.mjs +4 -3
- package/dist/src/executors/cargo-format/executor.js +5 -4
- package/dist/src/executors/cargo-format/executor.mjs +4 -3
- package/dist/src/executors/cargo-publish/executor.js +6 -3
- package/dist/src/executors/cargo-publish/executor.mjs +5 -2
- package/dist/src/executors/clean-package/executor.js +6 -5
- package/dist/src/executors/clean-package/executor.mjs +3 -2
- package/dist/src/executors/esbuild/executor.js +5 -4
- package/dist/src/executors/esbuild/executor.mjs +4 -3
- package/dist/src/executors/npm-publish/executor.d.mts +1 -1
- package/dist/src/executors/npm-publish/executor.d.ts +1 -1
- package/dist/src/executors/npm-publish/executor.js +3 -3
- package/dist/src/executors/npm-publish/executor.mjs +2 -2
- package/dist/src/executors/npm-publish/untyped.js +7 -0
- package/dist/src/executors/npm-publish/untyped.mjs +7 -0
- package/dist/src/executors/size-limit/executor.js +5 -4
- package/dist/src/executors/size-limit/executor.mjs +4 -3
- package/dist/src/executors/typia/executor.js +5 -4
- package/dist/src/executors/typia/executor.mjs +4 -3
- package/dist/src/executors/unbuild/executor.js +5 -4
- package/dist/src/executors/unbuild/executor.mjs +4 -3
- package/dist/src/generators/browser-library/generator.js +7 -6
- package/dist/src/generators/browser-library/generator.mjs +6 -5
- package/dist/src/generators/config-schema/generator.js +5 -4
- package/dist/src/generators/config-schema/generator.mjs +4 -3
- package/dist/src/generators/neutral-library/generator.js +7 -6
- package/dist/src/generators/neutral-library/generator.mjs +6 -5
- package/dist/src/generators/node-library/generator.js +7 -6
- package/dist/src/generators/node-library/generator.mjs +6 -5
- package/dist/src/generators/preset/generator.js +5 -4
- package/dist/src/generators/preset/generator.mjs +4 -3
- package/dist/src/generators/release-version/generator.js +5 -4
- package/dist/src/generators/release-version/generator.mjs +4 -3
- package/dist/src/utils/cargo.d.mts +1 -1
- package/dist/src/utils/cargo.d.ts +1 -1
- package/dist/src/utils/index.d.mts +1 -1
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/index.js +8 -18
- package/dist/src/utils/index.mjs +15 -25
- package/dist/src/utils/package-helpers.d.mts +1 -1
- package/dist/src/utils/package-helpers.d.ts +1 -1
- package/dist/src/utils/package-helpers.js +6 -3
- package/dist/src/utils/package-helpers.mjs +5 -2
- package/dist/src/utils/pnpm-deps-update.js +2 -2
- package/dist/src/utils/pnpm-deps-update.mjs +1 -1
- package/dist/{src/utils/toml.d.mts → toml-C0imOcwz.d.mts} +1 -8
- package/dist/{src/utils/toml.d.ts → toml-C0imOcwz.d.ts} +1 -8
- package/docs/api/executors/npm-publish/schema.md +9 -0
- package/package.json +4 -4
- package/dist/src/base/base-executor.schema.d.ts +0 -17
- package/dist/src/base/base-executor.schema.json +0 -19
- package/dist/src/base/base-executor.schema.md +0 -16
- package/dist/src/base/base-generator.schema.d.ts +0 -14
- package/dist/src/base/base-generator.schema.json +0 -15
- package/dist/src/base/base-generator.schema.md +0 -15
- package/dist/src/base/cargo-base-executor.schema.d.ts +0 -89
- package/dist/src/base/cargo-base-executor.schema.json +0 -88
- package/dist/src/base/cargo-base-executor.schema.md +0 -90
- package/dist/src/base/typescript-build-executor.schema.d.ts +0 -135
- package/dist/src/base/typescript-build-executor.schema.json +0 -178
- package/dist/src/base/typescript-build-executor.schema.md +0 -126
- package/dist/src/base/typescript-library-generator.schema.d.ts +0 -122
- package/dist/src/base/typescript-library-generator.schema.json +0 -119
- package/dist/src/base/typescript-library-generator.schema.md +0 -129
- package/dist/src/executors/cargo-build/schema.d.ts +0 -86
- package/dist/src/executors/cargo-build/schema.json +0 -85
- package/dist/src/executors/cargo-build/schema.md +0 -89
- package/dist/src/executors/cargo-check/schema.d.ts +0 -89
- package/dist/src/executors/cargo-check/schema.json +0 -88
- package/dist/src/executors/cargo-check/schema.md +0 -90
- package/dist/src/executors/cargo-clippy/schema.d.ts +0 -97
- package/dist/src/executors/cargo-clippy/schema.json +0 -94
- package/dist/src/executors/cargo-clippy/schema.md +0 -99
- package/dist/src/executors/cargo-doc/schema.d.ts +0 -125
- package/dist/src/executors/cargo-doc/schema.json +0 -164
- package/dist/src/executors/cargo-doc/schema.md +0 -130
- package/dist/src/executors/cargo-format/schema.d.ts +0 -89
- package/dist/src/executors/cargo-format/schema.json +0 -88
- package/dist/src/executors/cargo-format/schema.md +0 -90
- package/dist/src/executors/cargo-publish/schema.d.ts +0 -115
- package/dist/src/executors/cargo-publish/schema.json +0 -107
- package/dist/src/executors/cargo-publish/schema.md +0 -117
- package/dist/src/executors/clean-package/schema.d.ts +0 -60
- package/dist/src/executors/clean-package/schema.json +0 -57
- package/dist/src/executors/clean-package/schema.md +0 -65
- package/dist/src/executors/esbuild/schema.d.ts +0 -137
- package/dist/src/executors/esbuild/schema.json +0 -165
- package/dist/src/executors/esbuild/schema.md +0 -126
- package/dist/src/executors/npm-publish/schema.d.ts +0 -60
- package/dist/src/executors/npm-publish/schema.json +0 -55
- package/dist/src/executors/npm-publish/schema.md +0 -64
- package/dist/src/executors/size-limit/schema.d.ts +0 -25
- package/dist/src/executors/size-limit/schema.json +0 -29
- package/dist/src/executors/size-limit/schema.md +0 -25
- package/dist/src/executors/typia/schema.d.ts +0 -48
- package/dist/src/executors/typia/schema.json +0 -57
- package/dist/src/executors/typia/schema.md +0 -46
- package/dist/src/executors/unbuild/schema.d.ts +0 -258
- package/dist/src/executors/unbuild/schema.json +0 -301
- package/dist/src/executors/unbuild/schema.md +0 -222
- package/dist/src/generators/browser-library/schema.d.ts +0 -122
- package/dist/src/generators/browser-library/schema.json +0 -117
- package/dist/src/generators/browser-library/schema.md +0 -129
- package/dist/src/generators/config-schema/schema.d.ts +0 -23
- package/dist/src/generators/config-schema/schema.json +0 -24
- package/dist/src/generators/config-schema/schema.md +0 -25
- package/dist/src/generators/init/schema.d.ts +0 -14
- package/dist/src/generators/init/schema.json +0 -15
- package/dist/src/generators/init/schema.md +0 -15
- package/dist/src/generators/neutral-library/schema.d.ts +0 -122
- package/dist/src/generators/neutral-library/schema.json +0 -116
- package/dist/src/generators/neutral-library/schema.md +0 -129
- package/dist/src/generators/node-library/schema.d.ts +0 -122
- package/dist/src/generators/node-library/schema.json +0 -117
- package/dist/src/generators/node-library/schema.md +0 -129
- package/dist/src/generators/preset/schema.d.ts +0 -101
- package/dist/src/generators/preset/schema.json +0 -96
- package/dist/src/generators/preset/schema.md +0 -110
- package/dist/src/generators/release-version/schema.d.ts +0 -180
- package/dist/src/generators/release-version/schema.json +0 -158
- package/dist/src/generators/release-version/schema.md +0 -160
- package/dist/src/plugins/typescript/untyped-schema.ts +0 -192
- package/dist/src/utils/toml.js +0 -15
- package/dist/src/utils/toml.mjs +0 -15
- package/dist/{chunk-3EDSGFA5.mjs → chunk-3PTWOMU2.mjs} +3 -3
- package/dist/{chunk-XCVH63OO.mjs → chunk-6YZ3OUJB.mjs} +0 -0
- package/dist/{chunk-DO2X7OZO.js → chunk-JGP4YWZY.js} +0 -0
- package/dist/{chunk-J4DYXH46.js → chunk-U3YH5M4L.js} +2 -2
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
var _chunk2CZBN33Pjs = require('./chunk-2CZBN33P.js');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
@@ -11,7 +12,8 @@ var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
|
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
|
|
16
|
+
var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
|
|
15
17
|
|
|
16
18
|
|
|
17
19
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -20,30 +22,30 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
|
20
22
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
21
23
|
skipReadingConfig: false
|
|
22
24
|
}) => async (tree, _options) => {
|
|
23
|
-
const stopwatch =
|
|
25
|
+
const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, name);
|
|
24
26
|
let options = _options;
|
|
25
27
|
let config;
|
|
26
28
|
try {
|
|
27
|
-
|
|
29
|
+
_chunkBNERGX6Ijs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
28
30
|
|
|
29
31
|
`, config);
|
|
30
32
|
const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
|
|
31
33
|
if (!generatorOptions.skipReadingConfig) {
|
|
32
|
-
|
|
34
|
+
_chunkBNERGX6Ijs.writeDebug.call(void 0,
|
|
33
35
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
34
36
|
- workspaceRoot: ${workspaceRoot}`,
|
|
35
37
|
config
|
|
36
38
|
);
|
|
37
|
-
config = await
|
|
39
|
+
config = await _chunk2CZBN33Pjs.getConfig.call(void 0, workspaceRoot);
|
|
38
40
|
}
|
|
39
41
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
40
|
-
|
|
42
|
+
_chunkBNERGX6Ijs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
41
43
|
options = await Promise.resolve(
|
|
42
44
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
43
45
|
);
|
|
44
|
-
|
|
46
|
+
_chunkBNERGX6Ijs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
45
47
|
}
|
|
46
|
-
|
|
48
|
+
_chunkBNERGX6Ijs.writeTrace.call(void 0,
|
|
47
49
|
`Generator schema options \u2699\uFE0F
|
|
48
50
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
49
51
|
config
|
|
@@ -54,11 +56,11 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
54
56
|
_chunkJ2Z4WP3Ejs.applyWorkspaceBaseTokens
|
|
55
57
|
);
|
|
56
58
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
57
|
-
|
|
59
|
+
_chunkBNERGX6Ijs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
58
60
|
await Promise.resolve(
|
|
59
61
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
60
62
|
);
|
|
61
|
-
|
|
63
|
+
_chunkBNERGX6Ijs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
62
64
|
}
|
|
63
65
|
const result = await Promise.resolve(
|
|
64
66
|
generatorFn(tree, tokenized, config)
|
|
@@ -73,21 +75,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
77
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
76
|
-
|
|
78
|
+
_chunkBNERGX6Ijs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
77
79
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
78
|
-
|
|
80
|
+
_chunkBNERGX6Ijs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
79
81
|
}
|
|
80
82
|
return () => {
|
|
81
|
-
|
|
83
|
+
_chunkBNERGX6Ijs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
82
84
|
`, config);
|
|
83
85
|
};
|
|
84
86
|
} catch (error) {
|
|
85
87
|
return () => {
|
|
86
|
-
|
|
88
|
+
_chunkBNERGX6Ijs.writeFatal.call(void 0,
|
|
87
89
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
88
90
|
config
|
|
89
91
|
);
|
|
90
|
-
|
|
92
|
+
_chunkBNERGX6Ijs.writeError.call(void 0,
|
|
91
93
|
`An exception was thrown in the generator's process
|
|
92
94
|
- Details: ${error.message}
|
|
93
95
|
- Stacktrace: ${error.stack}`,
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import {
|
|
2
|
+
writeError
|
|
3
|
+
} from "./chunk-WLB7XVWW.mjs";
|
|
4
|
+
|
|
5
|
+
// ../config-tools/src/utilities/toml.ts
|
|
2
6
|
import TOML from "@ltd/j-toml";
|
|
3
|
-
import { logger } from "@nx/devkit";
|
|
4
7
|
function parseCargoTomlWithTree(tree, projectRoot, projectName) {
|
|
5
8
|
const cargoTomlString = tree.read(`${projectRoot}/Cargo.toml`)?.toString();
|
|
6
9
|
if (!cargoTomlString) {
|
|
7
|
-
|
|
10
|
+
writeError(`Cannot find a Cargo.toml file in the ${projectName}`);
|
|
8
11
|
throw new Error();
|
|
9
12
|
}
|
|
10
13
|
return parseCargoToml(cargoTomlString);
|
|
@@ -30,15 +33,10 @@ function modifyCargoTable(toml, section, key, value) {
|
|
|
30
33
|
toml[section] ??= TOML.Section({});
|
|
31
34
|
toml[section][key] = typeof value === "object" && !Array.isArray(value) ? TOML.inline(value) : typeof value === "function" ? value() : value;
|
|
32
35
|
}
|
|
33
|
-
function modifyCargoNestedTable(toml, section, key, value) {
|
|
34
|
-
toml[section] ??= {};
|
|
35
|
-
toml[section][key] = TOML.Section(value);
|
|
36
|
-
}
|
|
37
36
|
|
|
38
37
|
export {
|
|
39
38
|
parseCargoTomlWithTree,
|
|
40
39
|
parseCargoToml,
|
|
41
40
|
stringifyCargoToml,
|
|
42
|
-
modifyCargoTable
|
|
43
|
-
modifyCargoNestedTable
|
|
41
|
+
modifyCargoTable
|
|
44
42
|
};
|
|
@@ -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 _chunkQWRE2UFSjs = require('./chunk-QWRE2UFS.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -15,29 +15,29 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
|
15
15
|
var _devkit = require('@nx/devkit');
|
|
16
16
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
17
17
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
18
|
-
|
|
18
|
+
_chunkBNERGX6Ijs.writeInfo.call(void 0,
|
|
19
19
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
20
20
|
config
|
|
21
21
|
);
|
|
22
|
-
|
|
22
|
+
_chunkBNERGX6Ijs.writeTrace.call(void 0,
|
|
23
23
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
24
24
|
config
|
|
25
25
|
);
|
|
26
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
26
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkBNERGX6Ijs.stormWorkspaceConfigSchema, {
|
|
27
27
|
name: "StormWorkspaceConfiguration"
|
|
28
28
|
});
|
|
29
|
-
|
|
29
|
+
_chunkBNERGX6Ijs.writeTrace.call(void 0, jsonSchema, config);
|
|
30
30
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
31
31
|
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, ))),
|
|
32
32
|
_optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./"
|
|
33
33
|
);
|
|
34
|
-
|
|
34
|
+
_chunkBNERGX6Ijs.writeTrace.call(void 0,
|
|
35
35
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
36
36
|
config
|
|
37
37
|
);
|
|
38
38
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
39
39
|
await _devkit.formatFiles.call(void 0, tree);
|
|
40
|
-
|
|
40
|
+
_chunkBNERGX6Ijs.writeSuccess.call(void 0,
|
|
41
41
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
42
42
|
config
|
|
43
43
|
);
|
|
@@ -45,7 +45,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
45
45
|
success: true
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
var generator_default =
|
|
48
|
+
var generator_default = _chunkQWRE2UFSjs.withRunGenerator.call(void 0,
|
|
49
49
|
"Configuration Schema Creator",
|
|
50
50
|
configSchemaGeneratorFn,
|
|
51
51
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkU3YH5M4Ljs = require('./chunk-U3YH5M4L.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQWRE2UFSjs = require('./chunk-QWRE2UFS.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
@@ -48,7 +48,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
48
48
|
description: schema.description,
|
|
49
49
|
directory: schema.directory
|
|
50
50
|
};
|
|
51
|
-
const options = await
|
|
51
|
+
const options = await _chunkU3YH5M4Ljs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
|
|
52
52
|
const { className, name, propertyName } = _devkit.names.call(void 0,
|
|
53
53
|
options.projectNames.projectFileName
|
|
54
54
|
);
|
|
@@ -78,11 +78,11 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
|
-
await
|
|
81
|
+
await _chunkU3YH5M4Ljs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
|
|
82
82
|
await _devkit.formatFiles.call(void 0, tree);
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
85
|
-
var generator_default =
|
|
85
|
+
var generator_default = _chunkQWRE2UFSjs.withRunGenerator.call(void 0,
|
|
86
86
|
"TypeScript Library Creator (Browser Platform)",
|
|
87
87
|
browserLibraryGeneratorFn,
|
|
88
88
|
{
|
|
@@ -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 _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 _chunkEDMNYJEBjs = require('./chunk-EDMNYJEB.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/cargo-publish/executor.ts
|
|
6
6
|
var _devkit = require('@nx/devkit');
|
|
@@ -25,7 +25,7 @@ async function runExecutor(options, context) {
|
|
|
25
25
|
context.root,
|
|
26
26
|
options.packageRoot ? options.packageRoot : root
|
|
27
27
|
);
|
|
28
|
-
const cargoToml =
|
|
28
|
+
const cargoToml = _chunkEDMNYJEBjs.parseCargoToml.call(void 0,
|
|
29
29
|
_fs.readFileSync.call(void 0, _devkit.joinPathFragments.call(void 0, packageRoot, "Cargo.toml"), "utf-8")
|
|
30
30
|
);
|
|
31
31
|
try {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkU3YH5M4Ljs = require('./chunk-U3YH5M4L.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkQWRE2UFSjs = require('./chunk-QWRE2UFS.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
@@ -37,7 +37,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
37
37
|
directory: schema.directory,
|
|
38
38
|
description: schema.description
|
|
39
39
|
};
|
|
40
|
-
const options = await
|
|
40
|
+
const options = await _chunkU3YH5M4Ljs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
|
|
41
41
|
const { className, name, propertyName } = _devkit.names.call(void 0, options.name);
|
|
42
42
|
_devkit.generateFiles.call(void 0, tree, filesDir, options.projectRoot, {
|
|
43
43
|
...schema,
|
|
@@ -55,11 +55,11 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
55
55
|
buildable: options.bundler && options.bundler !== "none",
|
|
56
56
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
57
57
|
});
|
|
58
|
-
await
|
|
58
|
+
await _chunkU3YH5M4Ljs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
|
|
59
59
|
await _devkit.formatFiles.call(void 0, tree);
|
|
60
60
|
return null;
|
|
61
61
|
}
|
|
62
|
-
var generator_default =
|
|
62
|
+
var generator_default = _chunkQWRE2UFSjs.withRunGenerator.call(void 0,
|
|
63
63
|
"TypeScript Library Creator (NodeJs Platform)",
|
|
64
64
|
nodeLibraryGeneratorFn,
|
|
65
65
|
{
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
var _chunk2CZBN33Pjs = require('./chunk-2CZBN33P.js');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
@@ -12,7 +13,8 @@ var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
|
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
|
|
17
|
+
var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
|
|
16
18
|
|
|
17
19
|
|
|
18
20
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -20,7 +22,7 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
|
20
22
|
// src/base/base-executor.ts
|
|
21
23
|
var _defu = require('defu');
|
|
22
24
|
var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
23
|
-
const stopwatch =
|
|
25
|
+
const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, name);
|
|
24
26
|
let options = _options;
|
|
25
27
|
let config = {};
|
|
26
28
|
try {
|
|
@@ -34,9 +36,9 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
34
36
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
35
37
|
const projectName = context.projectName;
|
|
36
38
|
config.workspaceRoot = workspaceRoot;
|
|
37
|
-
|
|
39
|
+
_chunkBNERGX6Ijs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
38
40
|
if (!executorOptions.skipReadingConfig) {
|
|
39
|
-
|
|
41
|
+
_chunkBNERGX6Ijs.writeTrace.call(void 0,
|
|
40
42
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
41
43
|
- workspaceRoot: ${workspaceRoot}
|
|
42
44
|
- projectRoot: ${projectRoot}
|
|
@@ -45,18 +47,18 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
45
47
|
`,
|
|
46
48
|
config
|
|
47
49
|
);
|
|
48
|
-
config = await
|
|
50
|
+
config = await _chunk2CZBN33Pjs.getConfig.call(void 0, workspaceRoot);
|
|
49
51
|
}
|
|
50
52
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
51
|
-
|
|
53
|
+
_chunkBNERGX6Ijs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
52
54
|
options = await Promise.resolve(
|
|
53
55
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
54
56
|
);
|
|
55
|
-
|
|
57
|
+
_chunkBNERGX6Ijs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
56
58
|
}
|
|
57
|
-
|
|
59
|
+
_chunkBNERGX6Ijs.writeTrace.call(void 0,
|
|
58
60
|
`Executor schema options \u2699\uFE0F
|
|
59
|
-
${
|
|
61
|
+
${_chunkBNERGX6Ijs.formatLogMessage.call(void 0, options)}
|
|
60
62
|
`,
|
|
61
63
|
config
|
|
62
64
|
);
|
|
@@ -69,18 +71,18 @@ ${_chunkWE4HK4RNjs.formatLogMessage.call(void 0, options)}
|
|
|
69
71
|
),
|
|
70
72
|
_chunkJ2Z4WP3Ejs.applyWorkspaceProjectTokens
|
|
71
73
|
);
|
|
72
|
-
|
|
74
|
+
_chunkBNERGX6Ijs.writeTrace.call(void 0,
|
|
73
75
|
`Executor schema tokenized options \u2699\uFE0F
|
|
74
|
-
${
|
|
76
|
+
${_chunkBNERGX6Ijs.formatLogMessage.call(void 0, tokenized)}
|
|
75
77
|
`,
|
|
76
78
|
config
|
|
77
79
|
);
|
|
78
80
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
79
|
-
|
|
81
|
+
_chunkBNERGX6Ijs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
80
82
|
await Promise.resolve(
|
|
81
83
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
82
84
|
);
|
|
83
|
-
|
|
85
|
+
_chunkBNERGX6Ijs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
84
86
|
}
|
|
85
87
|
const ret = executorFn(tokenized, context, config);
|
|
86
88
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -93,9 +95,9 @@ ${_chunkWE4HK4RNjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
93
95
|
ret
|
|
94
96
|
);
|
|
95
97
|
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")) {
|
|
96
|
-
|
|
98
|
+
_chunkBNERGX6Ijs.writeTrace.call(void 0,
|
|
97
99
|
`Failure determined by the ${name} executor
|
|
98
|
-
${
|
|
100
|
+
${_chunkBNERGX6Ijs.formatLogMessage.call(void 0, result)}`,
|
|
99
101
|
config
|
|
100
102
|
);
|
|
101
103
|
console.error(result);
|
|
@@ -104,21 +106,21 @@ ${_chunkWE4HK4RNjs.formatLogMessage.call(void 0, result)}`,
|
|
|
104
106
|
});
|
|
105
107
|
}
|
|
106
108
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
107
|
-
|
|
109
|
+
_chunkBNERGX6Ijs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
108
110
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
109
|
-
|
|
111
|
+
_chunkBNERGX6Ijs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
110
112
|
}
|
|
111
|
-
|
|
113
|
+
_chunkBNERGX6Ijs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
112
114
|
`, config);
|
|
113
115
|
return {
|
|
114
116
|
success: true
|
|
115
117
|
};
|
|
116
118
|
} catch (error) {
|
|
117
|
-
|
|
119
|
+
_chunkBNERGX6Ijs.writeFatal.call(void 0,
|
|
118
120
|
"A fatal error occurred while running the executor - the process was forced to terminate",
|
|
119
121
|
config
|
|
120
122
|
);
|
|
121
|
-
|
|
123
|
+
_chunkBNERGX6Ijs.writeError.call(void 0,
|
|
122
124
|
`An exception was thrown in the executor's process
|
|
123
125
|
- Details: ${error.message}
|
|
124
126
|
- Stacktrace: ${error.stack}`,
|