@storm-software/workspace-tools 1.246.3 → 1.247.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 +12 -0
- package/README.md +1 -1
- package/config/{nx-default.json → base.json} +46 -48
- package/dist/{chunk-WPYYDD5F.js → chunk-24AOAWKM.js} +2 -2
- package/dist/{chunk-P4ALYDGC.js → chunk-2HIEYKTF.js} +5 -5
- package/dist/{chunk-BBRVJL4A.mjs → chunk-2LIE7SJ3.mjs} +32 -19
- package/dist/{chunk-KPKHTJWT.mjs → chunk-3IY2B44Z.mjs} +4 -4
- package/dist/{chunk-66FRJGIN.js → chunk-4AJFP7HM.js} +20 -20
- package/dist/{chunk-6V5GP3U4.js → chunk-4JOIS7WW.js} +24 -14
- package/dist/{chunk-BYLPQCIB.js → chunk-5CXC7ITO.js} +11 -11
- package/dist/{chunk-TJ6WVBYM.mjs → chunk-5EWLM3N6.mjs} +4 -4
- package/dist/{chunk-XI4BWTXX.mjs → chunk-5GLAGFHA.mjs} +3 -3
- package/dist/{chunk-N7VQR5KC.mjs → chunk-5JXVOE56.mjs} +3 -3
- package/dist/{chunk-AY5HELLN.js → chunk-5LEU7C3E.js} +25 -25
- package/dist/{chunk-GZPCM2GI.mjs → chunk-7MZLWLLT.mjs} +3 -3
- package/dist/{chunk-H5XURNDS.js → chunk-AC5SI4YZ.js} +2 -2
- package/dist/{chunk-2AKLJNKO.mjs → chunk-AHTDYOCZ.mjs} +20 -13
- package/dist/{chunk-BC3QVHAH.mjs → chunk-ATMJKNFF.mjs} +5 -5
- package/dist/{chunk-LZNWOO4B.js → chunk-B5YTVDRU.js} +5 -5
- package/dist/{chunk-4F75KA7J.mjs → chunk-BLSGWUGX.mjs} +3 -3
- package/dist/{chunk-ZQPK5G4U.js → chunk-BRWRLQDC.js} +22 -15
- package/dist/{chunk-BLG6LLHW.mjs → chunk-C5YDISDP.mjs} +26 -16
- package/dist/{chunk-FZI3TKFY.mjs → chunk-D7VXZZFG.mjs} +1 -1
- package/dist/{chunk-G3AMYMML.js → chunk-DVR7HEPK.js} +36 -23
- package/dist/{chunk-U4AQXXXF.mjs → chunk-E52NPVHL.mjs} +4 -4
- package/dist/{chunk-VYH45FO6.mjs → chunk-EIM3O6HY.mjs} +1 -1
- package/dist/{chunk-HK26KBWU.mjs → chunk-EPZT247P.mjs} +4 -4
- package/dist/{chunk-N3WLDHSN.js → chunk-ETVB65M4.js} +2 -2
- package/dist/{chunk-SLCOHXD3.mjs → chunk-F2GYXQ5H.mjs} +5 -4
- package/dist/{chunk-Z6E637KA.js → chunk-GDHENHPI.js} +41 -41
- package/dist/{chunk-AWPP7DRY.js → chunk-GKL4BY2Y.js} +2 -2
- package/dist/{chunk-GQ6ZBQ6I.mjs → chunk-H7GRZIKQ.mjs} +4 -4
- package/dist/{chunk-I6BCQJPP.mjs → chunk-HDWS7GST.mjs} +3 -3
- package/dist/{chunk-LUQIF4A3.mjs → chunk-HUCDWLQ3.mjs} +2 -2
- package/dist/{chunk-FBIVTCSJ.mjs → chunk-JB4KCMSB.mjs} +2 -2
- package/dist/{chunk-O3ZLX7S5.mjs → chunk-JQCRK5FU.mjs} +3 -3
- package/dist/{chunk-NCFX2MWO.mjs → chunk-KZJCDAOU.mjs} +1 -1
- package/dist/{chunk-WCIY3TEF.mjs → chunk-LWUP4RIM.mjs} +2 -2
- package/dist/{chunk-U3TVR7B3.js → chunk-MOPEW5LB.js} +5 -5
- package/dist/{chunk-7QVGAOPQ.mjs → chunk-MQE5KGI7.mjs} +3 -3
- package/dist/{chunk-4YODDZMS.mjs → chunk-NH75ORHH.mjs} +3 -3
- package/dist/{chunk-USUT2GLD.mjs → chunk-OHEABZJW.mjs} +1 -1
- package/dist/{chunk-KV7YB4MU.mjs → chunk-OM7XDCE7.mjs} +3 -3
- package/dist/{chunk-ZKWGOANM.mjs → chunk-OS3ZHOJP.mjs} +5 -5
- package/dist/{chunk-3SPGOKCO.mjs → chunk-OVR2BAKA.mjs} +2 -2
- package/dist/{chunk-3ORCJSUT.mjs → chunk-P2SLAYFV.mjs} +3 -3
- package/dist/{chunk-U7TEDNQF.js → chunk-PKBJIHOW.js} +31 -31
- package/dist/{chunk-Q2DU6KGV.js → chunk-PQQYCAXU.js} +5 -5
- package/dist/{chunk-ZVP6NBMF.js → chunk-QMXS4YBR.js} +2 -2
- package/dist/{chunk-IPMZQTRA.mjs → chunk-R6RTCWUK.mjs} +2 -2
- package/dist/{chunk-XUV4U54K.mjs → chunk-R7DU2APC.mjs} +1 -1
- package/dist/{chunk-ECSCURQQ.js → chunk-RBU35LQW.js} +2 -1
- package/dist/{chunk-RWDBQOGV.js → chunk-SJY2MQ7F.js} +5 -5
- package/dist/{chunk-NJ2QOT34.mjs → chunk-U7LV2H52.mjs} +1 -1
- package/dist/{chunk-34JK7ZOU.js → chunk-UALZJZUK.js} +2 -2
- package/dist/{chunk-LIYZBMAM.mjs → chunk-UH565HF3.mjs} +1 -1
- package/dist/{chunk-ZAE2P6GK.js → chunk-UKNWS4VZ.js} +4 -4
- package/dist/{chunk-R7VJ7ZHV.mjs → chunk-V7IOKRJA.mjs} +2 -2
- package/dist/{chunk-X7XA6QPV.mjs → chunk-VBPOZVKY.mjs} +3 -3
- package/dist/{chunk-EIL3PQQL.js → chunk-VBROJHZZ.js} +2 -2
- package/dist/{chunk-FDPZRNKZ.js → chunk-VBYEJNI3.js} +15 -15
- package/dist/{chunk-AQLXZBXJ.mjs → chunk-VCU6XMJC.mjs} +4 -4
- package/dist/{chunk-66TYTM73.mjs → chunk-W3SWWT4A.mjs} +1 -1
- package/dist/{chunk-ITL2GPJB.js → chunk-WAZC2KG4.js} +2 -2
- package/dist/{chunk-J5SXKBBU.mjs → chunk-X3GPVZMH.mjs} +1 -1
- package/dist/{chunk-QZHIWK5Z.mjs → chunk-XK3FSWMA.mjs} +1 -1
- package/dist/{chunk-6ZQ3QYXH.mjs → chunk-XUYTELRS.mjs} +2 -2
- package/dist/{chunk-Q47LFUGL.mjs → chunk-YHV3GYYF.mjs} +4 -4
- package/dist/{chunk-TBQLIKD4.mjs → chunk-YK676R5F.mjs} +6 -6
- package/dist/{chunk-BNYY2WQJ.js → chunk-ZDN367AN.js} +2 -2
- package/dist/{executor-CnnrgXKr.d.mts → executor-BDL9OXAe.d.mts} +1 -1
- package/dist/{executor-De29T5QB.d.mts → executor-BOz02M0D.d.mts} +1 -1
- package/dist/{executor-DZ-0sX_w.d.ts → executor-BzM1aAMj.d.ts} +1 -1
- package/dist/{executor-B2I8lRie.d.mts → executor-CJ2sUUqC.d.mts} +1 -1
- package/dist/{executor-B3LJ1461.d.mts → executor-D9Lkezla.d.mts} +1 -1
- package/dist/{executor-SU5oGftF.d.ts → executor-DIeaVupa.d.ts} +1 -1
- package/dist/{executor-D04WPR2V.d.ts → executor-DLeeL4eB.d.ts} +1 -1
- package/dist/{executor-B1mTS_M5.d.ts → executor-DdnyhsRE.d.ts} +1 -1
- package/dist/{executor-9k0vy4BU.d.mts → executor-DvKywXQM.d.mts} +1 -1
- package/dist/{executor-Dfot53CG.d.ts → executor-DxeOzkYd.d.ts} +1 -1
- package/dist/executors.d.mts +6 -6
- package/dist/executors.d.ts +6 -6
- package/dist/executors.js +16 -16
- package/dist/executors.mjs +22 -22
- package/dist/{generator-BCkqWM1d.d.ts → generator-8l8dnSzj.d.ts} +1 -1
- package/dist/{generator-DBa9-HbU.d.ts → generator-96lYy3vU.d.ts} +1 -1
- package/dist/{generator-BAbOohf7.d.mts → generator-ANcVdjRd.d.mts} +2 -2
- package/dist/{generator-CrR9QK6B.d.mts → generator-BXQhJBFX.d.mts} +2 -2
- package/dist/{generator-AFivysTp.d.ts → generator-Br48n2Qc.d.ts} +2 -2
- package/dist/{generator-CRiDjsPp.d.mts → generator-CAGPcZQ4.d.mts} +1 -1
- package/dist/{generator-rf62OraH.d.ts → generator-Cg5cXOd-.d.ts} +2 -2
- package/dist/{generator-B_HN13az.d.mts → generator-Ci71Fj-h.d.mts} +2 -2
- package/dist/{generator-DpXgF55u.d.mts → generator-D4l8BFsS.d.mts} +1 -1
- package/dist/{generator-DATsTV1E.d.mts → generator-DDFJK57t.d.mts} +2 -2
- package/dist/{generator-DNdirMec.d.ts → generator-DcKIyM9v.d.ts} +2 -2
- package/dist/{generator-F6EuzmJD.d.ts → generator-SVDta1L0.d.ts} +2 -2
- package/dist/generators.d.mts +8 -8
- package/dist/generators.d.ts +8 -8
- package/dist/generators.js +12 -12
- package/dist/generators.mjs +16 -16
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +26 -26
- package/dist/index.mjs +40 -40
- 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 +5 -5
- package/dist/src/base/base-executor.mjs +6 -6
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- 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 +5 -5
- package/dist/src/base/base-generator.mjs +6 -6
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
- package/dist/src/base/index.d.mts +2 -2
- package/dist/src/base/index.d.ts +2 -2
- package/dist/src/base/index.js +7 -7
- package/dist/src/base/index.mjs +10 -10
- package/dist/src/base/typescript-build-executor.untyped.mjs +2 -2
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.js +6 -6
- package/dist/src/executors/cargo-build/executor.mjs +8 -8
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.js +6 -6
- package/dist/src/executors/cargo-check/executor.mjs +8 -8
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.js +6 -6
- package/dist/src/executors/cargo-clippy/executor.mjs +8 -8
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.js +6 -6
- package/dist/src/executors/cargo-doc/executor.mjs +8 -8
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.js +6 -6
- package/dist/src/executors/cargo-format/executor.mjs +8 -8
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- 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 +7 -7
- package/dist/src/executors/clean-package/executor.mjs +6 -6
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- 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 +7 -7
- package/dist/src/executors/esbuild/executor.mjs +8 -8
- package/dist/src/executors/esbuild/untyped.mjs +2 -2
- package/dist/src/executors/npm-publish/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- 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 +6 -6
- package/dist/src/executors/size-limit/executor.mjs +7 -7
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/tsdown/executor.d.mts +2 -2
- package/dist/src/executors/tsdown/executor.d.ts +2 -2
- package/dist/src/executors/tsdown/executor.js +7 -7
- package/dist/src/executors/tsdown/executor.mjs +8 -8
- package/dist/src/executors/tsdown/untyped.mjs +2 -2
- 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 +6 -6
- package/dist/src/executors/typia/executor.mjs +7 -7
- package/dist/src/executors/typia/untyped.mjs +1 -1
- 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 +6 -6
- package/dist/src/executors/unbuild/executor.mjs +7 -7
- package/dist/src/executors/unbuild/untyped.mjs +2 -2
- 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 +7 -7
- package/dist/src/generators/browser-library/generator.mjs +9 -9
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- 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 +6 -6
- package/dist/src/generators/config-schema/generator.mjs +7 -7
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +2 -2
- package/dist/src/generators/init/untyped.mjs +1 -1
- 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 +7 -7
- package/dist/src/generators/neutral-library/generator.mjs +9 -9
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- 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 +7 -7
- package/dist/src/generators/node-library/generator.mjs +9 -9
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- 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 +6 -6
- package/dist/src/generators/preset/generator.mjs +7 -7
- package/dist/src/generators/preset/untyped.mjs +1 -1
- 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 +4 -4
- package/dist/src/generators/release-version/generator.mjs +6 -6
- package/dist/src/generators/release-version/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +4 -4
- package/dist/src/plugins/rust/index.mjs +4 -4
- package/dist/src/plugins/typescript/index.mjs +4 -4
- package/dist/src/plugins/typescript/project-config.mjs +4 -4
- package/dist/src/plugins/typescript/tsdown.mjs +2 -2
- package/dist/src/plugins/typescript/tsup.mjs +2 -2
- package/dist/src/plugins/typescript/untyped-schema.mjs +2 -2
- package/dist/src/types.d.mts +2 -2
- package/dist/src/types.d.ts +2 -2
- package/dist/src/types.mjs +1 -1
- 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/apply-workspace-tokens.js +3 -3
- package/dist/src/utils/apply-workspace-tokens.mjs +4 -4
- package/dist/src/utils/cargo.mjs +2 -2
- package/dist/src/utils/create-cli-options.mjs +2 -2
- package/dist/src/utils/get-project-configurations.js +3 -3
- package/dist/src/utils/get-project-configurations.mjs +4 -4
- 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 +14 -14
- package/dist/src/utils/lock-file.mjs +2 -2
- package/dist/src/utils/package-helpers.mjs +4 -4
- package/dist/src/utils/plugin-helpers.mjs +3 -3
- package/dist/src/utils/pnpm-deps-update.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/src/utils/project-tags.mjs +2 -2
- package/dist/src/utils/toml.mjs +2 -2
- package/dist/src/utils/typia-transform.mjs +2 -2
- package/dist/src/utils/versions.mjs +1 -1
- package/dist/{types-B5IG4iSJ.d.ts → types-BbEVA-sX.d.mts} +3 -0
- package/dist/{types-B5IG4iSJ.d.mts → types-BbEVA-sX.d.ts} +3 -0
- package/dist/{types-DpaECebR.d.ts → types-DLS_kod0.d.ts} +1 -1
- package/dist/{types-44XkV3HO.d.mts → types-DM_AJ5NA.d.mts} +1 -1
- package/package.json +2 -3
- package/config/nx-cloud.json +0 -459
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getProjectPlatform
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HUCDWLQ3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTagConstants,
|
|
6
6
|
addProjectTag,
|
|
7
7
|
isEqualProjectTag,
|
|
8
8
|
setDefaultProjectTags
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W3SWWT4A.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
13
13
|
|
|
14
14
|
// src/plugins/typescript/project-config.ts
|
|
15
15
|
import { existsSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,10 +12,10 @@ var _chunk34JK7ZOUjs = require('./chunk-34JK7ZOU.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkBRWRLQDCjs = require('./chunk-BRWRLQDC.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -23,52 +23,52 @@ 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 = _chunkBRWRLQDCjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config = {};
|
|
29
29
|
try {
|
|
30
30
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
31
31
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
32
32
|
}
|
|
33
|
-
const workspaceRoot =
|
|
33
|
+
const workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, );
|
|
34
34
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot;
|
|
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
|
+
_chunkBRWRLQDCjs.writeInfo.call(void 0, `
|
|
39
39
|
\u26A1 Running the ${name} executor for ${projectName}
|
|
40
40
|
`, config);
|
|
41
41
|
if (!executorOptions.skipReadingConfig) {
|
|
42
|
-
|
|
42
|
+
_chunkBRWRLQDCjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
43
43
|
- workspaceRoot: ${workspaceRoot}
|
|
44
44
|
- projectRoot: ${projectRoot}
|
|
45
45
|
- sourceRoot: ${sourceRoot}
|
|
46
46
|
- projectName: ${projectName}
|
|
47
47
|
`, config);
|
|
48
|
-
config = await
|
|
48
|
+
config = await _chunkBRWRLQDCjs.getConfig.call(void 0, workspaceRoot);
|
|
49
49
|
}
|
|
50
50
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
51
|
-
|
|
51
|
+
_chunkBRWRLQDCjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
52
52
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
53
|
-
|
|
53
|
+
_chunkBRWRLQDCjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
${
|
|
55
|
+
_chunkBRWRLQDCjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
56
|
+
${_chunkBRWRLQDCjs.formatLogMessage.call(void 0, options)}
|
|
57
57
|
`, config);
|
|
58
|
-
const tokenized = await
|
|
58
|
+
const tokenized = await _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
|
|
59
59
|
workspaceRoot,
|
|
60
60
|
projectRoot,
|
|
61
61
|
sourceRoot,
|
|
62
62
|
projectName,
|
|
63
63
|
config
|
|
64
|
-
}, config, context.projectsConfigurations.projects[context.projectName]),
|
|
65
|
-
|
|
66
|
-
${
|
|
64
|
+
}, config, context.projectsConfigurations.projects[context.projectName]), _chunkUALZJZUKjs.applyWorkspaceProjectTokens);
|
|
65
|
+
_chunkBRWRLQDCjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
|
|
66
|
+
${_chunkBRWRLQDCjs.formatLogMessage.call(void 0, tokenized)}
|
|
67
67
|
`, config);
|
|
68
68
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
69
|
-
|
|
69
|
+
_chunkBRWRLQDCjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
70
70
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
71
|
-
|
|
71
|
+
_chunkBRWRLQDCjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
72
72
|
}
|
|
73
73
|
const ret = executorFn(tokenized, context, config);
|
|
74
74
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -78,26 +78,26 @@ ${_chunkZQPK5G4Ujs.formatLogMessage.call(void 0, tokenized)}
|
|
|
78
78
|
}
|
|
79
79
|
const result = await Promise.resolve(ret);
|
|
80
80
|
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")) {
|
|
81
|
-
|
|
82
|
-
${
|
|
81
|
+
_chunkBRWRLQDCjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
82
|
+
${_chunkBRWRLQDCjs.formatLogMessage.call(void 0, result)}`, config);
|
|
83
83
|
console.error(result);
|
|
84
84
|
throw new Error(`The ${name} executor failed to run`, {
|
|
85
85
|
cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
89
|
-
|
|
89
|
+
_chunkBRWRLQDCjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
90
90
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
91
|
-
|
|
91
|
+
_chunkBRWRLQDCjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
_chunkBRWRLQDCjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
94
94
|
`, config);
|
|
95
95
|
return {
|
|
96
96
|
success: true
|
|
97
97
|
};
|
|
98
98
|
} catch (error) {
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
_chunkBRWRLQDCjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
100
|
+
_chunkBRWRLQDCjs.writeError.call(void 0, `An exception was thrown in the executor's process
|
|
101
101
|
- Details: ${error.message}
|
|
102
102
|
- Stacktrace: ${error.stack}`, config);
|
|
103
103
|
return {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cargoMetadata,
|
|
3
3
|
isExternal
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XK3FSWMA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
ProjectTagConstants,
|
|
7
7
|
addProjectTag,
|
|
8
8
|
setDefaultProjectTags
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W3SWWT4A.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
13
13
|
|
|
14
14
|
// src/plugins/rust/cargo-toml.ts
|
|
15
15
|
import { createNodesFromFiles, joinPathFragments, readJsonFile, workspaceRoot } from "@nx/devkit";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -49,7 +49,7 @@ var applyWorkspaceExecutorTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(
|
|
|
49
49
|
result = result.replaceAll("{sourceRoot}", sourceRoot);
|
|
50
50
|
}
|
|
51
51
|
if (result.includes("{workspaceRoot}")) {
|
|
52
|
-
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => (
|
|
52
|
+
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, ))));
|
|
53
53
|
}
|
|
54
54
|
return result;
|
|
55
55
|
}, "applyWorkspaceExecutorTokens");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findWorkspaceRoot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C5YDISDP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
correctPaths,
|
|
6
6
|
joinPaths
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KZJCDAOU.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
11
11
|
|
|
12
12
|
// ../config/src/schema.ts
|
|
13
13
|
import z from "zod";
|
|
@@ -115,7 +115,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
115
115
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
116
116
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
117
117
|
var StormConfigSchema = z.object({
|
|
118
|
-
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
118
|
+
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
119
119
|
extends: ExtendsSchema.optional(),
|
|
120
120
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
121
121
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
@@ -157,6 +157,7 @@ var StormConfigSchema = z.object({
|
|
|
157
157
|
"trace",
|
|
158
158
|
"all"
|
|
159
159
|
]).default("info").describe("The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."),
|
|
160
|
+
skipConfigLogging: z.boolean().optional().describe("Should the logging of the current Storm Workspace configuration be skipped?"),
|
|
160
161
|
registry: RegistryConfigSchema,
|
|
161
162
|
configFile: z.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),
|
|
162
163
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe("Storm theme config values used for styling various package elements"),
|
|
@@ -541,10 +542,10 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
|
|
|
541
542
|
}, "getConfigFileByName");
|
|
542
543
|
var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames = []) => {
|
|
543
544
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
544
|
-
const result = await getConfigFileByName("storm", workspacePath);
|
|
545
|
+
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
545
546
|
let config = result.config;
|
|
546
547
|
const configFile = result.configFile;
|
|
547
|
-
if (config && configFile && Object.keys(config).length > 0) {
|
|
548
|
+
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
548
549
|
writeTrace(`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
549
550
|
logLevel: "all"
|
|
550
551
|
});
|
|
@@ -553,9 +554,11 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
|
|
|
553
554
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
554
555
|
for (const result2 of results) {
|
|
555
556
|
if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
557
|
+
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
558
|
+
writeTrace(`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
559
|
+
logLevel: "all"
|
|
560
|
+
});
|
|
561
|
+
}
|
|
559
562
|
config = defu(result2.config ?? {}, config ?? {});
|
|
560
563
|
}
|
|
561
564
|
}
|
|
@@ -628,7 +631,8 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
628
631
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
629
632
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
630
633
|
},
|
|
631
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
634
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
635
|
+
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
632
636
|
};
|
|
633
637
|
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
634
638
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
@@ -863,6 +867,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
863
867
|
process.env.NX_VERBOSE_LOGGING = String(getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false);
|
|
864
868
|
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
865
869
|
}
|
|
870
|
+
if (config.skipConfigLogging !== void 0) {
|
|
871
|
+
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
872
|
+
}
|
|
866
873
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
867
874
|
for (const key of Object.keys(config.extensions ?? {})) {
|
|
868
875
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
@@ -980,7 +987,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
980
987
|
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
981
988
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
982
989
|
if (!configFile && !skipLogs) {
|
|
983
|
-
writeWarning("No Storm
|
|
990
|
+
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", {
|
|
984
991
|
logLevel: "all"
|
|
985
992
|
});
|
|
986
993
|
}
|
|
@@ -1018,8 +1025,8 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
1018
1025
|
var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
1019
1026
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
1020
1027
|
setConfigEnv(config);
|
|
1021
|
-
if (!skipLogs) {
|
|
1022
|
-
writeTrace(`\u2699\uFE0F Using Storm configuration:
|
|
1028
|
+
if (!skipLogs && !config.skipConfigLogging) {
|
|
1029
|
+
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1023
1030
|
${formatLogMessage(config)}`, config);
|
|
1024
1031
|
}
|
|
1025
1032
|
return config;
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
copyAssets,
|
|
7
7
|
getEntryPoints,
|
|
8
8
|
getEnv
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2LIE7SJ3.mjs";
|
|
10
10
|
import {
|
|
11
11
|
withRunExecutor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VCU6XMJC.mjs";
|
|
13
13
|
import {
|
|
14
14
|
getConfig,
|
|
15
15
|
getStopwatch,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
writeInfo,
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AHTDYOCZ.mjs";
|
|
23
23
|
import {
|
|
24
24
|
joinPaths
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KZJCDAOU.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__name
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
29
29
|
|
|
30
30
|
// ../tsdown/src/build.ts
|
|
31
31
|
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph, writeJsonFile } from "@nx/devkit";
|
|
@@ -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 _chunkRBU35LQWjs = require('./chunk-RBU35LQW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4AJFP7HMjs = require('./chunk-4AJFP7HM.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
@@ -22,7 +22,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
22
22
|
devDependencies: {},
|
|
23
23
|
buildExecutor: "@storm-software/workspace-tools:unbuild"
|
|
24
24
|
};
|
|
25
|
-
const options = await
|
|
25
|
+
const options = await _chunkRBU35LQWjs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
|
|
26
26
|
const { className, name, propertyName } = _devkit.names.call(void 0, options.projectNames.projectFileName);
|
|
27
27
|
_devkit.generateFiles.call(void 0, tree, filesDir, options.projectRoot, {
|
|
28
28
|
...schema,
|
|
@@ -40,12 +40,12 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
40
40
|
buildable: options.bundler && options.bundler !== "none",
|
|
41
41
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
42
42
|
});
|
|
43
|
-
await
|
|
43
|
+
await _chunkRBU35LQWjs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
|
|
44
44
|
await _devkit.formatFiles.call(void 0, tree);
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
_chunk3GQAWCBQjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
|
|
48
|
-
var generator_default =
|
|
48
|
+
var generator_default = _chunk4AJFP7HMjs.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,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildCargoCommand,
|
|
3
3
|
cargoCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XK3FSWMA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunExecutor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VCU6XMJC.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
11
11
|
|
|
12
12
|
// src/executors/cargo-format/executor.ts
|
|
13
13
|
async function cargoFormatExecutor(options, context) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -115,7 +115,7 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
|
115
115
|
build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
116
116
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
117
117
|
var StormConfigSchema = _zod2.default.object({
|
|
118
|
-
$schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
118
|
+
$schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
119
119
|
extends: ExtendsSchema.optional(),
|
|
120
120
|
name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
121
121
|
namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
@@ -157,6 +157,7 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
157
157
|
"trace",
|
|
158
158
|
"all"
|
|
159
159
|
]).default("info").describe("The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."),
|
|
160
|
+
skipConfigLogging: _zod2.default.boolean().optional().describe("Should the logging of the current Storm Workspace configuration be skipped?"),
|
|
160
161
|
registry: RegistryConfigSchema,
|
|
161
162
|
configFile: _zod2.default.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),
|
|
162
163
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe("Storm theme config values used for styling various package elements"),
|
|
@@ -244,7 +245,7 @@ var getDefaultConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asyn
|
|
|
244
245
|
let name = void 0;
|
|
245
246
|
let namespace = void 0;
|
|
246
247
|
let repository = void 0;
|
|
247
|
-
const workspaceRoot =
|
|
248
|
+
const workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, root);
|
|
248
249
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
|
|
249
250
|
const file = await _promises.readFile.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
|
|
250
251
|
if (file) {
|
|
@@ -511,7 +512,7 @@ var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
|
511
512
|
var _c12 = require('c12');
|
|
512
513
|
|
|
513
514
|
var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
514
|
-
const workspacePath = filePath ||
|
|
515
|
+
const workspacePath = filePath || _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, filePath);
|
|
515
516
|
const configs = await Promise.all([
|
|
516
517
|
_c12.loadConfig.call(void 0, {
|
|
517
518
|
cwd: workspacePath,
|
|
@@ -540,11 +541,11 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
|
|
|
540
541
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
541
542
|
}, "getConfigFileByName");
|
|
542
543
|
var getConfigFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
543
|
-
const workspacePath = filePath ? filePath :
|
|
544
|
-
const result = await getConfigFileByName("storm", workspacePath);
|
|
544
|
+
const workspacePath = filePath ? filePath : _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, filePath);
|
|
545
|
+
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
545
546
|
let config = result.config;
|
|
546
547
|
const configFile = result.configFile;
|
|
547
|
-
if (config && configFile && Object.keys(config).length > 0) {
|
|
548
|
+
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
548
549
|
writeTrace(`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
549
550
|
logLevel: "all"
|
|
550
551
|
});
|
|
@@ -553,9 +554,11 @@ var getConfigFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (
|
|
|
553
554
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
554
555
|
for (const result2 of results) {
|
|
555
556
|
if (_optionalChain([result2, 'optionalAccess', _30 => _30.config]) && _optionalChain([result2, 'optionalAccess', _31 => _31.configFile]) && Object.keys(result2.config).length > 0) {
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
557
|
+
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
558
|
+
writeTrace(`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
559
|
+
logLevel: "all"
|
|
560
|
+
});
|
|
561
|
+
}
|
|
559
562
|
config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
|
|
560
563
|
}
|
|
561
564
|
}
|
|
@@ -628,7 +631,8 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
|
628
631
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
629
632
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
630
633
|
},
|
|
631
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
634
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
635
|
+
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
632
636
|
};
|
|
633
637
|
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
634
638
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
@@ -863,6 +867,9 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
863
867
|
process.env.NX_VERBOSE_LOGGING = String(getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false);
|
|
864
868
|
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
865
869
|
}
|
|
870
|
+
if (config.skipConfigLogging !== void 0) {
|
|
871
|
+
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
872
|
+
}
|
|
866
873
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
867
874
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
868
875
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
@@ -974,13 +981,13 @@ var createStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asy
|
|
|
974
981
|
if (!_optionalChain([_static_cache, 'optionalAccess', _54 => _54.data]) || !_optionalChain([_static_cache, 'optionalAccess', _55 => _55.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
975
982
|
let _workspaceRoot = workspaceRoot;
|
|
976
983
|
if (!_workspaceRoot) {
|
|
977
|
-
_workspaceRoot =
|
|
984
|
+
_workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, );
|
|
978
985
|
}
|
|
979
986
|
const configEnv = getConfigEnv();
|
|
980
987
|
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
981
988
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
982
989
|
if (!configFile && !skipLogs) {
|
|
983
|
-
writeWarning("No Storm
|
|
990
|
+
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", {
|
|
984
991
|
logLevel: "all"
|
|
985
992
|
});
|
|
986
993
|
}
|
|
@@ -1018,8 +1025,8 @@ var createConfigExtension = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
1018
1025
|
var loadStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
|
|
1019
1026
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
1020
1027
|
setConfigEnv(config);
|
|
1021
|
-
if (!skipLogs) {
|
|
1022
|
-
writeTrace(`\u2699\uFE0F Using Storm configuration:
|
|
1028
|
+
if (!skipLogs && !config.skipConfigLogging) {
|
|
1029
|
+
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1023
1030
|
${formatLogMessage(config)}`, config);
|
|
1024
1031
|
}
|
|
1025
1032
|
return config;
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
correctPaths
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KZJCDAOU.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
7
7
|
|
|
8
8
|
// ../config-tools/src/utilities/find-up.ts
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
import { join } from "node:path";
|
|
11
11
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
12
12
|
var depth = 0;
|
|
13
|
-
function findFolderUp(startPath, endFileNames) {
|
|
13
|
+
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
14
14
|
const _startPath = startPath ?? process.cwd();
|
|
15
|
+
if (endDirectoryNames.some((endDirName) => existsSync(join(_startPath, endDirName)))) {
|
|
16
|
+
return _startPath;
|
|
17
|
+
}
|
|
15
18
|
if (endFileNames.some((endFileName) => existsSync(join(_startPath, endFileName)))) {
|
|
16
19
|
return _startPath;
|
|
17
20
|
}
|
|
18
21
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
19
22
|
const parent = join(_startPath, "..");
|
|
20
|
-
return findFolderUp(parent, endFileNames);
|
|
23
|
+
return findFolderUp(parent, endFileNames, endDirectoryNames);
|
|
21
24
|
}
|
|
22
25
|
return void 0;
|
|
23
26
|
}
|
|
@@ -25,17 +28,17 @@ __name(findFolderUp, "findFolderUp");
|
|
|
25
28
|
|
|
26
29
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
27
30
|
var rootFiles = [
|
|
28
|
-
"storm.json",
|
|
29
|
-
"storm.json",
|
|
30
|
-
"storm.yaml",
|
|
31
|
-
"storm.yml",
|
|
32
|
-
"storm.js",
|
|
33
|
-
"storm.ts",
|
|
34
|
-
".storm.json",
|
|
35
|
-
".storm.yaml",
|
|
36
|
-
".storm.yml",
|
|
37
|
-
".storm.js",
|
|
38
|
-
".storm.ts",
|
|
31
|
+
"storm-workspace.json",
|
|
32
|
+
"storm-workspace.json",
|
|
33
|
+
"storm-workspace.yaml",
|
|
34
|
+
"storm-workspace.yml",
|
|
35
|
+
"storm-workspace.js",
|
|
36
|
+
"storm-workspace.ts",
|
|
37
|
+
".storm-workspace.json",
|
|
38
|
+
".storm-workspace.yaml",
|
|
39
|
+
".storm-workspace.yml",
|
|
40
|
+
".storm-workspace.js",
|
|
41
|
+
".storm-workspace.ts",
|
|
39
42
|
"lerna.json",
|
|
40
43
|
"nx.json",
|
|
41
44
|
"turbo.json",
|
|
@@ -59,11 +62,18 @@ var rootFiles = [
|
|
|
59
62
|
"pnpm-lock.yml",
|
|
60
63
|
"bun.lockb"
|
|
61
64
|
];
|
|
65
|
+
var rootDirectories = [
|
|
66
|
+
".storm-workspace",
|
|
67
|
+
".nx",
|
|
68
|
+
".github",
|
|
69
|
+
".vscode",
|
|
70
|
+
".verdaccio"
|
|
71
|
+
];
|
|
62
72
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
63
73
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
64
74
|
return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
|
|
65
75
|
}
|
|
66
|
-
return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
|
|
76
|
+
return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles, rootDirectories));
|
|
67
77
|
}
|
|
68
78
|
__name(findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
69
79
|
function findWorkspaceRoot(pathInsideMonorepo) {
|