@storm-software/workspace-tools 1.275.22 → 1.276.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 +22 -0
- package/README.md +1 -1
- package/dist/{chunk-Y47IDRQF.mjs → chunk-2RYRJCJP.mjs} +1 -1
- package/dist/{chunk-XUPPPUVL.mjs → chunk-3JSXN2JH.mjs} +1 -1
- package/dist/{chunk-K2CSCQCX.mjs → chunk-4CGQR2BZ.mjs} +1 -1
- package/dist/{chunk-G6EH3PP7.mjs → chunk-4CPXFHAU.mjs} +2 -2
- package/dist/{chunk-6R4A3PB6.js → chunk-4PG3MS76.js} +21 -21
- package/dist/{chunk-C7LHUAYC.mjs → chunk-5AXTWPT3.mjs} +3 -3
- package/dist/{chunk-M4MFOGBP.js → chunk-5PBC5IRU.js} +14 -9
- package/dist/{chunk-HWLOOO2F.mjs → chunk-5PBHPTMQ.mjs} +3 -3
- package/dist/{chunk-TED4ZEH4.js → chunk-5TG3INAM.js} +2 -2
- package/dist/{chunk-HMYD5M4B.mjs → chunk-6M7JRLZR.mjs} +2 -2
- package/dist/{chunk-I4SUMEDP.mjs → chunk-7B3M3GQN.mjs} +3 -3
- package/dist/{chunk-Y2U6VHAA.js → chunk-BCMHDP7Y.js} +31 -31
- package/dist/{chunk-L5YPQPPI.js → chunk-DBMWS2IA.js} +2 -2
- package/dist/{chunk-WPS2TBOT.mjs → chunk-DMMXAEFT.mjs} +2 -2
- package/dist/{chunk-ZMH42O44.mjs → chunk-EM2AALIN.mjs} +2 -2
- package/dist/{chunk-RI4DKWHY.mjs → chunk-HGSRFLZC.mjs} +1 -1
- package/dist/{chunk-T37KAYWR.mjs → chunk-I6UYMBJI.mjs} +8 -3
- package/dist/{chunk-U46LNC6Z.mjs → chunk-IIIBVYB5.mjs} +1 -1
- package/dist/{chunk-PS2BJ4LE.js → chunk-IM33U3N5.js} +16 -16
- package/dist/{chunk-DKLKGRRG.js → chunk-IO4IWRFF.js} +2 -2
- package/dist/{chunk-ZTOCNHII.js → chunk-J4MFDFZM.js} +5 -5
- package/dist/{chunk-EN5XS3GB.js → chunk-K7STHRGH.js} +3 -3
- package/dist/{chunk-VXAYID6A.js → chunk-M2FFEHXU.js} +20 -20
- package/dist/{chunk-FFOWIU7U.js → chunk-M2IC6JHJ.js} +5 -5
- package/dist/{chunk-VM2NJKNU.mjs → chunk-M7VQKYVL.mjs} +1 -1
- package/dist/{chunk-7B7MO37D.mjs → chunk-NWUV7MGR.mjs} +1 -1
- package/dist/{chunk-JMWUA7I6.mjs → chunk-OQTMLWUD.mjs} +1 -1
- package/dist/{chunk-VTWK6DYL.js → chunk-OTKTSH3R.js} +2 -2
- package/dist/{chunk-LV23UCVW.mjs → chunk-PGQZ6GWB.mjs} +1 -1
- package/dist/{chunk-ZBYX46UV.mjs → chunk-TLH7M3OP.mjs} +1 -1
- package/dist/{chunk-RRSFJSUD.mjs → chunk-TNCOWS3E.mjs} +1 -1
- package/dist/{chunk-SC7EMPTR.js → chunk-TZOJAAPI.js} +2 -2
- package/dist/{chunk-UND65LI3.js → chunk-UDGRNGFU.js} +2 -2
- package/dist/{chunk-N26S5ZZO.js → chunk-UE2OS3TP.js} +4 -4
- package/dist/{chunk-Q4OQNT35.js → chunk-UTI3BKKR.js} +2 -2
- package/dist/{chunk-N56A46X4.js → chunk-VWERGJQ6.js} +19 -19
- package/dist/{chunk-5TUFRMTO.js → chunk-WD2JTXUI.js} +2 -2
- package/dist/{chunk-M4FI4A7J.mjs → chunk-WK67DSD7.mjs} +2 -2
- package/dist/{chunk-7ZRQQA25.js → chunk-WY6XFYOC.js} +2 -2
- package/dist/{chunk-42TNQHCD.js → chunk-X6KLEVET.js} +2 -2
- package/dist/{chunk-EN6UN4HW.mjs → chunk-Z2S37WBS.mjs} +1 -1
- package/dist/{chunk-IK64JJIC.js → chunk-ZA3LW6GQ.js} +2 -2
- package/dist/{chunk-ZCZPWHWR.mjs → chunk-ZMJB562L.mjs} +1 -1
- package/dist/{chunk-EUAJDEYR.js → chunk-ZQUD2RJJ.js} +2 -2
- package/dist/{executor-BSjbUx1A.d.ts → executor-BrpeEaZV.d.ts} +1 -1
- package/dist/{executor-Cmx3MWUy.d.mts → executor-CEvkBQ79.d.mts} +1 -1
- package/dist/{executor-BP-LYnHF.d.mts → executor-CT0Y81tm.d.mts} +1 -1
- package/dist/{executor-CTCU7CcG.d.ts → executor-D7HcU2M0.d.ts} +1 -1
- package/dist/{executor-C-siLbCm.d.ts → executor-DDglqRsa.d.ts} +1 -1
- package/dist/{executor-CKiwa5Xq.d.mts → executor-Y7D02xEJ.d.mts} +1 -1
- package/dist/{executor-BksAOv8G.d.ts → executor-dlvesVyH.d.ts} +1 -1
- package/dist/{executor-XS6ys9ih.d.mts → executor-gsQ6mBP0.d.mts} +1 -1
- package/dist/executors.d.mts +5 -5
- package/dist/executors.d.ts +5 -5
- package/dist/executors.js +15 -15
- package/dist/executors.mjs +14 -14
- package/dist/{generator-BtKZw7Ii.d.mts → generator-ASoC8Gil.d.mts} +1 -1
- package/dist/{generator-Ca1yHZ_D.d.ts → generator-B8qRBskF.d.ts} +2 -2
- package/dist/{generator-BXzhsfxo.d.ts → generator-BCF40Ama.d.ts} +1 -1
- package/dist/{generator-MW3X4CCa.d.mts → generator-BaTjYE5h.d.mts} +2 -2
- package/dist/{generator-CCIH4c92.d.ts → generator-BeZiPW7I.d.ts} +1 -1
- package/dist/{generator-Sdga0BE0.d.mts → generator-ByQJcF-J.d.mts} +1 -1
- package/dist/{generator-CVD09mcB.d.mts → generator-C-gSLIsm.d.mts} +2 -2
- package/dist/{generator-BuRFeV2C.d.ts → generator-DCCeCZ37.d.ts} +2 -2
- package/dist/{generator-BZs3V01e.d.ts → generator-DibLq_D2.d.ts} +2 -2
- package/dist/{generator-qXrsuk5E.d.ts → generator-DjTifqsq.d.ts} +2 -2
- package/dist/{generator-DjwiJF7J.d.mts → generator-E1FU2uPH.d.mts} +2 -2
- package/dist/{generator-CYG64r2I.d.mts → generator-ZwP_ZxdH.d.mts} +2 -2
- package/dist/generators.d.mts +8 -8
- package/dist/generators.d.ts +8 -8
- package/dist/generators.js +11 -11
- package/dist/generators.mjs +10 -10
- package/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +23 -23
- package/dist/index.mjs +22 -22
- package/dist/src/base/base-executor.d.mts +2 -2
- package/dist/src/base/base-executor.d.ts +2 -2
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-generator.d.mts +2 -2
- package/dist/src/base/base-generator.d.ts +2 -2
- package/dist/src/base/base-generator.js +4 -4
- package/dist/src/base/base-generator.mjs +3 -3
- package/dist/src/base/index.d.mts +2 -2
- package/dist/src/base/index.d.ts +2 -2
- package/dist/src/base/index.js +5 -5
- package/dist/src/base/index.mjs +4 -4
- package/dist/src/executors/cargo-build/executor.js +5 -5
- package/dist/src/executors/cargo-build/executor.mjs +4 -4
- package/dist/src/executors/cargo-check/executor.js +5 -5
- package/dist/src/executors/cargo-check/executor.mjs +4 -4
- package/dist/src/executors/cargo-clippy/executor.js +5 -5
- package/dist/src/executors/cargo-clippy/executor.mjs +4 -4
- package/dist/src/executors/cargo-doc/executor.js +5 -5
- package/dist/src/executors/cargo-doc/executor.mjs +4 -4
- package/dist/src/executors/cargo-format/executor.js +5 -5
- package/dist/src/executors/cargo-format/executor.mjs +4 -4
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.d.mts +1 -1
- package/dist/src/executors/clean-package/executor.d.ts +1 -1
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- package/dist/src/executors/esbuild/executor.d.mts +2 -2
- package/dist/src/executors/esbuild/executor.d.ts +2 -2
- package/dist/src/executors/esbuild/executor.js +5 -5
- package/dist/src/executors/esbuild/executor.mjs +4 -4
- package/dist/src/executors/size-limit/executor.d.mts +2 -2
- package/dist/src/executors/size-limit/executor.d.ts +2 -2
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/typia/executor.d.mts +2 -2
- package/dist/src/executors/typia/executor.d.ts +2 -2
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +4 -4
- package/dist/src/executors/unbuild/executor.d.mts +2 -2
- package/dist/src/executors/unbuild/executor.d.ts +2 -2
- package/dist/src/executors/unbuild/executor.js +5 -5
- package/dist/src/executors/unbuild/executor.mjs +4 -4
- package/dist/src/generators/browser-library/generator.d.mts +3 -3
- package/dist/src/generators/browser-library/generator.d.ts +3 -3
- package/dist/src/generators/browser-library/generator.js +5 -5
- package/dist/src/generators/browser-library/generator.mjs +4 -4
- package/dist/src/generators/config-schema/generator.d.mts +3 -3
- package/dist/src/generators/config-schema/generator.d.ts +3 -3
- package/dist/src/generators/config-schema/generator.js +5 -5
- package/dist/src/generators/config-schema/generator.mjs +4 -4
- package/dist/src/generators/neutral-library/generator.d.mts +3 -3
- package/dist/src/generators/neutral-library/generator.d.ts +3 -3
- package/dist/src/generators/neutral-library/generator.js +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +4 -4
- package/dist/src/generators/node-library/generator.d.mts +3 -3
- package/dist/src/generators/node-library/generator.d.ts +3 -3
- package/dist/src/generators/node-library/generator.js +5 -5
- package/dist/src/generators/node-library/generator.mjs +4 -4
- package/dist/src/generators/preset/generator.d.mts +3 -3
- package/dist/src/generators/preset/generator.d.ts +3 -3
- package/dist/src/generators/preset/generator.js +5 -5
- package/dist/src/generators/preset/generator.mjs +4 -4
- 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 +5 -5
- package/dist/src/generators/release-version/generator.mjs +4 -4
- package/dist/src/types.d.mts +2 -2
- package/dist/src/types.d.ts +2 -2
- package/dist/src/utils/apply-workspace-tokens.d.mts +1 -1
- package/dist/src/utils/apply-workspace-tokens.d.ts +1 -1
- package/dist/src/utils/index.d.mts +2 -2
- package/dist/src/utils/index.d.ts +2 -2
- package/dist/src/utils/index.js +4 -4
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/package-helpers.js +4 -4
- package/dist/src/utils/package-helpers.mjs +3 -3
- package/dist/src/utils/project-tags.d.mts +2 -2
- package/dist/src/utils/project-tags.d.ts +2 -2
- package/dist/{types-DzO7l4VZ.d.mts → types-Ct1PzAjk.d.mts} +1 -1
- package/dist/{types-sLpco176.d.ts → types-DARKEZG9.d.mts} +2 -2
- package/dist/{types-sLpco176.d.mts → types-DARKEZG9.d.ts} +2 -2
- package/dist/{types-CaL51DUL.d.ts → types-DpaeUKVh.d.ts} +1 -1
- package/package.json +4 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6M7JRLZR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
stormWorkspaceConfigSchema,
|
|
6
6
|
writeInfo,
|
|
7
7
|
writeSuccess,
|
|
8
8
|
writeTrace
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5AXTWPT3.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findWorkspaceRoot
|
|
12
12
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -23,7 +23,12 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
23
23
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
24
24
|
config
|
|
25
25
|
);
|
|
26
|
-
const jsonSchema = z.toJSONSchema(stormWorkspaceConfigSchema
|
|
26
|
+
const jsonSchema = z.toJSONSchema(stormWorkspaceConfigSchema, {
|
|
27
|
+
target: "draft-7"
|
|
28
|
+
});
|
|
29
|
+
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
30
|
+
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
31
|
+
jsonSchema.description ??= "This JSON Schema defines the structure of the Storm Workspace configuration file (`storm-workspace.json`). It is used to validate the configuration file and ensure that it adheres to the expected format.";
|
|
27
32
|
writeTrace(jsonSchema, config);
|
|
28
33
|
if (!options.outputFile) {
|
|
29
34
|
throw new Error(
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkVWERGJQ6js = require('./chunk-VWERGJQ6.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ var _chunkN56A46X4js = require('./chunk-N56A46X4.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkK7STHRGHjs = require('./chunk-K7STHRGH.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -22,30 +22,30 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
|
22
22
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
23
23
|
skipReadingConfig: false
|
|
24
24
|
}) => async (tree, _options) => {
|
|
25
|
-
const stopwatch =
|
|
25
|
+
const stopwatch = _chunkK7STHRGHjs.getStopwatch.call(void 0, name);
|
|
26
26
|
let options = _options;
|
|
27
27
|
let config;
|
|
28
28
|
try {
|
|
29
|
-
|
|
29
|
+
_chunkK7STHRGHjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
30
30
|
|
|
31
31
|
`, config);
|
|
32
32
|
const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
|
|
33
33
|
if (!generatorOptions.skipReadingConfig) {
|
|
34
|
-
|
|
34
|
+
_chunkK7STHRGHjs.writeDebug.call(void 0,
|
|
35
35
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
36
36
|
- workspaceRoot: ${workspaceRoot}`,
|
|
37
37
|
config
|
|
38
38
|
);
|
|
39
|
-
config = await
|
|
39
|
+
config = await _chunkVWERGJQ6js.getConfig.call(void 0, workspaceRoot);
|
|
40
40
|
}
|
|
41
41
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
42
|
-
|
|
42
|
+
_chunkK7STHRGHjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
43
43
|
options = await Promise.resolve(
|
|
44
44
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
45
45
|
);
|
|
46
|
-
|
|
46
|
+
_chunkK7STHRGHjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
_chunkK7STHRGHjs.writeTrace.call(void 0,
|
|
49
49
|
`Generator schema options \u2699\uFE0F
|
|
50
50
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
51
51
|
config
|
|
@@ -56,11 +56,11 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
56
56
|
_chunkJ2Z4WP3Ejs.applyWorkspaceBaseTokens
|
|
57
57
|
);
|
|
58
58
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
59
|
-
|
|
59
|
+
_chunkK7STHRGHjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
60
60
|
await Promise.resolve(
|
|
61
61
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
62
62
|
);
|
|
63
|
-
|
|
63
|
+
_chunkK7STHRGHjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
64
64
|
}
|
|
65
65
|
const result = await Promise.resolve(
|
|
66
66
|
generatorFn(tree, tokenized, config)
|
|
@@ -75,21 +75,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
78
|
-
|
|
78
|
+
_chunkK7STHRGHjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
79
79
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
80
|
-
|
|
80
|
+
_chunkK7STHRGHjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
81
81
|
}
|
|
82
82
|
return () => {
|
|
83
|
-
|
|
83
|
+
_chunkK7STHRGHjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
84
84
|
`, config);
|
|
85
85
|
};
|
|
86
86
|
} catch (error) {
|
|
87
87
|
return () => {
|
|
88
|
-
|
|
88
|
+
_chunkK7STHRGHjs.writeFatal.call(void 0,
|
|
89
89
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
90
90
|
config
|
|
91
91
|
);
|
|
92
|
-
|
|
92
|
+
_chunkK7STHRGHjs.writeError.call(void 0,
|
|
93
93
|
`An exception was thrown in the generator's process
|
|
94
94
|
- Details: ${error.message}
|
|
95
95
|
- Stacktrace: ${error.stack}`,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkAX3RSZT7js = require('./chunk-AX3RSZT7.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkWD2JTXUIjs = require('./chunk-WD2JTXUI.js');
|
|
8
8
|
|
|
9
9
|
// src/utils/package-helpers.ts
|
|
10
10
|
|
|
@@ -24,7 +24,7 @@ var getPackageInfo = (project) => {
|
|
|
24
24
|
) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))) {
|
|
25
25
|
return {
|
|
26
26
|
type: "Cargo.toml",
|
|
27
|
-
content:
|
|
27
|
+
content: _chunkWD2JTXUIjs.parseCargoToml.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
|
|
28
28
|
};
|
|
29
29
|
} else if (_chunkAX3RSZT7js.isEqualProjectTag.call(void 0,
|
|
30
30
|
project,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4PG3MS76js = require('./chunk-4PG3MS76.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkK7STHRGHjs = require('./chunk-K7STHRGH.js');
|
|
7
7
|
|
|
8
8
|
// src/executors/typia/executor.ts
|
|
9
9
|
var _fsextra = require('fs-extra');
|
|
10
10
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
11
11
|
async function typiaExecutorFn(options, _, config) {
|
|
12
12
|
if (options.clean !== false) {
|
|
13
|
-
|
|
13
|
+
_chunkK7STHRGHjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
14
14
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
15
15
|
}
|
|
16
16
|
await Promise.all(
|
|
17
17
|
options.entry.map((entry) => {
|
|
18
|
-
|
|
18
|
+
_chunkK7STHRGHjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
19
19
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
20
20
|
input: entry,
|
|
21
21
|
output: options.outputPath,
|
|
@@ -27,7 +27,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
27
27
|
success: true
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
var executor_default =
|
|
30
|
+
var executor_default = _chunk4PG3MS76js.withRunExecutor.call(void 0,
|
|
31
31
|
"Typia runtime validation generator",
|
|
32
32
|
typiaExecutorFn,
|
|
33
33
|
{
|
|
@@ -182,9 +182,9 @@ var organizationConfigSchema = z.object({
|
|
|
182
182
|
}).describe("The workspace's organization details");
|
|
183
183
|
var stormWorkspaceConfigSchema = z.object({
|
|
184
184
|
$schema: z.string().trim().default(
|
|
185
|
-
"https://
|
|
186
|
-
).
|
|
187
|
-
"The URL to the JSON schema file that describes the Storm configuration file"
|
|
185
|
+
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
186
|
+
).describe(
|
|
187
|
+
"The URL or file path to the JSON schema file that describes the Storm configuration file"
|
|
188
188
|
),
|
|
189
189
|
extends: ExtendsSchema.optional(),
|
|
190
190
|
name: z.string().trim().toLowerCase().optional().describe(
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkWD2JTXUIjs = require('./chunk-WD2JTXUI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkVWERGJQ6js = require('./chunk-VWERGJQ6.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ var _chunkN56A46X4js = require('./chunk-N56A46X4.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkK7STHRGHjs = require('./chunk-K7STHRGH.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -255,19 +255,19 @@ var _versionlegacy = require('nx/src/command-line/release/version-legacy');
|
|
|
255
255
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
256
256
|
var _semver3 = require('semver');
|
|
257
257
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
258
|
-
|
|
258
|
+
_chunkK7STHRGHjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
259
259
|
|
|
260
260
|
`, config);
|
|
261
|
-
const stopwatch =
|
|
261
|
+
const stopwatch = _chunkK7STHRGHjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
262
262
|
try {
|
|
263
263
|
const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
|
|
264
|
-
|
|
264
|
+
_chunkK7STHRGHjs.writeDebug.call(void 0,
|
|
265
265
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
266
266
|
- workspaceRoot: ${workspaceRoot}`,
|
|
267
267
|
config
|
|
268
268
|
);
|
|
269
|
-
config = await
|
|
270
|
-
|
|
269
|
+
config = await _chunkVWERGJQ6js.getConfig.call(void 0, workspaceRoot);
|
|
270
|
+
_chunkK7STHRGHjs.writeTrace.call(void 0,
|
|
271
271
|
`Generator schema options \u2699\uFE0F
|
|
272
272
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).filter(
|
|
273
273
|
(key) => ![
|
|
@@ -348,9 +348,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
348
348
|
tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath
|
|
349
349
|
);
|
|
350
350
|
const log = (msg) => {
|
|
351
|
-
|
|
351
|
+
_chunkK7STHRGHjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
352
352
|
};
|
|
353
|
-
|
|
353
|
+
_chunkK7STHRGHjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
354
354
|
let packageName;
|
|
355
355
|
let currentVersionFromDisk;
|
|
356
356
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -361,7 +361,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
361
361
|
packageName = projectPackageJson.name;
|
|
362
362
|
currentVersionFromDisk = projectPackageJson.version;
|
|
363
363
|
} else if (tree.exists(cargoTomlPath)) {
|
|
364
|
-
const cargoToml =
|
|
364
|
+
const cargoToml = _chunkWD2JTXUIjs.parseCargoToml.call(void 0,
|
|
365
365
|
_optionalChain([tree, 'access', _10 => _10.read, 'call', _11 => _11(cargoTomlPath), 'optionalAccess', _12 => _12.toString, 'call', _13 => _13("utf-8")])
|
|
366
366
|
);
|
|
367
367
|
log(
|
|
@@ -632,12 +632,12 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
632
632
|
version: newVersion
|
|
633
633
|
});
|
|
634
634
|
} else if (tree.exists(cargoTomlPath)) {
|
|
635
|
-
const cargoToml =
|
|
635
|
+
const cargoToml = _chunkWD2JTXUIjs.parseCargoToml.call(void 0,
|
|
636
636
|
_optionalChain([tree, 'access', _23 => _23.read, 'call', _24 => _24(cargoTomlPath), 'optionalAccess', _25 => _25.toString, 'call', _26 => _26("utf-8")])
|
|
637
637
|
);
|
|
638
638
|
cargoToml.package ??= {};
|
|
639
639
|
cargoToml.package.version = newVersion;
|
|
640
|
-
tree.write(cargoTomlPath,
|
|
640
|
+
tree.write(cargoTomlPath, _chunkWD2JTXUIjs.stringifyCargoToml.call(void 0, cargoToml));
|
|
641
641
|
}
|
|
642
642
|
log(
|
|
643
643
|
`\u270D\uFE0F New version ${newVersion} written to ${workspaceRelativePackagePath}`
|
|
@@ -685,7 +685,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
685
685
|
return json;
|
|
686
686
|
});
|
|
687
687
|
} else if (tree.exists(dependentCargoTomlPath)) {
|
|
688
|
-
const dependentPkg =
|
|
688
|
+
const dependentPkg = _chunkWD2JTXUIjs.parseCargoTomlWithTree.call(void 0,
|
|
689
689
|
tree,
|
|
690
690
|
dependentPackageRoot,
|
|
691
691
|
dependentProject.source
|
|
@@ -727,18 +727,18 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
727
727
|
dependentPackageRoot,
|
|
728
728
|
"Cargo.toml"
|
|
729
729
|
);
|
|
730
|
-
|
|
730
|
+
_chunkWD2JTXUIjs.modifyCargoTable.call(void 0,
|
|
731
731
|
dependentPkg,
|
|
732
732
|
dependentProject.dependencyCollection,
|
|
733
733
|
dependentProject.target,
|
|
734
734
|
updatedDependencyData
|
|
735
735
|
);
|
|
736
|
-
tree.write(cargoTomlToUpdate,
|
|
736
|
+
tree.write(cargoTomlToUpdate, _chunkWD2JTXUIjs.stringifyCargoToml.call(void 0, dependentPkg));
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
await _devkit.formatFiles.call(void 0, tree);
|
|
741
|
-
|
|
741
|
+
_chunkK7STHRGHjs.writeSuccess.call(void 0,
|
|
742
742
|
`Completed running the Storm Release Version generator!
|
|
743
743
|
`,
|
|
744
744
|
config
|
|
@@ -777,11 +777,11 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
779
|
} catch (error) {
|
|
780
|
-
|
|
780
|
+
_chunkK7STHRGHjs.writeFatal.call(void 0,
|
|
781
781
|
"A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate",
|
|
782
782
|
config
|
|
783
783
|
);
|
|
784
|
-
|
|
784
|
+
_chunkK7STHRGHjs.writeError.call(void 0,
|
|
785
785
|
`An exception was thrown in the Storm Release Version generator's process
|
|
786
786
|
- Details: ${error.message}
|
|
787
787
|
- Stacktrace: ${error.stack}`,
|
|
@@ -880,7 +880,7 @@ function resolveLocalPackageCargoDependencies(tree, projectGraph, filteredProjec
|
|
|
880
880
|
`The project "${dep.target}" does not have a packageRoot available.`
|
|
881
881
|
);
|
|
882
882
|
}
|
|
883
|
-
const cargoToml =
|
|
883
|
+
const cargoToml = _chunkWD2JTXUIjs.parseCargoTomlWithTree.call(void 0,
|
|
884
884
|
tree,
|
|
885
885
|
resolvePackageRoot(projectNode),
|
|
886
886
|
projectNode.name
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunk4PG3MS76js = require('./chunk-4PG3MS76.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkK7STHRGHjs = require('./chunk-K7STHRGH.js');
|
|
7
7
|
|
|
8
8
|
// src/executors/size-limit/executor.ts
|
|
9
9
|
var _devkit = require('@nx/devkit');
|
|
@@ -17,14 +17,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
17
17
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
_chunkK7STHRGHjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
21
21
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
22
22
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
23
23
|
_nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")),
|
|
24
24
|
"src"
|
|
25
25
|
)))
|
|
26
26
|
}).then((result) => {
|
|
27
|
-
|
|
27
|
+
_chunkK7STHRGHjs.writeInfo.call(void 0,
|
|
28
28
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
29
29
|
config
|
|
30
30
|
);
|
|
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
33
33
|
success: true
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunk4PG3MS76js.withRunExecutor.call(void 0,
|
|
37
37
|
"Size-Limit Performance Test Executor",
|
|
38
38
|
sizeLimitExecutorFn,
|
|
39
39
|
{
|
|
@@ -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 _chunkWD2JTXUIjs = require('./chunk-WD2JTXUI.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 = _chunkWD2JTXUIjs.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 {
|
|
@@ -7,7 +7,7 @@ var _chunkVTPEPAEBjs = require('./chunk-VTPEPAEB.js');
|
|
|
7
7
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkIM33U3N5js = require('./chunk-IM33U3N5.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
@@ -59,7 +59,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
59
59
|
await _devkit.formatFiles.call(void 0, tree);
|
|
60
60
|
return null;
|
|
61
61
|
}
|
|
62
|
-
var generator_default =
|
|
62
|
+
var generator_default = _chunkIM33U3N5js.withRunGenerator.call(void 0,
|
|
63
63
|
"TypeScript Library Creator (NodeJs Platform)",
|
|
64
64
|
nodeLibraryGeneratorFn,
|
|
65
65
|
{
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4PG3MS76js = require('./chunk-4PG3MS76.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-build/executor.ts
|
|
10
10
|
async function cargoBuildExecutor(options, context) {
|
|
11
11
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "build", options, context);
|
|
12
12
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunk4PG3MS76js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Build",
|
|
16
16
|
cargoBuildExecutor,
|
|
17
17
|
{
|
|
@@ -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 _chunk4PG3MS76js = require('./chunk-4PG3MS76.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkK7STHRGHjs = require('./chunk-K7STHRGH.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
@@ -12,7 +12,7 @@ var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
|
12
12
|
var _defu = require('defu');
|
|
13
13
|
var _jiti = require('jiti');
|
|
14
14
|
async function unbuildExecutorFn(options, context, config) {
|
|
15
|
-
|
|
15
|
+
_chunkK7STHRGHjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
16
16
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
17
17
|
throw new Error(
|
|
18
18
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -80,7 +80,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
80
80
|
success: true
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
var executor_default =
|
|
83
|
+
var executor_default = _chunk4PG3MS76js.withRunExecutor.call(void 0,
|
|
84
84
|
"TypeScript Unbuild build",
|
|
85
85
|
unbuildExecutorFn,
|
|
86
86
|
{
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4PG3MS76js = require('./chunk-4PG3MS76.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-format/executor.ts
|
|
10
10
|
async function cargoFormatExecutor(options, context) {
|
|
11
11
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "fmt", options, context);
|
|
12
12
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunk4PG3MS76js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Format",
|
|
16
16
|
cargoFormatExecutor,
|
|
17
17
|
{
|