@storm-software/workspace-tools 1.294.26 → 1.294.28
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 +30 -0
- package/dist/{chunk-BFUD5R7Y.mjs → chunk-2KJIK2JG.mjs} +1 -1
- package/dist/{chunk-GQUC7Z5A.js → chunk-2KU2SYND.js} +2 -2
- package/dist/{chunk-V5BPSX25.mjs → chunk-2LSF54ZF.mjs} +7 -3
- package/dist/{chunk-CVWXJRXD.mjs → chunk-35BFW2YQ.mjs} +1 -1
- package/dist/{chunk-5ZHH2FNQ.js → chunk-3UVFXL7I.js} +10 -10
- package/dist/{chunk-LS6TILJC.js → chunk-57NKESY4.js} +2 -2
- package/dist/{chunk-PED6YPOF.js → chunk-5ERD4NKM.js} +4 -4
- package/dist/{chunk-EIHVLRYO.mjs → chunk-5LORK24T.mjs} +3 -3
- package/dist/{chunk-LN2ISRNV.js → chunk-6CO2XOFR.js} +4 -4
- package/dist/{chunk-H2IQPKCX.js → chunk-6DW3XFYQ.js} +31 -30
- package/dist/{chunk-ETSXRU6M.js → chunk-6ES3P2CK.js} +12 -12
- package/dist/{chunk-I3IVGDHX.js → chunk-AA5UBL6W.js} +11 -11
- package/dist/{chunk-AXBRZDW7.mjs → chunk-AUKCJTVH.mjs} +1 -1
- package/dist/{chunk-GL7AEMWH.mjs → chunk-BA7S3VQ3.mjs} +2 -2
- package/dist/{chunk-JMG57VVQ.mjs → chunk-BU2S2BSO.mjs} +1 -1
- package/dist/{chunk-FIAY4XVI.mjs → chunk-CHKLDARN.mjs} +1 -1
- package/dist/{chunk-4XMMNPEO.js → chunk-CJHDSYRB.js} +2 -2
- package/dist/{chunk-C4ETRYH2.js → chunk-CK3BPORZ.js} +24 -20
- package/dist/{chunk-23AG7J6K.mjs → chunk-DCNARLNN.mjs} +1 -1
- package/dist/{chunk-TSATJMLT.mjs → chunk-EYFYABBG.mjs} +6 -5
- package/dist/{chunk-QJEODVLU.mjs → chunk-G3QQ7CLV.mjs} +1 -1
- package/dist/{chunk-626FPLUP.js → chunk-GAOMOIRS.js} +8 -8
- package/dist/{chunk-V5L2NMX3.mjs → chunk-HLZG5AEE.mjs} +8 -4
- package/dist/{chunk-P37IUTEP.mjs → chunk-HUZNI7UG.mjs} +1 -1
- package/dist/{chunk-I4TZ6K5F.mjs → chunk-IQ7NS4OX.mjs} +1 -1
- package/dist/{chunk-NWXPYUQ3.mjs → chunk-J3V2XDUI.mjs} +32 -1
- package/dist/{chunk-DONUBURB.mjs → chunk-JAKKZXJM.mjs} +1 -1
- package/dist/{chunk-FAOWNWQO.js → chunk-LQZIZT3Y.js} +2 -2
- package/dist/{chunk-DQQPNY3P.mjs → chunk-MRG3BU6W.mjs} +2 -2
- package/dist/{chunk-LQLB23MA.js → chunk-MZDT5BZH.js} +5 -5
- package/dist/{chunk-I7VI4LB4.js → chunk-NTM7F6SO.js} +2 -2
- package/dist/{chunk-FLEL6HL3.mjs → chunk-NZX54HXX.mjs} +2 -2
- package/dist/{chunk-MJPVYBME.js → chunk-OS24C67P.js} +35 -4
- package/dist/{chunk-V6KF2MA3.js → chunk-PBN7PKGE.js} +21 -17
- package/dist/{chunk-HUOI4PBW.js → chunk-PK3VAEVW.js} +2 -2
- package/dist/{chunk-R6OKTOPG.js → chunk-PKU6ZJTS.js} +5 -5
- package/dist/{chunk-JP5HZTAF.mjs → chunk-Q5LQOLXC.mjs} +2 -2
- package/dist/{chunk-HRSYZ5SJ.js → chunk-QPBVOQFM.js} +2 -2
- package/dist/{chunk-YRHOGXG2.js → chunk-QVC3FWV5.js} +2 -2
- package/dist/{chunk-RDLWCD3X.js → chunk-QY6ZMQ6I.js} +2 -2
- package/dist/{chunk-HTZWMLHS.mjs → chunk-R3374L7Q.mjs} +3 -3
- package/dist/{chunk-FAYJOHW6.mjs → chunk-R4VLMWSB.mjs} +1 -1
- package/dist/{chunk-XOC54MDY.mjs → chunk-TIJ5S5SL.mjs} +1 -1
- package/dist/{chunk-OAWHJHVS.mjs → chunk-UK6TAD3O.mjs} +2 -2
- package/dist/{chunk-AH5TFWCI.mjs → chunk-UWQQYG23.mjs} +1 -1
- package/dist/{chunk-JV6AKQ47.js → chunk-VFLEWVYZ.js} +35 -34
- package/dist/{chunk-3ATRPILH.js → chunk-VHXO4KB2.js} +2 -2
- package/dist/{chunk-2HFE4IAT.mjs → chunk-XZPUEPKK.mjs} +1 -1
- package/dist/{chunk-SQ7YVBPN.js → chunk-Y6FERKSJ.js} +2 -2
- package/dist/{chunk-MJU4W4C7.mjs → chunk-YHO3SOGJ.mjs} +6 -5
- package/dist/{chunk-XRVFIF7Q.js → chunk-YRI7JSHF.js} +2 -2
- package/dist/{chunk-YI34TEVO.mjs → chunk-ZED2FGME.mjs} +1 -1
- package/dist/{chunk-WJAIY3X6.js → chunk-ZNRCZ3UF.js} +2 -2
- package/dist/{chunk-YRHSIXS4.js → chunk-ZTCV7FTK.js} +2 -2
- package/dist/executors.js +20 -20
- package/dist/executors.mjs +19 -19
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +8 -8
- package/dist/index.js +28 -28
- package/dist/index.mjs +27 -27
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-generator.js +4 -4
- package/dist/src/base/base-generator.mjs +3 -3
- 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.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- package/dist/src/executors/esbuild/executor.js +6 -6
- package/dist/src/executors/esbuild/executor.mjs +5 -5
- package/dist/src/executors/napi/executor.js +5 -5
- package/dist/src/executors/napi/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/executor.js +6 -6
- package/dist/src/executors/npm-publish/executor.mjs +5 -5
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/tsdown/executor.js +6 -6
- package/dist/src/executors/tsdown/executor.mjs +5 -5
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +4 -4
- 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.js +5 -5
- package/dist/src/generators/browser-library/generator.mjs +4 -4
- 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.js +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +4 -4
- 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.js +5 -5
- package/dist/src/generators/preset/generator.mjs +4 -4
- package/dist/src/release/index.js +6 -6
- package/dist/src/release/index.mjs +5 -5
- package/dist/src/release/js-version-actions.js +4 -4
- package/dist/src/release/js-version-actions.mjs +3 -3
- package/dist/src/release/rust-version-actions.js +5 -5
- package/dist/src/release/rust-version-actions.mjs +4 -4
- 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/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.294.27](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.294.27) (01/22/2026)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- **config-tools:** Added the `brandIcon` helper function
|
|
10
|
+
([9c21c782f](https://github.com/storm-software/storm-ops/commit/9c21c782f))
|
|
11
|
+
|
|
12
|
+
### Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated **testing-tools** to **v1.119.75**
|
|
15
|
+
- Updated **config-tools** to **v1.189.0**
|
|
16
|
+
- Updated **pnpm-tools** to **v0.6.83**
|
|
17
|
+
- Updated **npm-tools** to **v0.6.38**
|
|
18
|
+
- Updated **prettier** to **v0.57.75**
|
|
19
|
+
- Updated **esbuild** to **v0.53.81**
|
|
20
|
+
- Updated **unbuild** to **v0.57.81**
|
|
21
|
+
- Updated **config** to **v1.135.1**
|
|
22
|
+
- Updated **tsdown** to **v0.45.81**
|
|
23
|
+
|
|
24
|
+
## [1.294.26](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.294.26) (01/14/2026)
|
|
25
|
+
|
|
26
|
+
### Updated Dependencies
|
|
27
|
+
|
|
28
|
+
- Updated **config-tools** to **v1.188.80**
|
|
29
|
+
- Updated **pnpm-tools** to **v0.6.82**
|
|
30
|
+
- Updated **npm-tools** to **v0.6.37**
|
|
31
|
+
- Updated **esbuild** to **v0.53.80**
|
|
32
|
+
- Updated **unbuild** to **v0.57.80**
|
|
33
|
+
- Updated **tsdown** to **v0.45.80**
|
|
34
|
+
|
|
5
35
|
## [1.294.25](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.294.25) (01/14/2026)
|
|
6
36
|
|
|
7
37
|
### Updated Dependencies
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkSZWM7COVjs = require('./chunk-SZWM7COV.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPBN7PKGEjs = require('./chunk-PBN7PKGE.js');
|
|
8
8
|
|
|
9
9
|
// src/generators/preset/generator.ts
|
|
10
10
|
|
|
@@ -239,7 +239,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
239
239
|
);
|
|
240
240
|
return null;
|
|
241
241
|
}
|
|
242
|
-
var generator_default =
|
|
242
|
+
var generator_default = _chunkPBN7PKGEjs.withRunGenerator.call(void 0,
|
|
243
243
|
"Storm Workspace Preset Generator",
|
|
244
244
|
presetGeneratorFn
|
|
245
245
|
);
|
|
@@ -4,8 +4,9 @@ import {
|
|
|
4
4
|
} from "./chunk-2QMGYIOO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UWQQYG23.mjs";
|
|
8
8
|
import {
|
|
9
|
+
brandIcon,
|
|
9
10
|
formatLogMessage,
|
|
10
11
|
getStopwatch,
|
|
11
12
|
writeDebug,
|
|
@@ -14,7 +15,7 @@ import {
|
|
|
14
15
|
writeInfo,
|
|
15
16
|
writeSuccess,
|
|
16
17
|
writeTrace
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-J3V2XDUI.mjs";
|
|
18
19
|
import {
|
|
19
20
|
findWorkspaceRoot
|
|
20
21
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -36,7 +37,10 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
36
37
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
37
38
|
const projectName = context.projectName;
|
|
38
39
|
config.workspaceRoot = workspaceRoot;
|
|
39
|
-
writeInfo(
|
|
40
|
+
writeInfo(
|
|
41
|
+
`${brandIcon(config)} Running the ${name} executor for ${projectName} `,
|
|
42
|
+
config
|
|
43
|
+
);
|
|
40
44
|
if (!executorOptions.skipReadingConfig) {
|
|
41
45
|
writeTrace(
|
|
42
46
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkOS24C67Pjs = require('./chunk-OS24C67P.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -751,7 +751,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
751
751
|
let config = result.config;
|
|
752
752
|
const configFile = result.configFile;
|
|
753
753
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
754
|
-
|
|
754
|
+
_chunkOS24C67Pjs.writeTrace.call(void 0,
|
|
755
755
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
756
756
|
{
|
|
757
757
|
logLevel: "all"
|
|
@@ -767,7 +767,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
767
767
|
for (const result2 of results) {
|
|
768
768
|
if (_optionalChain([result2, 'optionalAccess', _9 => _9.config]) && _optionalChain([result2, 'optionalAccess', _10 => _10.configFile]) && Object.keys(result2.config).length > 0) {
|
|
769
769
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
770
|
-
|
|
770
|
+
_chunkOS24C67Pjs.writeTrace.call(void 0,
|
|
771
771
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
772
772
|
{
|
|
773
773
|
logLevel: "all"
|
|
@@ -879,7 +879,7 @@ var getConfigEnv = () => {
|
|
|
879
879
|
},
|
|
880
880
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
881
881
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
882
|
-
) ?
|
|
882
|
+
) ? _chunkOS24C67Pjs.getLogLevelLabel.call(void 0,
|
|
883
883
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
884
884
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
885
885
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -1244,9 +1244,9 @@ var setConfigEnv = (config) => {
|
|
|
1244
1244
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1245
1245
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1246
1246
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1247
|
-
|
|
1247
|
+
_chunkOS24C67Pjs.getLogLevel.call(void 0, config.logLevel) >= _chunkOS24C67Pjs.LogLevel.DEBUG ? true : false
|
|
1248
1248
|
);
|
|
1249
|
-
process.env.RUST_BACKTRACE =
|
|
1249
|
+
process.env.RUST_BACKTRACE = _chunkOS24C67Pjs.getLogLevel.call(void 0, config.logLevel) >= _chunkOS24C67Pjs.LogLevel.DEBUG ? "full" : "none";
|
|
1250
1250
|
}
|
|
1251
1251
|
if (config.skipConfigLogging !== void 0) {
|
|
1252
1252
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1388,7 +1388,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1388
1388
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1389
1389
|
if (!configFile) {
|
|
1390
1390
|
if (!skipLogs) {
|
|
1391
|
-
|
|
1391
|
+
_chunkOS24C67Pjs.writeWarning.call(void 0,
|
|
1392
1392
|
"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",
|
|
1393
1393
|
{ logLevel: "all" }
|
|
1394
1394
|
);
|
|
@@ -1415,7 +1415,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1415
1415
|
throw new Error(
|
|
1416
1416
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _35 => _35.message]) ? `: ${error.message}` : ""}
|
|
1417
1417
|
|
|
1418
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1418
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkOS24C67Pjs.formatLogMessage.call(void 0,
|
|
1419
1419
|
configInput
|
|
1420
1420
|
)}`,
|
|
1421
1421
|
{
|
|
@@ -1460,9 +1460,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1460
1460
|
);
|
|
1461
1461
|
setConfigEnv(config);
|
|
1462
1462
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1463
|
-
|
|
1463
|
+
_chunkOS24C67Pjs.writeTrace.call(void 0,
|
|
1464
1464
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1465
|
-
${
|
|
1465
|
+
${_chunkOS24C67Pjs.formatLogMessage.call(void 0, config)}`,
|
|
1466
1466
|
config
|
|
1467
1467
|
);
|
|
1468
1468
|
}
|
|
@@ -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 _chunkYRI7JSHFjs = require('./chunk-YRI7JSHF.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 = _chunkYRI7JSHFjs.parseCargoToml.call(void 0,
|
|
29
29
|
_fs.readFileSync.call(void 0, _devkit.joinPathFragments.call(void 0, packageRoot, "Cargo.toml"), "utf-8")
|
|
30
30
|
);
|
|
31
31
|
try {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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 _chunkQY6ZMQ6Ijs = require('./chunk-QY6ZMQ6I.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3UVFXL7Ijs = require('./chunk-3UVFXL7I.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -35,7 +35,7 @@ async function getNpmRegistry() {
|
|
|
35
35
|
if (process.env.STORM_REGISTRY_NPM) {
|
|
36
36
|
return process.env.STORM_REGISTRY_NPM;
|
|
37
37
|
}
|
|
38
|
-
const workspaceConfig = await
|
|
38
|
+
const workspaceConfig = await _chunk3UVFXL7Ijs.getConfig.call(void 0, );
|
|
39
39
|
if (_optionalChain([workspaceConfig, 'optionalAccess', _ => _.registry, 'optionalAccess', _2 => _2.npm])) {
|
|
40
40
|
return _optionalChain([workspaceConfig, 'optionalAccess', _3 => _3.registry, 'optionalAccess', _4 => _4.npm]);
|
|
41
41
|
}
|
|
@@ -315,7 +315,7 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
315
315
|
return { success: true };
|
|
316
316
|
}
|
|
317
317
|
await replaceDepsAliases(packageRoot, context.root);
|
|
318
|
-
await
|
|
318
|
+
await _chunkQY6ZMQ6Ijs.addPackageJsonGitHead.call(void 0, packageRoot);
|
|
319
319
|
const npmPublishCommandSegments = [`npm publish --json`];
|
|
320
320
|
const npmViewCommandSegments = [
|
|
321
321
|
`npm view ${packageName} versions dist-tags --json`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeDebug,
|
|
3
3
|
writeTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-J3V2XDUI.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findWorkspaceRoot
|
|
7
7
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
// ../build-tools/src/config.ts
|
|
13
13
|
var DEFAULT_JS_BANNER = `
|
|
14
14
|
// ---------------------------------------
|
|
15
|
-
// \
|
|
15
|
+
// \u{1F5F2} Built by Storm Software
|
|
16
16
|
// ---------------------------------------
|
|
17
17
|
`;
|
|
18
18
|
var DEFAULT_CSS_BANNER = `
|
|
19
19
|
/* ---------------------------------------
|
|
20
|
-
\
|
|
20
|
+
\u{1F5F2} Built by Storm Software
|
|
21
21
|
--------------------------------------- */
|
|
22
22
|
`;
|
|
23
23
|
var DEFAULT_ENVIRONMENT = "production";
|
|
@@ -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 _chunkCK3BPORZjs = require('./chunk-CK3BPORZ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOS24C67Pjs = require('./chunk-OS24C67P.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -12,7 +12,7 @@ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
|
12
12
|
var _defu = require('defu');
|
|
13
13
|
var _jiti = require('jiti');
|
|
14
14
|
async function unbuildExecutorFn(options, context, config) {
|
|
15
|
-
|
|
15
|
+
_chunkOS24C67Pjs.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 = _chunkCK3BPORZjs.withRunExecutor.call(void 0,
|
|
84
84
|
"TypeScript Unbuild build",
|
|
85
85
|
unbuildExecutorFn,
|
|
86
86
|
{
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGAOMOIRSjs = require('./chunk-GAOMOIRS.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkCK3BPORZjs = require('./chunk-CK3BPORZ.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk3UVFXL7Ijs = require('./chunk-3UVFXL7I.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -19,7 +19,8 @@ var _chunk5ZHH2FNQjs = require('./chunk-5ZHH2FNQ.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
var _chunkOS24C67Pjs = require('./chunk-OS24C67P.js');
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -79,11 +80,11 @@ var resolveOptions = async (userOptions) => {
|
|
|
79
80
|
if (!workspaceRoot) {
|
|
80
81
|
throw new Error("Cannot find Nx workspace root");
|
|
81
82
|
}
|
|
82
|
-
const workspaceConfig = await
|
|
83
|
+
const workspaceConfig = await _chunk3UVFXL7Ijs.getWorkspaceConfig.call(void 0, options.debug === true, {
|
|
83
84
|
workspaceRoot
|
|
84
85
|
});
|
|
85
|
-
|
|
86
|
-
const stopwatch =
|
|
86
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
87
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, "Build options resolution");
|
|
87
88
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
88
89
|
exitOnError: true
|
|
89
90
|
});
|
|
@@ -117,7 +118,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
117
118
|
const result = {
|
|
118
119
|
name: projectName,
|
|
119
120
|
mode: "production",
|
|
120
|
-
target:
|
|
121
|
+
target: _chunkGAOMOIRSjs.DEFAULT_TARGET,
|
|
121
122
|
generatePackageJson: true,
|
|
122
123
|
outDir: _chunkCQDBLKPFjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
123
124
|
minify: !debug,
|
|
@@ -149,15 +150,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
149
150
|
};
|
|
150
151
|
result.env = _defu2.default.call(void 0,
|
|
151
152
|
options.env,
|
|
152
|
-
|
|
153
|
+
_chunkGAOMOIRSjs.getEnv.call(void 0, "tsdown", result)
|
|
153
154
|
);
|
|
154
155
|
stopwatch();
|
|
155
156
|
return result;
|
|
156
157
|
};
|
|
157
158
|
async function generatePackageJson(options) {
|
|
158
159
|
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
159
|
-
|
|
160
|
-
const stopwatch =
|
|
160
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
161
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, "Write package.json file");
|
|
161
162
|
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
162
163
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
163
164
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -174,13 +175,13 @@ async function generatePackageJson(options) {
|
|
|
174
175
|
throw new Error("Cannot find package.json configuration file");
|
|
175
176
|
}
|
|
176
177
|
let packageJson = JSON.parse(packageJsonFile);
|
|
177
|
-
packageJson = await
|
|
178
|
+
packageJson = await _chunkGAOMOIRSjs.addPackageDependencies.call(void 0,
|
|
178
179
|
options.workspaceConfig.workspaceRoot,
|
|
179
180
|
options.projectRoot,
|
|
180
181
|
options.projectName,
|
|
181
182
|
packageJson
|
|
182
183
|
);
|
|
183
|
-
packageJson = await
|
|
184
|
+
packageJson = await _chunkGAOMOIRSjs.addWorkspacePackageJsonFields.call(void 0,
|
|
184
185
|
options.workspaceConfig,
|
|
185
186
|
options.projectRoot,
|
|
186
187
|
options.sourceRoot,
|
|
@@ -190,7 +191,7 @@ async function generatePackageJson(options) {
|
|
|
190
191
|
);
|
|
191
192
|
packageJson.exports ??= {};
|
|
192
193
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
193
|
-
packageJson.exports["."] ??=
|
|
194
|
+
packageJson.exports["."] ??= _chunkGAOMOIRSjs.addPackageJsonExport.call(void 0,
|
|
194
195
|
"index",
|
|
195
196
|
packageJson.type,
|
|
196
197
|
options.sourceRoot
|
|
@@ -206,7 +207,7 @@ async function generatePackageJson(options) {
|
|
|
206
207
|
const split = entryPoint.out.split(".");
|
|
207
208
|
split.pop();
|
|
208
209
|
const entry2 = split.join(".").replaceAll("\\", "/");
|
|
209
|
-
packageJson.exports[`./${entry2}`] ??=
|
|
210
|
+
packageJson.exports[`./${entry2}`] ??= _chunkGAOMOIRSjs.addPackageJsonExport.call(void 0,
|
|
210
211
|
entry2,
|
|
211
212
|
options.fixedExtension ? "fixed" : packageJson.type,
|
|
212
213
|
options.sourceRoot
|
|
@@ -231,8 +232,8 @@ async function generatePackageJson(options) {
|
|
|
231
232
|
return options;
|
|
232
233
|
}
|
|
233
234
|
async function executeTSDown(options) {
|
|
234
|
-
|
|
235
|
-
const stopwatch =
|
|
235
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
|
|
236
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
236
237
|
await _tsdown.build.call(void 0, {
|
|
237
238
|
...options,
|
|
238
239
|
entry: options.entry,
|
|
@@ -242,12 +243,12 @@ async function executeTSDown(options) {
|
|
|
242
243
|
return options;
|
|
243
244
|
}
|
|
244
245
|
async function copyBuildAssets(options) {
|
|
245
|
-
|
|
246
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0,
|
|
246
247
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
247
248
|
options.workspaceConfig
|
|
248
249
|
);
|
|
249
|
-
const stopwatch =
|
|
250
|
-
await
|
|
250
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
251
|
+
await _chunkGAOMOIRSjs.copyAssets.call(void 0,
|
|
251
252
|
options.workspaceConfig,
|
|
252
253
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
253
254
|
options.outDir,
|
|
@@ -260,18 +261,18 @@ async function copyBuildAssets(options) {
|
|
|
260
261
|
return options;
|
|
261
262
|
}
|
|
262
263
|
async function reportResults(options) {
|
|
263
|
-
|
|
264
|
+
_chunkOS24C67Pjs.writeSuccess.call(void 0,
|
|
264
265
|
` \u{1F4E6} The ${options.name} build completed successfully`,
|
|
265
266
|
options.workspaceConfig
|
|
266
267
|
);
|
|
267
268
|
}
|
|
268
269
|
async function cleanOutputPath(options) {
|
|
269
270
|
if (options.clean !== false && options.workspaceConfig) {
|
|
270
|
-
|
|
271
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0,
|
|
271
272
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
|
|
272
273
|
options.workspaceConfig
|
|
273
274
|
);
|
|
274
|
-
const stopwatch =
|
|
275
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
275
276
|
await cleanDirectories(
|
|
276
277
|
options.name,
|
|
277
278
|
options.outDir,
|
|
@@ -282,8 +283,8 @@ async function cleanOutputPath(options) {
|
|
|
282
283
|
return options;
|
|
283
284
|
}
|
|
284
285
|
async function build(options) {
|
|
285
|
-
|
|
286
|
-
const stopwatch =
|
|
286
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, ` ${_chunkOS24C67Pjs.brandIcon.call(void 0, )} Executing Storm TSDown pipeline`);
|
|
287
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
287
288
|
try {
|
|
288
289
|
const opts = Array.isArray(options) ? options : [options];
|
|
289
290
|
if (opts.length === 0) {
|
|
@@ -303,13 +304,13 @@ async function build(options) {
|
|
|
303
304
|
})
|
|
304
305
|
);
|
|
305
306
|
} else {
|
|
306
|
-
|
|
307
|
+
_chunkOS24C67Pjs.writeWarning.call(void 0,
|
|
307
308
|
" \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
|
|
308
309
|
);
|
|
309
310
|
}
|
|
310
|
-
|
|
311
|
+
_chunkOS24C67Pjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
311
312
|
} catch (error) {
|
|
312
|
-
|
|
313
|
+
_chunkOS24C67Pjs.writeFatal.call(void 0,
|
|
313
314
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
314
315
|
);
|
|
315
316
|
throw error;
|
|
@@ -320,7 +321,7 @@ async function build(options) {
|
|
|
320
321
|
|
|
321
322
|
// src/executors/tsdown/executor.ts
|
|
322
323
|
async function tsdownExecutorFn(options, context, config) {
|
|
323
|
-
|
|
324
|
+
_chunkOS24C67Pjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
324
325
|
if (!_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'optionalAccess', _4 => _4.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _5 => _5.projectsConfigurations, 'access', _6 => _6.projects, 'access', _7 => _7[context.projectName], 'optionalAccess', _8 => _8.root])) {
|
|
325
326
|
throw new Error(
|
|
326
327
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -341,7 +342,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
341
342
|
success: true
|
|
342
343
|
};
|
|
343
344
|
}
|
|
344
|
-
var executor_default =
|
|
345
|
+
var executor_default = _chunkCK3BPORZjs.withRunExecutor.call(void 0,
|
|
345
346
|
"Storm TSDown build",
|
|
346
347
|
tsdownExecutorFn,
|
|
347
348
|
{
|
|
@@ -5,10 +5,10 @@ var _chunkANHKV7HZjs = require('./chunk-ANHKV7HZ.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkYRI7JSHFjs = require('./chunk-YRI7JSHF.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk3UVFXL7Ijs = require('./chunk-3UVFXL7I.js');
|
|
12
12
|
|
|
13
13
|
// src/release/rust-version-actions.ts
|
|
14
14
|
|
|
@@ -36,7 +36,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
36
36
|
* @params tree - The file system tree to read from.
|
|
37
37
|
*/
|
|
38
38
|
async init(tree) {
|
|
39
|
-
this.workspaceConfig = await
|
|
39
|
+
this.workspaceConfig = await _chunk3UVFXL7Ijs.getWorkspaceConfig.call(void 0, );
|
|
40
40
|
return super.init(tree);
|
|
41
41
|
}
|
|
42
42
|
async readCurrentVersionFromSourceManifest(tree) {
|
|
@@ -45,7 +45,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
45
45
|
"Cargo.toml"
|
|
46
46
|
);
|
|
47
47
|
try {
|
|
48
|
-
const cargoToml =
|
|
48
|
+
const cargoToml = _chunkYRI7JSHFjs.parseCargoTomlWithTree.call(void 0,
|
|
49
49
|
tree,
|
|
50
50
|
this.projectGraphNode.data.root,
|
|
51
51
|
this.projectGraphNode.name
|
|
@@ -61,7 +61,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
async readCurrentVersionFromRegistry(tree, currentVersionResolverMetadata) {
|
|
64
|
-
const cargoToml =
|
|
64
|
+
const cargoToml = _chunkYRI7JSHFjs.parseCargoTomlWithTree.call(void 0,
|
|
65
65
|
tree,
|
|
66
66
|
this.projectGraphNode.data.root,
|
|
67
67
|
this.projectGraphNode.name
|
|
@@ -86,7 +86,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
async readCurrentVersionOfDependency(tree, projectGraph, dependencyProjectName) {
|
|
89
|
-
const cargoToml =
|
|
89
|
+
const cargoToml = _chunkYRI7JSHFjs.parseCargoTomlWithTree.call(void 0,
|
|
90
90
|
tree,
|
|
91
91
|
this.projectGraphNode.data.root,
|
|
92
92
|
this.projectGraphNode.name
|
|
@@ -97,7 +97,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
97
97
|
dependencyCollection: null
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
const dependencyCargoToml =
|
|
100
|
+
const dependencyCargoToml = _chunkYRI7JSHFjs.parseCargoTomlWithTree.call(void 0,
|
|
101
101
|
tree,
|
|
102
102
|
_optionalChain([projectGraph, 'access', _10 => _10.nodes, 'access', _11 => _11[dependencyProjectName], 'optionalAccess', _12 => _12.data, 'access', _13 => _13.root]),
|
|
103
103
|
dependencyProjectName
|
|
@@ -131,9 +131,9 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
131
131
|
`Unable to read Cargo.toml at path: ${manifestToUpdate.manifestPath}`
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
|
-
const cargoToml =
|
|
134
|
+
const cargoToml = _chunkYRI7JSHFjs.parseCargoToml.call(void 0, cargoTomlString);
|
|
135
135
|
cargoToml.package.version = newVersion;
|
|
136
|
-
tree.write(manifestToUpdate.manifestPath,
|
|
136
|
+
tree.write(manifestToUpdate.manifestPath, _chunkYRI7JSHFjs.stringifyCargoToml.call(void 0, cargoToml));
|
|
137
137
|
logMessages.push(
|
|
138
138
|
`\u270D\uFE0F New version ${newVersion} written to manifest: ${manifestToUpdate.manifestPath}`
|
|
139
139
|
);
|
|
@@ -161,7 +161,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
161
161
|
`Unable to read Cargo.toml at path: ${manifestToUpdate.manifestPath}`
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
|
-
const cargoToml =
|
|
164
|
+
const cargoToml = _chunkYRI7JSHFjs.parseCargoToml.call(void 0, cargoTomlString);
|
|
165
165
|
for (const depType of ["dependencies", "dev-dependencies"]) {
|
|
166
166
|
if (cargoToml[depType]) {
|
|
167
167
|
for (const [dep, version] of Object.entries(dependenciesToUpdate)) {
|
|
@@ -178,7 +178,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
178
178
|
`Unable to read Cargo.toml at path: ${manifestToUpdate.manifestPath}`
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
|
-
const dependencyCargoToml =
|
|
181
|
+
const dependencyCargoToml = _chunkYRI7JSHFjs.parseCargoToml.call(void 0,
|
|
182
182
|
dependencyCargoTomlString
|
|
183
183
|
);
|
|
184
184
|
const dependencyCrateName = cargoToml[depType][dependencyCargoToml.package.name] ? dependencyCargoToml.package.name : dep;
|
|
@@ -189,7 +189,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
189
189
|
}
|
|
190
190
|
tree.write(
|
|
191
191
|
manifestToUpdate.manifestPath,
|
|
192
|
-
|
|
192
|
+
_chunkYRI7JSHFjs.stringifyCargoToml.call(void 0, cargoToml)
|
|
193
193
|
);
|
|
194
194
|
} catch (error) {
|
|
195
195
|
throw new Error(
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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 _chunkPBN7PKGEjs = require('./chunk-PBN7PKGE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk3UVFXL7Ijs = require('./chunk-3UVFXL7I.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkOS24C67Pjs = require('./chunk-OS24C67P.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -18,22 +18,22 @@ var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
|
|
20
20
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
21
|
-
|
|
21
|
+
_chunkOS24C67Pjs.writeInfo.call(void 0,
|
|
22
22
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
23
23
|
config
|
|
24
24
|
);
|
|
25
|
-
|
|
25
|
+
_chunkOS24C67Pjs.writeTrace.call(void 0,
|
|
26
26
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
27
27
|
config
|
|
28
28
|
);
|
|
29
|
-
const jsonSchema = z.toJSONSchema(
|
|
29
|
+
const jsonSchema = z.toJSONSchema(_chunk3UVFXL7Ijs.workspaceConfigSchema, {
|
|
30
30
|
target: "draft-7",
|
|
31
|
-
metadata:
|
|
31
|
+
metadata: _chunk3UVFXL7Ijs.schemaRegistry
|
|
32
32
|
});
|
|
33
33
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
34
34
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
35
35
|
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.";
|
|
36
|
-
|
|
36
|
+
_chunkOS24C67Pjs.writeTrace.call(void 0, jsonSchema, config);
|
|
37
37
|
if (!options.outputFile) {
|
|
38
38
|
throw new Error(
|
|
39
39
|
"The `outputFile` option is required. Please specify the output file path."
|
|
@@ -43,13 +43,13 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
43
43
|
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, ))),
|
|
44
44
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
45
45
|
);
|
|
46
|
-
|
|
46
|
+
_chunkOS24C67Pjs.writeTrace.call(void 0,
|
|
47
47
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
48
48
|
config
|
|
49
49
|
);
|
|
50
50
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
51
51
|
await _devkit.formatFiles.call(void 0, tree);
|
|
52
|
-
|
|
52
|
+
_chunkOS24C67Pjs.writeSuccess.call(void 0,
|
|
53
53
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
54
54
|
config
|
|
55
55
|
);
|
|
@@ -57,7 +57,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
57
57
|
success: true
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
var generator_default =
|
|
60
|
+
var generator_default = _chunkPBN7PKGEjs.withRunGenerator.call(void 0,
|
|
61
61
|
"Configuration Schema Creator",
|
|
62
62
|
configSchemaGeneratorFn,
|
|
63
63
|
{
|