@storm-software/workspace-tools 1.266.5 → 1.266.6
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/dist/{chunk-EXQMY7WD.mjs → chunk-335UGATU.mjs} +2 -2
- package/dist/{chunk-LBWGCRH2.mjs → chunk-4U2EPXAU.mjs} +1 -1
- package/dist/{chunk-TCG7CFMK.js → chunk-5F2CURZV.js} +2 -2
- package/dist/{chunk-24FSFLEJ.mjs → chunk-5HQ2CJGY.mjs} +2 -2
- package/dist/{chunk-MHTKV6DY.mjs → chunk-63HRVALY.mjs} +1 -1
- package/dist/{chunk-N5N2BZHB.mjs → chunk-6FPBRF77.mjs} +14 -9
- package/dist/{chunk-OFA5UEOD.js → chunk-7NGXSGS5.js} +5 -5
- package/dist/{chunk-TEHJDKUJ.mjs → chunk-7Z2ULC65.mjs} +1 -1
- package/dist/{chunk-56NOEAUZ.mjs → chunk-AUSTHLXU.mjs} +1 -1
- package/dist/{chunk-XFBY2IVQ.js → chunk-BJ6UNKNM.js} +9 -9
- package/dist/{chunk-POI2YR4E.js → chunk-BMKYESA4.js} +11 -11
- package/dist/{chunk-IOYD4LKE.mjs → chunk-CI6WHE7R.mjs} +2 -2
- package/dist/{chunk-3FIZEIEU.mjs → chunk-DCDL5X62.mjs} +1 -1
- package/dist/{chunk-HAUXJ6F2.mjs → chunk-DPAEB5AE.mjs} +1 -1
- package/dist/{chunk-BAJ3JRJC.js → chunk-EDK24SJW.js} +20 -20
- package/dist/{chunk-KE7BLB2Y.mjs → chunk-EDTGMFRL.mjs} +2 -2
- package/dist/{chunk-NY3AXYUD.js → chunk-F2MPINGT.js} +2 -2
- package/dist/{chunk-UQTVXA7T.mjs → chunk-HTDWHJOR.mjs} +1 -1
- package/dist/{chunk-CXXOP7P6.js → chunk-HYRQEEMO.js} +2 -2
- package/dist/{chunk-6YRWQ3TB.mjs → chunk-I5EWTUBR.mjs} +1 -1
- package/dist/{chunk-BP5OIRQR.js → chunk-LQRTSQDP.js} +5 -5
- package/dist/{chunk-GX74WTEM.js → chunk-MKHDCU77.js} +40 -40
- package/dist/{chunk-SN7IJGEE.js → chunk-MP2P2MGP.js} +14 -9
- package/dist/{chunk-CSGLVAIK.js → chunk-N2ASVLIK.js} +2 -2
- package/dist/{chunk-JOA2AXGF.js → chunk-NCV26VAW.js} +15 -15
- package/dist/{chunk-OCJK2N3G.js → chunk-PTJZKLHO.js} +2 -2
- package/dist/{chunk-5UUINVQE.mjs → chunk-R3GMLI4Z.mjs} +1 -1
- package/dist/{chunk-2BI3RJFP.mjs → chunk-RLOOI5TH.mjs} +2 -2
- package/dist/{chunk-CGGBNNFN.mjs → chunk-SDDKJY7U.mjs} +1 -1
- package/dist/{chunk-ZV2PR5R3.mjs → chunk-SWHFMF2Z.mjs} +1 -1
- package/dist/{chunk-HVOODRL3.js → chunk-TPWVZZWY.js} +2 -2
- package/dist/{chunk-JADXJLCF.js → chunk-UWVKS62B.js} +4 -4
- package/dist/{chunk-7F4BVKX3.js → chunk-YT3ECNTF.js} +2 -2
- package/dist/{chunk-AKADBPPT.js → chunk-YXMSMPZL.js} +2 -2
- package/dist/{chunk-PYR5LR3M.js → chunk-Z255YQZR.js} +2 -2
- package/dist/{chunk-KLY4F7KE.mjs → chunk-ZQESJHZL.mjs} +1 -1
- package/dist/{executor-CsTGaThv.d.mts → executor-B64kh1oi.d.mts} +1 -1
- package/dist/{executor-Xwofymys.d.mts → executor-BB2ETtRv.d.mts} +1 -1
- package/dist/{executor-2Oxd-ew3.d.ts → executor-BoDeD560.d.ts} +1 -1
- package/dist/{executor-BvnlpAbd.d.ts → executor-DGI7S1K6.d.ts} +1 -1
- package/dist/{executor-CLYItx2J.d.ts → executor-DJnjBsHi.d.ts} +1 -1
- package/dist/{executor-DpaKJJUo.d.mts → executor-DQYta-Bm.d.mts} +1 -1
- package/dist/{executor-BD4gkr4O.d.ts → executor-DweIL90b.d.ts} +1 -1
- package/dist/{executor-FYb5cygt.d.mts → executor-iAEPRwdw.d.mts} +1 -1
- package/dist/executors.d.mts +5 -5
- package/dist/executors.d.ts +5 -5
- package/dist/executors.js +14 -14
- package/dist/executors.mjs +17 -17
- package/dist/{generator-BXJFXwbk.d.ts → generator-BHwTuGoc.d.ts} +2 -2
- package/dist/{generator-CLFmsVdh.d.ts → generator-Bjo526Ot.d.ts} +1 -1
- package/dist/{generator-gUQuyamW.d.mts → generator-BqKMXZ9U.d.mts} +2 -2
- package/dist/{generator-D3Kl6o6G.d.mts → generator-DK9vOp3f.d.mts} +2 -2
- package/dist/{generator-BPz6wkk9.d.mts → generator-DMoR2v0k.d.mts} +2 -2
- package/dist/{generator-BMY6LGPc.d.ts → generator-DRa-qwNt.d.ts} +1 -1
- package/dist/{generator-Bw4on8nq.d.mts → generator-Dgh8EO8f.d.mts} +2 -2
- package/dist/{generator-D7pW3Ag7.d.mts → generator-Di06Xw7z.d.mts} +1 -1
- package/dist/{generator-DPRJ4mde.d.ts → generator-DkZ7aOcA.d.ts} +2 -2
- package/dist/{generator-D4IATDWn.d.ts → generator-PTy4kTc1.d.ts} +2 -2
- package/dist/{generator-UekCwik8.d.mts → generator-iNjBgmgt.d.mts} +1 -1
- package/dist/{generator-EapPsEII.d.ts → generator-qr528Z40.d.ts} +2 -2
- package/dist/generators.d.mts +8 -8
- package/dist/generators.d.ts +8 -8
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +8 -8
- package/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +21 -21
- package/dist/index.mjs +24 -24
- 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 +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- 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 +3 -3
- package/dist/src/base/base-generator.mjs +2 -2
- package/dist/src/base/index.d.mts +2 -2
- package/dist/src/base/index.d.ts +2 -2
- package/dist/src/base/index.js +4 -4
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/executors/cargo-build/executor.js +4 -4
- package/dist/src/executors/cargo-build/executor.mjs +3 -3
- package/dist/src/executors/cargo-check/executor.js +4 -4
- package/dist/src/executors/cargo-check/executor.mjs +3 -3
- package/dist/src/executors/cargo-clippy/executor.js +4 -4
- package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
- package/dist/src/executors/cargo-doc/executor.js +4 -4
- package/dist/src/executors/cargo-doc/executor.mjs +3 -3
- package/dist/src/executors/cargo-format/executor.js +4 -4
- package/dist/src/executors/cargo-format/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.d.mts +1 -1
- package/dist/src/executors/clean-package/executor.d.ts +1 -1
- package/dist/src/executors/clean-package/executor.js +5 -5
- package/dist/src/executors/clean-package/executor.mjs +2 -2
- package/dist/src/executors/esbuild/executor.d.mts +2 -2
- package/dist/src/executors/esbuild/executor.d.ts +2 -2
- package/dist/src/executors/esbuild/executor.js +4 -4
- package/dist/src/executors/esbuild/executor.mjs +3 -3
- package/dist/src/executors/size-limit/executor.d.mts +2 -2
- package/dist/src/executors/size-limit/executor.d.ts +2 -2
- package/dist/src/executors/size-limit/executor.js +4 -4
- package/dist/src/executors/size-limit/executor.mjs +3 -3
- package/dist/src/executors/typia/executor.d.mts +2 -2
- package/dist/src/executors/typia/executor.d.ts +2 -2
- package/dist/src/executors/typia/executor.js +4 -4
- package/dist/src/executors/typia/executor.mjs +3 -3
- 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 +4 -4
- package/dist/src/executors/unbuild/executor.mjs +3 -3
- 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 +4 -4
- package/dist/src/generators/browser-library/generator.mjs +3 -3
- 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 +4 -4
- package/dist/src/generators/config-schema/generator.mjs +3 -3
- 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 +4 -4
- package/dist/src/generators/neutral-library/generator.mjs +3 -3
- 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 +4 -4
- package/dist/src/generators/node-library/generator.mjs +3 -3
- 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 +4 -4
- package/dist/src/generators/preset/generator.mjs +3 -3
- package/dist/src/generators/release-version/generator.d.mts +2 -2
- package/dist/src/generators/release-version/generator.d.ts +2 -2
- package/dist/src/generators/release-version/generator.js +3 -3
- package/dist/src/generators/release-version/generator.mjs +2 -2
- package/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/project-tags.d.mts +2 -2
- package/dist/src/utils/project-tags.d.ts +2 -2
- package/dist/{types-CUnUfpKk.d.ts → types-DrIOVAV9.d.ts} +1 -1
- package/dist/{types-dNjhGseA.d.mts → types-J0DsoZaH.d.mts} +1 -1
- package/dist/{types-C3URiht7.d.mts → types-TCjBSz49.d.mts} +2 -2
- package/dist/{types-C3URiht7.d.ts → types-TCjBSz49.d.ts} +2 -2
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I5EWTUBR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
stormWorkspaceConfigSchema,
|
|
6
6
|
writeInfo,
|
|
7
7
|
writeSuccess,
|
|
8
8
|
writeTrace
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6FPBRF77.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findWorkspaceRoot
|
|
12
12
|
} from "./chunk-44ZYZKMX.mjs";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkEDK24SJWjs = require('./chunk-EDK24SJW.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 = _chunkEDK24SJWjs.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -171,7 +171,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
171
171
|
"staging",
|
|
172
172
|
"production"
|
|
173
173
|
]).default("production").describe("The current runtime environment mode for the package"),
|
|
174
|
-
workspaceRoot: z.string().trim().
|
|
174
|
+
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
175
175
|
externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
|
|
176
176
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
177
177
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -599,7 +599,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
|
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
if (!config) {
|
|
602
|
+
if (!config || Object.keys(config).length === 0) {
|
|
603
603
|
return void 0;
|
|
604
604
|
}
|
|
605
605
|
config.configFile = configFile;
|
|
@@ -1070,7 +1070,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
1070
1070
|
// ../config-tools/src/create-storm-config.ts
|
|
1071
1071
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1072
1072
|
var _static_cache = void 0;
|
|
1073
|
-
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
1073
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
|
|
1074
1074
|
let result;
|
|
1075
1075
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1076
1076
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -1078,13 +1078,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
|
|
|
1078
1078
|
_workspaceRoot = findWorkspaceRoot();
|
|
1079
1079
|
}
|
|
1080
1080
|
const configEnv = getConfigEnv();
|
|
1081
|
-
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
1082
1081
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1083
|
-
if (!configFile
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1082
|
+
if (!configFile) {
|
|
1083
|
+
if (!skipLogs) {
|
|
1084
|
+
writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
|
|
1085
|
+
logLevel: "all"
|
|
1086
|
+
});
|
|
1087
|
+
}
|
|
1088
|
+
if (useDefault === false) {
|
|
1089
|
+
return void 0;
|
|
1090
|
+
}
|
|
1087
1091
|
}
|
|
1092
|
+
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
1088
1093
|
result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
|
|
1089
1094
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1090
1095
|
} else {
|
|
@@ -1117,7 +1122,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
1117
1122
|
return extension;
|
|
1118
1123
|
}, "createConfigExtension");
|
|
1119
1124
|
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
1120
|
-
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
1125
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
|
|
1121
1126
|
setConfigEnv(config);
|
|
1122
1127
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1123
1128
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
@@ -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 _chunkEDK24SJWjs = require('./chunk-EDK24SJW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkMP2P2MGPjs = require('./chunk-MP2P2MGP.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -18,7 +18,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
18
18
|
if (!_optionalChain([context, 'optionalAccess', _ => _.projectName]) || !_optionalChain([context, 'access', _2 => _2.projectsConfigurations, 'optionalAccess', _3 => _3.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
19
19
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
_chunkMP2P2MGPjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
22
22
|
_sizelimit2.default.call(void 0, [
|
|
23
23
|
_file2.default,
|
|
24
24
|
_esbuild2.default,
|
|
@@ -26,14 +26,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
26
26
|
], {
|
|
27
27
|
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, _nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")), "src")))
|
|
28
28
|
}).then((result) => {
|
|
29
|
-
|
|
29
|
+
_chunkMP2P2MGPjs.writeInfo.call(void 0, `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
30
30
|
});
|
|
31
31
|
return {
|
|
32
32
|
success: true
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
_chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunkEDK24SJWjs.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,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 _chunkNCV26VAWjs = require('./chunk-NCV26VAW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkMP2P2MGPjs = require('./chunk-MP2P2MGP.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -18,25 +18,25 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
20
20
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
21
|
+
_chunkMP2P2MGPjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
|
|
22
|
+
_chunkMP2P2MGPjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
|
|
23
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkMP2P2MGPjs.stormWorkspaceConfigSchema, {
|
|
24
24
|
name: "StormWorkspaceConfiguration"
|
|
25
25
|
});
|
|
26
|
-
|
|
26
|
+
_chunkMP2P2MGPjs.writeTrace.call(void 0, jsonSchema, config);
|
|
27
27
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./");
|
|
28
|
-
|
|
28
|
+
_chunkMP2P2MGPjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
29
29
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
30
30
|
spaces: 2
|
|
31
31
|
});
|
|
32
32
|
await _devkit.formatFiles.call(void 0, tree);
|
|
33
|
-
|
|
33
|
+
_chunkMP2P2MGPjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
|
|
34
34
|
return {
|
|
35
35
|
success: true
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
_chunk3GQAWCBQjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
|
|
39
|
-
var generator_default =
|
|
39
|
+
var generator_default = _chunkNCV26VAWjs.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";
|
|
@@ -13,7 +13,7 @@ var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkMP2P2MGPjs = require('./chunk-MP2P2MGP.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -244,16 +244,16 @@ var _versionlegacy = require('nx/src/command-line/release/version-legacy');
|
|
|
244
244
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
245
245
|
var _semver3 = require('semver');
|
|
246
246
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
247
|
-
|
|
247
|
+
_chunkMP2P2MGPjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
248
248
|
|
|
249
249
|
`, config);
|
|
250
|
-
const stopwatch =
|
|
250
|
+
const stopwatch = _chunkMP2P2MGPjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
251
251
|
try {
|
|
252
252
|
const workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, );
|
|
253
|
-
|
|
253
|
+
_chunkMP2P2MGPjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
254
254
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
255
|
-
config = await
|
|
256
|
-
|
|
255
|
+
config = await _chunkMP2P2MGPjs.getConfig.call(void 0, workspaceRoot);
|
|
256
|
+
_chunkMP2P2MGPjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
257
257
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
258
258
|
const versionData = {};
|
|
259
259
|
if (options.specifier) {
|
|
@@ -304,9 +304,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
304
304
|
}
|
|
305
305
|
const workspaceRelativePackagePath = _path.relative.call(void 0, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, ))), tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath);
|
|
306
306
|
const log = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (msg) => {
|
|
307
|
-
|
|
307
|
+
_chunkMP2P2MGPjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
308
308
|
}, "log");
|
|
309
|
-
|
|
309
|
+
_chunkMP2P2MGPjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
310
310
|
let packageName;
|
|
311
311
|
let currentVersionFromDisk;
|
|
312
312
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -580,7 +580,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
await _devkit.formatFiles.call(void 0, tree);
|
|
583
|
-
|
|
583
|
+
_chunkMP2P2MGPjs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
|
|
584
584
|
`, config);
|
|
585
585
|
return {
|
|
586
586
|
data: versionData,
|
|
@@ -614,8 +614,8 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
614
614
|
}, "callback")
|
|
615
615
|
};
|
|
616
616
|
} catch (error) {
|
|
617
|
-
|
|
618
|
-
|
|
617
|
+
_chunkMP2P2MGPjs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
|
|
618
|
+
_chunkMP2P2MGPjs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
|
|
619
619
|
- Details: ${error.message}
|
|
620
620
|
- Stacktrace: ${error.stack}`, config);
|
|
621
621
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -12,7 +12,7 @@ var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkMP2P2MGPjs = require('./chunk-MP2P2MGP.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -23,7 +23,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
23
23
|
// src/base/base-executor.ts
|
|
24
24
|
var _defu = require('defu');
|
|
25
25
|
var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkMP2P2MGPjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config = {};
|
|
29
29
|
try {
|
|
@@ -35,23 +35,23 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
|
|
|
35
35
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
36
36
|
const projectName = context.projectName;
|
|
37
37
|
config.workspaceRoot = workspaceRoot;
|
|
38
|
-
|
|
38
|
+
_chunkMP2P2MGPjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
39
39
|
if (!executorOptions.skipReadingConfig) {
|
|
40
|
-
|
|
40
|
+
_chunkMP2P2MGPjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
41
41
|
- workspaceRoot: ${workspaceRoot}
|
|
42
42
|
- projectRoot: ${projectRoot}
|
|
43
43
|
- sourceRoot: ${sourceRoot}
|
|
44
44
|
- projectName: ${projectName}
|
|
45
45
|
`, config);
|
|
46
|
-
config = await
|
|
46
|
+
config = await _chunkMP2P2MGPjs.getConfig.call(void 0, workspaceRoot);
|
|
47
47
|
}
|
|
48
48
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
49
|
-
|
|
49
|
+
_chunkMP2P2MGPjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
50
50
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
51
|
-
|
|
51
|
+
_chunkMP2P2MGPjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
${
|
|
53
|
+
_chunkMP2P2MGPjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
54
|
+
${_chunkMP2P2MGPjs.formatLogMessage.call(void 0, options)}
|
|
55
55
|
`, config);
|
|
56
56
|
const tokenized = await _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
|
|
57
57
|
workspaceRoot,
|
|
@@ -60,13 +60,13 @@ ${_chunkSN7IJGEEjs.formatLogMessage.call(void 0, options)}
|
|
|
60
60
|
projectName,
|
|
61
61
|
config
|
|
62
62
|
}, config, context.projectsConfigurations.projects[context.projectName]), _chunkUALZJZUKjs.applyWorkspaceProjectTokens);
|
|
63
|
-
|
|
64
|
-
${
|
|
63
|
+
_chunkMP2P2MGPjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
|
|
64
|
+
${_chunkMP2P2MGPjs.formatLogMessage.call(void 0, tokenized)}
|
|
65
65
|
`, config);
|
|
66
66
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
67
|
-
|
|
67
|
+
_chunkMP2P2MGPjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
68
68
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
69
|
-
|
|
69
|
+
_chunkMP2P2MGPjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
70
70
|
}
|
|
71
71
|
const ret = executorFn(tokenized, context, config);
|
|
72
72
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -76,26 +76,26 @@ ${_chunkSN7IJGEEjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
76
76
|
}
|
|
77
77
|
const result = await Promise.resolve(ret);
|
|
78
78
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _8 => _8.error, 'optionalAccess', _9 => _9.message]) && typeof _optionalChain([result, 'optionalAccess', _10 => _10.error, 'optionalAccess', _11 => _11.message]) === "string" && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.name]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.name]) === "string")) {
|
|
79
|
-
|
|
80
|
-
${
|
|
79
|
+
_chunkMP2P2MGPjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
80
|
+
${_chunkMP2P2MGPjs.formatLogMessage.call(void 0, result)}`, config);
|
|
81
81
|
console.error(result);
|
|
82
82
|
throw new Error(`The ${name} executor failed to run`, {
|
|
83
83
|
cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
87
|
-
|
|
87
|
+
_chunkMP2P2MGPjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
88
88
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
89
|
-
|
|
89
|
+
_chunkMP2P2MGPjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
_chunkMP2P2MGPjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
92
92
|
`, config);
|
|
93
93
|
return {
|
|
94
94
|
success: true
|
|
95
95
|
};
|
|
96
96
|
} catch (error) {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
_chunkMP2P2MGPjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
98
|
+
_chunkMP2P2MGPjs.writeError.call(void 0, `An exception was thrown in the executor's process
|
|
99
99
|
- Details: ${error.message}
|
|
100
100
|
- Stacktrace: ${error.stack}`, config);
|
|
101
101
|
return {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkEDK24SJWjs = require('./chunk-EDK24SJW.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 = _chunkEDK24SJWjs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkRBU35LQWjs = require('./chunk-RBU35LQW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkNCV26VAWjs = require('./chunk-NCV26VAW.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
@@ -45,7 +45,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
_chunk3GQAWCBQjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
|
|
48
|
-
var generator_default =
|
|
48
|
+
var generator_default = _chunkNCV26VAWjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
|
|
49
49
|
hooks: {
|
|
50
50
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
51
51
|
options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkEDK24SJWjs = require('./chunk-EDK24SJW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkMP2P2MGPjs = require('./chunk-MP2P2MGP.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -13,11 +13,11 @@ var _fsextra = require('fs-extra');
|
|
|
13
13
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
14
14
|
async function typiaExecutorFn(options, _, config) {
|
|
15
15
|
if (options.clean !== false) {
|
|
16
|
-
|
|
16
|
+
_chunkMP2P2MGPjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
17
17
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
18
18
|
}
|
|
19
19
|
await Promise.all(options.entry.map((entry) => {
|
|
20
|
-
|
|
20
|
+
_chunkMP2P2MGPjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
21
21
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
22
22
|
input: entry,
|
|
23
23
|
output: options.outputPath,
|
|
@@ -29,7 +29,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
_chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
32
|
-
var executor_default =
|
|
32
|
+
var executor_default = _chunkEDK24SJWjs.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) => {
|