@storm-software/workspace-tools 1.295.71 → 1.295.74
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 +51 -0
- package/dist/{chunk-A7XSX2OE.js → chunk-24WGOY7M.js} +2 -2
- package/dist/{chunk-RW4Q2PQR.js → chunk-2FQIDYBN.js} +12 -12
- package/dist/{chunk-IIDZJGC3.js → chunk-35KAXAXF.js} +34 -34
- package/dist/{chunk-SEZ726NO.mjs → chunk-3ZYXVFDI.mjs} +2 -2
- package/dist/{chunk-UE6LE5R2.mjs → chunk-42LESXB3.mjs} +1 -1
- package/dist/{chunk-IK2SIG4W.mjs → chunk-42RN7JZQ.mjs} +1 -1
- package/dist/{chunk-RGPA6TMT.js → chunk-5M7Q5AGZ.js} +30 -30
- package/dist/{chunk-AGR3NCGA.js → chunk-5QE6QZLL.js} +17 -8
- package/dist/{chunk-7AL5GHNT.mjs → chunk-5WFZQ5JS.mjs} +2 -2
- package/dist/{chunk-VMZGSS4M.mjs → chunk-6ECSUXBH.mjs} +2 -2
- package/dist/{chunk-CJVTWYOM.mjs → chunk-75H7T5KM.mjs} +2 -2
- package/dist/{chunk-QLV3LANL.js → chunk-7Y4HTTCH.js} +2 -2
- package/dist/{chunk-4Z3UCUDJ.mjs → chunk-AFZKYL2P.mjs} +2 -2
- package/dist/{chunk-FX64QLIN.mjs → chunk-AJSJ2JR6.mjs} +1 -1
- package/dist/{chunk-4ZQUYG5T.js → chunk-BE6YVKCO.js} +2 -2
- package/dist/{chunk-7K3VIGA4.mjs → chunk-BEZE4GFI.mjs} +2 -2
- package/dist/{chunk-ZJ75AYXE.js → chunk-CHHDG2MX.js} +10 -10
- package/dist/{chunk-UTP3KI2H.js → chunk-CHUFDTF4.js} +11 -11
- package/dist/{chunk-UKTILFKM.mjs → chunk-CSZ34LXS.mjs} +1 -1
- package/dist/{chunk-R4NPC2W7.mjs → chunk-CW4MH5E2.mjs} +2 -2
- package/dist/{chunk-BWV5PEQM.mjs → chunk-F5HQPVFD.mjs} +1 -1
- package/dist/{chunk-PHIKLLXQ.js → chunk-FAMMSDNC.js} +2 -2
- package/dist/{chunk-BRMFLUTQ.js → chunk-FSSGFERS.js} +2 -2
- package/dist/{chunk-46GNS53C.mjs → chunk-GOCSQYEA.mjs} +2 -2
- package/dist/{chunk-DTBAID2E.mjs → chunk-H75JKG5Z.mjs} +4 -4
- package/dist/{chunk-VTEU7W42.mjs → chunk-HE55HJHZ.mjs} +1 -1
- package/dist/{chunk-FVCRMDQ4.mjs → chunk-HLULZNA6.mjs} +1 -1
- package/dist/{chunk-K7B3YICS.mjs → chunk-HU3JD26C.mjs} +1 -1
- package/dist/{chunk-2NAUEEZT.js → chunk-HXRTQR3U.js} +2 -2
- package/dist/{chunk-2HPK7P5W.js → chunk-IDQYPP4E.js} +2 -2
- package/dist/{chunk-IVAYCDYI.js → chunk-IPVDQCJ4.js} +2 -2
- package/dist/{chunk-RSYBXBX2.js → chunk-J2TZAZ76.js} +17 -17
- package/dist/{chunk-RK2H6GNO.js → chunk-JINU7C4X.js} +2 -2
- package/dist/{chunk-TX5O64JJ.js → chunk-K2QPHBGO.js} +6 -6
- package/dist/{chunk-U35L6YML.mjs → chunk-KM43UGU6.mjs} +2 -2
- package/dist/{chunk-237PJK2V.js → chunk-KMBE3TLK.js} +4 -4
- package/dist/{chunk-GSGT2T27.js → chunk-KSL6QUB7.js} +21 -21
- package/dist/{chunk-UNUH7N7Y.mjs → chunk-KW6T252F.mjs} +3 -3
- package/dist/{chunk-M4QORJBG.js → chunk-L4SZWD3D.js} +2 -2
- package/dist/{chunk-LOIAWLLD.mjs → chunk-MNFKXDV6.mjs} +2 -2
- package/dist/{chunk-JCPIXJ3N.mjs → chunk-OAST6ITX.mjs} +1 -1
- package/dist/{chunk-CZPRVK6P.mjs → chunk-OPW7VZL2.mjs} +1 -1
- package/dist/{chunk-KBIJQTKM.js → chunk-Q5FLBXGL.js} +4 -4
- package/dist/{chunk-7RI43PE4.js → chunk-QKLKDDTU.js} +2 -2
- package/dist/{chunk-IIMRAJEJ.js → chunk-RK2R4IGP.js} +2 -2
- package/dist/{chunk-T55IDP24.mjs → chunk-TEYNJ3L6.mjs} +17 -8
- package/dist/{chunk-5JNL56OH.mjs → chunk-TFTJEDAM.mjs} +4 -4
- package/dist/{chunk-MHKQN2Y7.mjs → chunk-TLWPXL7M.mjs} +2 -2
- package/dist/{chunk-Z7G3CM4Z.js → chunk-UIRPA76V.js} +4 -4
- package/dist/{chunk-3QM6CFXC.mjs → chunk-VGLDTD5U.mjs} +1 -1
- package/dist/{chunk-RN4I4XGR.mjs → chunk-VSWADZIP.mjs} +1 -1
- package/dist/{chunk-52CEFR2O.js → chunk-WNPTYHA4.js} +5 -5
- package/dist/{chunk-FHHWAN4N.js → chunk-X777ZFHU.js} +5 -5
- package/dist/{chunk-WUKU43IZ.js → chunk-XT7T25QQ.js} +2 -2
- package/dist/{chunk-CNL74KSJ.mjs → chunk-YZVCSH3T.mjs} +2 -2
- package/dist/executors.js +20 -20
- package/dist/executors.mjs +22 -22
- package/dist/{generator-DdPUFIRV.d.mts → generator-B9nl4zZh.d.mts} +1 -1
- package/dist/{generator-9L9b-msK.d.mts → generator-BKKfRfw5.d.mts} +1 -1
- package/dist/{generator-DwHI-Bxg.d.ts → generator-CKzlyVl8.d.ts} +1 -1
- package/dist/{generator-Czm2JkrK.d.ts → generator-CPAEsIX9.d.ts} +1 -1
- package/dist/{generator-DIEJD40Q.d.mts → generator-Ce5Jjv19.d.mts} +1 -1
- package/dist/{generator-GND3rM-I.d.ts → generator-DMnwA7AM.d.ts} +1 -1
- package/dist/{generator-C9QMvagl.d.ts → generator-DN9Th4ZG.d.ts} +1 -1
- package/dist/{generator-BvhmWt7B.d.mts → generator-DVJjzR9Q.d.mts} +1 -1
- package/dist/{generator-BT5Kf5x0.d.ts → generator-DX2foast.d.ts} +1 -1
- package/dist/{generator-CkT060vy.d.mts → generator-rIlu4Sq2.d.mts} +1 -1
- package/dist/generators.d.mts +6 -6
- package/dist/generators.d.ts +6 -6
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +9 -9
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +28 -28
- package/dist/index.mjs +30 -30
- package/dist/src/base/base-executor.d.mts +1 -1
- package/dist/src/base/base-executor.d.ts +1 -1
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +4 -4
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.d.mts +1 -1
- package/dist/src/base/base-generator.d.ts +1 -1
- package/dist/src/base/base-generator.js +4 -4
- package/dist/src/base/base-generator.mjs +4 -4
- 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 +1 -1
- package/dist/src/base/index.d.ts +1 -1
- package/dist/src/base/index.js +5 -5
- package/dist/src/base/index.mjs +5 -5
- package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.js +5 -5
- package/dist/src/executors/cargo-build/executor.mjs +5 -5
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.js +5 -5
- package/dist/src/executors/cargo-check/executor.mjs +5 -5
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.js +5 -5
- package/dist/src/executors/cargo-clippy/executor.mjs +5 -5
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.js +5 -5
- package/dist/src/executors/cargo-doc/executor.mjs +5 -5
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.js +5 -5
- package/dist/src/executors/cargo-format/executor.mjs +5 -5
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +4 -4
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +4 -4
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- package/dist/src/executors/esbuild/executor.js +6 -6
- package/dist/src/executors/esbuild/executor.mjs +6 -6
- package/dist/src/executors/esbuild/untyped.mjs +1 -1
- package/dist/src/executors/napi/executor.js +5 -5
- package/dist/src/executors/napi/executor.mjs +5 -5
- package/dist/src/executors/napi/untyped.mjs +1 -1
- package/dist/src/executors/npm-publish/executor.js +6 -6
- package/dist/src/executors/npm-publish/executor.mjs +6 -6
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +5 -5
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/tsdown/executor.js +6 -6
- package/dist/src/executors/tsdown/executor.mjs +6 -6
- package/dist/src/executors/tsdown/untyped.mjs +1 -1
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +5 -5
- package/dist/src/executors/typia/untyped.mjs +1 -1
- package/dist/src/executors/unbuild/executor.js +5 -5
- package/dist/src/executors/unbuild/executor.mjs +5 -5
- package/dist/src/executors/unbuild/untyped.mjs +1 -1
- package/dist/src/generators/browser-library/generator.d.mts +2 -2
- package/dist/src/generators/browser-library/generator.d.ts +2 -2
- package/dist/src/generators/browser-library/generator.js +5 -5
- package/dist/src/generators/browser-library/generator.mjs +5 -5
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- package/dist/src/generators/config-schema/generator.d.mts +2 -2
- package/dist/src/generators/config-schema/generator.d.ts +2 -2
- package/dist/src/generators/config-schema/generator.js +5 -5
- package/dist/src/generators/config-schema/generator.mjs +5 -5
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +1 -1
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.d.mts +2 -2
- package/dist/src/generators/neutral-library/generator.d.ts +2 -2
- package/dist/src/generators/neutral-library/generator.js +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +5 -5
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- package/dist/src/generators/node-library/generator.d.mts +2 -2
- package/dist/src/generators/node-library/generator.d.ts +2 -2
- package/dist/src/generators/node-library/generator.js +5 -5
- package/dist/src/generators/node-library/generator.mjs +5 -5
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- package/dist/src/generators/preset/generator.d.mts +2 -2
- package/dist/src/generators/preset/generator.d.ts +2 -2
- package/dist/src/generators/preset/generator.js +5 -5
- package/dist/src/generators/preset/generator.mjs +5 -5
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +1 -1
- package/dist/src/plugins/rust/index.mjs +1 -1
- package/dist/src/plugins/typescript/index.d.mts +1 -1
- package/dist/src/plugins/typescript/index.d.ts +1 -1
- package/dist/src/plugins/typescript/index.mjs +1 -1
- package/dist/src/plugins/typescript/tsdown.d.mts +1 -1
- package/dist/src/plugins/typescript/tsdown.d.ts +1 -1
- package/dist/src/plugins/typescript/tsdown.mjs +1 -1
- package/dist/src/plugins/typescript/tsup.d.mts +1 -1
- package/dist/src/plugins/typescript/tsup.d.ts +1 -1
- package/dist/src/plugins/typescript/tsup.mjs +1 -1
- package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
- package/dist/src/release/index.js +6 -6
- package/dist/src/release/index.mjs +6 -6
- package/dist/src/release/js-version-actions.js +4 -4
- package/dist/src/release/js-version-actions.mjs +4 -4
- package/dist/src/release/rust-version-actions.js +5 -5
- package/dist/src/release/rust-version-actions.mjs +5 -5
- package/dist/src/types.d.mts +1 -1
- package/dist/src/types.d.ts +1 -1
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
- package/dist/src/utils/cargo.mjs +1 -1
- package/dist/src/utils/create-cli-options.mjs +1 -1
- package/dist/src/utils/get-project-configurations.mjs +1 -1
- package/dist/src/utils/index.js +4 -4
- package/dist/src/utils/index.mjs +4 -4
- package/dist/src/utils/lock-file.mjs +1 -1
- package/dist/src/utils/nx-json.mjs +1 -1
- package/dist/src/utils/package-helpers.js +4 -4
- package/dist/src/utils/package-helpers.mjs +4 -4
- package/dist/src/utils/plugin-helpers.mjs +1 -1
- package/dist/src/utils/project-tags.mjs +1 -1
- package/dist/src/utils/registry-helpers.mjs +1 -1
- package/dist/src/utils/typia-transform.mjs +1 -1
- package/dist/src/utils/versions.mjs +1 -1
- package/dist/{types-DIIZf_cX.d.ts → types-Bvfw-xMk.d.ts} +1 -1
- package/dist/{types-BlCH22NF.d.mts → types-DLXcfy35.d.mts} +1 -1
- package/package.json +11 -11
- package/dist/src/generators/browser-library/schema.d.ts +0 -122
- package/dist/src/generators/config-schema/schema.d.ts +0 -23
- package/dist/src/generators/init/schema.d.ts +0 -14
- package/dist/src/generators/neutral-library/schema.d.ts +0 -122
- package/dist/src/generators/neutral-library/schema.json +0 -116
- package/dist/src/generators/node-library/schema.d.ts +0 -122
- package/dist/src/generators/node-library/schema.json +0 -117
- package/dist/src/generators/preset/schema.d.ts +0 -101
- package/dist/src/generators/preset/schema.json +0 -96
|
@@ -344,22 +344,31 @@ var getStopwatch = (name) => {
|
|
|
344
344
|
);
|
|
345
345
|
};
|
|
346
346
|
};
|
|
347
|
-
var MAX_DEPTH =
|
|
347
|
+
var MAX_DEPTH = 10;
|
|
348
348
|
var formatLogMessage = (message, options = {}, depth = 0) => {
|
|
349
349
|
if (depth > MAX_DEPTH) {
|
|
350
350
|
return "<max depth>";
|
|
351
351
|
}
|
|
352
|
-
const prefix = _nullishCoalesce(options.prefix, () => ( "
|
|
352
|
+
const prefix = _nullishCoalesce(options.prefix, () => ( ""));
|
|
353
353
|
const skip = _nullishCoalesce(options.skip, () => ( []));
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
${
|
|
357
|
-
(
|
|
354
|
+
const sort = _nullishCoalesce(options.sort, () => ( true));
|
|
355
|
+
return typeof message === "undefined" || message === null ? "<empty>" : typeof message === "string" ? !message ? "<empty string>" : message : Array.isArray(message) ? `
|
|
356
|
+
${message.map(
|
|
357
|
+
(item, index) => ` ${prefix}> #${index} = ${formatLogMessage(
|
|
358
|
+
item,
|
|
359
|
+
{ prefix: `${prefix}--`, skip, sort },
|
|
360
|
+
depth + 1
|
|
361
|
+
)}`
|
|
362
|
+
).join("\n")}` : typeof message === "object" ? `
|
|
363
|
+
${Object.keys(message).filter((key) => !skip.includes(key)).sort(sort ? (a, b) => a.localeCompare(b) : void 0).map(
|
|
364
|
+
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
|
|
365
|
+
(key2) => !skip.includes(key2)
|
|
366
|
+
).length === 0 ? "{}" : formatLogMessage(
|
|
358
367
|
message[key],
|
|
359
|
-
{ prefix: `${prefix}
|
|
368
|
+
{ prefix: `${prefix}--`, skip, sort },
|
|
360
369
|
depth + 1
|
|
361
370
|
) : message[key]}`
|
|
362
|
-
).join("\n")}` : message;
|
|
371
|
+
).join("\n")}` : String(message);
|
|
363
372
|
};
|
|
364
373
|
var _isFunction = (value) => {
|
|
365
374
|
try {
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
} from "./chunk-QC5ON3X4.mjs";
|
|
8
8
|
import {
|
|
9
9
|
withRunGenerator
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GOCSQYEA.mjs";
|
|
11
11
|
import {
|
|
12
12
|
joinPaths
|
|
13
13
|
} from "./chunk-TBW5MCN6.mjs";
|
|
14
14
|
import {
|
|
15
15
|
__dirname
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-F5HQPVFD.mjs";
|
|
17
17
|
|
|
18
18
|
// src/generators/node-library/generator.ts
|
|
19
19
|
import {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-QC5ON3X4.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GOCSQYEA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__dirname
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F5HQPVFD.mjs";
|
|
11
11
|
|
|
12
12
|
// src/generators/preset/generator.ts
|
|
13
13
|
import {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3ZYXVFDI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TEYNJ3L6.mjs";
|
|
7
7
|
|
|
8
8
|
// src/executors/typia/executor.ts
|
|
9
9
|
import { removeSync } from "fs-extra";
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkKSL6QUB7js = require('./chunk-KSL6QUB7.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-clippy/executor.ts
|
|
10
10
|
async function cargoClippyExecutor(options, context) {
|
|
11
11
|
const command = _chunk32KQVUCFjs.buildCargoCommand.call(void 0, "clippy", options, context);
|
|
12
12
|
return await _chunk32KQVUCFjs.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkKSL6QUB7js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Clippy",
|
|
16
16
|
cargoClippyExecutor,
|
|
17
17
|
{
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunk5QE6QZLLjs = require('./chunk-5QE6QZLL.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/toml.ts
|
|
6
6
|
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
7
7
|
function parseCargoTomlWithTree(tree, projectRoot, projectName) {
|
|
8
8
|
const cargoTomlString = _optionalChain([tree, 'access', _ => _.read, 'call', _2 => _2(`${projectRoot}/Cargo.toml`), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
9
9
|
if (!cargoTomlString) {
|
|
10
|
-
|
|
10
|
+
_chunk5QE6QZLLjs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
|
|
11
11
|
throw new Error();
|
|
12
12
|
}
|
|
13
13
|
return parseCargoToml(cargoTomlString);
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
} from "./chunk-4VWDSVQJ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GOCSQYEA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
10
|
} from "./chunk-TBW5MCN6.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-F5HQPVFD.mjs";
|
|
14
14
|
|
|
15
15
|
// src/generators/browser-library/generator.ts
|
|
16
16
|
import {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk5QE6QZLLjs = require('./chunk-5QE6QZLL.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -760,7 +760,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
760
760
|
let config = result.config;
|
|
761
761
|
const configFile = result.configFile;
|
|
762
762
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
763
|
-
|
|
763
|
+
_chunk5QE6QZLLjs.writeTrace.call(void 0,
|
|
764
764
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
765
765
|
{
|
|
766
766
|
logLevel: "all"
|
|
@@ -776,7 +776,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
776
776
|
for (const result2 of results) {
|
|
777
777
|
if (_optionalChain([result2, 'optionalAccess', _9 => _9.config]) && _optionalChain([result2, 'optionalAccess', _10 => _10.configFile]) && Object.keys(result2.config).length > 0) {
|
|
778
778
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
779
|
-
|
|
779
|
+
_chunk5QE6QZLLjs.writeTrace.call(void 0,
|
|
780
780
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
781
781
|
{
|
|
782
782
|
logLevel: "all"
|
|
@@ -888,7 +888,7 @@ var getConfigEnv = () => {
|
|
|
888
888
|
},
|
|
889
889
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
890
890
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
891
|
-
) ?
|
|
891
|
+
) ? _chunk5QE6QZLLjs.getLogLevelLabel.call(void 0,
|
|
892
892
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
893
893
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
894
894
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -1255,9 +1255,9 @@ var setConfigEnv = (config) => {
|
|
|
1255
1255
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1256
1256
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1257
1257
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1258
|
-
|
|
1258
|
+
_chunk5QE6QZLLjs.getLogLevel.call(void 0, config.logLevel) >= _chunk5QE6QZLLjs.LogLevel.DEBUG ? true : false
|
|
1259
1259
|
);
|
|
1260
|
-
process.env.RUST_BACKTRACE =
|
|
1260
|
+
process.env.RUST_BACKTRACE = _chunk5QE6QZLLjs.getLogLevel.call(void 0, config.logLevel) >= _chunk5QE6QZLLjs.LogLevel.DEBUG ? "full" : "none";
|
|
1261
1261
|
}
|
|
1262
1262
|
if (config.skipConfigLogging !== void 0) {
|
|
1263
1263
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1405,7 +1405,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1405
1405
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1406
1406
|
if (!configFile) {
|
|
1407
1407
|
if (!skipLogs) {
|
|
1408
|
-
|
|
1408
|
+
_chunk5QE6QZLLjs.writeWarning.call(void 0,
|
|
1409
1409
|
"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",
|
|
1410
1410
|
{ logLevel: "all" }
|
|
1411
1411
|
);
|
|
@@ -1436,7 +1436,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1436
1436
|
throw new Error(
|
|
1437
1437
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _35 => _35.message]) ? `: ${error.message}` : ""}
|
|
1438
1438
|
|
|
1439
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1439
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunk5QE6QZLLjs.formatLogMessage.call(void 0,
|
|
1440
1440
|
configInput
|
|
1441
1441
|
)}`,
|
|
1442
1442
|
{
|
|
@@ -1481,9 +1481,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1481
1481
|
);
|
|
1482
1482
|
setConfigEnv(config);
|
|
1483
1483
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1484
|
-
|
|
1484
|
+
_chunk5QE6QZLLjs.writeTrace.call(void 0,
|
|
1485
1485
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1486
|
-
${
|
|
1486
|
+
${_chunk5QE6QZLLjs.formatLogMessage.call(void 0, config)}`,
|
|
1487
1487
|
config
|
|
1488
1488
|
);
|
|
1489
1489
|
}
|
|
@@ -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 _chunkJ2TZAZ76js = require('./chunk-J2TZAZ76.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCHHDG2MXjs = require('./chunk-CHHDG2MX.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk5QE6QZLLjs = require('./chunk-5QE6QZLL.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
|
+
_chunk5QE6QZLLjs.writeInfo.call(void 0,
|
|
22
22
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
23
23
|
config
|
|
24
24
|
);
|
|
25
|
-
|
|
25
|
+
_chunk5QE6QZLLjs.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(_chunkCHHDG2MXjs.workspaceConfigSchema, {
|
|
30
30
|
target: "draft-7",
|
|
31
|
-
metadata:
|
|
31
|
+
metadata: _chunkCHHDG2MXjs.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
|
+
_chunk5QE6QZLLjs.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
|
+
_chunk5QE6QZLLjs.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
|
+
_chunk5QE6QZLLjs.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 = _chunkJ2TZAZ76js.withRunGenerator.call(void 0,
|
|
61
61
|
"Configuration Schema Creator",
|
|
62
62
|
configSchemaGeneratorFn,
|
|
63
63
|
{
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
parseCargoToml,
|
|
6
6
|
parseCargoTomlWithTree,
|
|
7
7
|
stringifyCargoToml
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OAST6ITX.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getWorkspaceConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HU3JD26C.mjs";
|
|
12
12
|
|
|
13
13
|
// src/release/rust-version-actions.ts
|
|
14
14
|
import {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
1
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__eeb753f636b95406bf3db26293131dbb/node_modules/tsup/assets/esm_shims.js
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import path from "path";
|
|
4
4
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkKSL6QUB7js = require('./chunk-KSL6QUB7.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-build/executor.ts
|
|
10
10
|
async function cargoBuildExecutor(options, context) {
|
|
11
11
|
const command = _chunk32KQVUCFjs.buildCargoCommand.call(void 0, "build", options, context);
|
|
12
12
|
return await _chunk32KQVUCFjs.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkKSL6QUB7js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Build",
|
|
16
16
|
cargoBuildExecutor,
|
|
17
17
|
{
|
|
@@ -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 _chunkBE6YVKCOjs = require('./chunk-BE6YVKCO.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 = _chunkBE6YVKCOjs.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 {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-2QMGYIOO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HU3JD26C.mjs";
|
|
8
8
|
import {
|
|
9
9
|
brandIcon,
|
|
10
10
|
getStopwatch,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
writeInfo,
|
|
15
15
|
writeSuccess,
|
|
16
16
|
writeTrace
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TEYNJ3L6.mjs";
|
|
18
18
|
import {
|
|
19
19
|
findWorkspaceRoot
|
|
20
20
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
addWorkspacePackageJsonFields,
|
|
6
6
|
copyAssets,
|
|
7
7
|
getEnv
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HLULZNA6.mjs";
|
|
9
9
|
import {
|
|
10
10
|
withRunExecutor
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3ZYXVFDI.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getWorkspaceConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HU3JD26C.mjs";
|
|
15
15
|
import {
|
|
16
16
|
brandIcon,
|
|
17
17
|
formatLogMessage,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
writeInfo,
|
|
23
23
|
writeSuccess,
|
|
24
24
|
writeWarning
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TEYNJ3L6.mjs";
|
|
26
26
|
import {
|
|
27
27
|
joinPaths
|
|
28
28
|
} from "./chunk-TBW5MCN6.mjs";
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkKSL6QUB7js = require('./chunk-KSL6QUB7.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-check/executor.ts
|
|
10
10
|
async function cargoCheckExecutor(options, context) {
|
|
11
11
|
const command = _chunk32KQVUCFjs.buildCargoCommand.call(void 0, "check", options, context);
|
|
12
12
|
return await _chunk32KQVUCFjs.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkKSL6QUB7js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Check",
|
|
16
16
|
cargoCheckExecutor,
|
|
17
17
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBE6YVKCOjs = require('./chunk-BE6YVKCO.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ var getPackageInfo = (project) => {
|
|
|
31
31
|
) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))) {
|
|
32
32
|
return {
|
|
33
33
|
type: "Cargo.toml",
|
|
34
|
-
content:
|
|
34
|
+
content: _chunkBE6YVKCOjs.parseCargoToml.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
|
|
35
35
|
};
|
|
36
36
|
} else if (_chunkTAP26ZJQjs.isEqualProjectTag.call(void 0,
|
|
37
37
|
project,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkSZWM7COVjs = require('./chunk-SZWM7COV.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJ2TZAZ76js = require('./chunk-J2TZAZ76.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 = _chunkJ2TZAZ76js.withRunGenerator.call(void 0,
|
|
243
243
|
"Storm Workspace Preset Generator",
|
|
244
244
|
presetGeneratorFn
|
|
245
245
|
);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHXQRGLIIjs = require('./chunk-HXQRGLII.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCHHDG2MXjs = require('./chunk-CHHDG2MX.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ var _chunkZJ75AYXEjs = require('./chunk-ZJ75AYXE.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk5QE6QZLLjs = require('./chunk-5QE6QZLL.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -23,33 +23,33 @@ var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
|
23
23
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
24
24
|
skipReadingConfig: false
|
|
25
25
|
}) => async (tree, _options) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunk5QE6QZLLjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config;
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
`${
|
|
30
|
+
_chunk5QE6QZLLjs.writeInfo.call(void 0,
|
|
31
|
+
`${_chunk5QE6QZLLjs.brandIcon.call(void 0, config)} Running the ${name} generator...
|
|
32
32
|
|
|
33
33
|
`,
|
|
34
34
|
config
|
|
35
35
|
);
|
|
36
36
|
const workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, );
|
|
37
37
|
if (!generatorOptions.skipReadingConfig) {
|
|
38
|
-
|
|
38
|
+
_chunk5QE6QZLLjs.writeDebug.call(void 0,
|
|
39
39
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
40
40
|
- workspaceRoot: ${workspaceRoot}`,
|
|
41
41
|
config
|
|
42
42
|
);
|
|
43
|
-
config = await
|
|
43
|
+
config = await _chunkCHHDG2MXjs.getConfig.call(void 0, workspaceRoot);
|
|
44
44
|
}
|
|
45
45
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
46
|
-
|
|
46
|
+
_chunk5QE6QZLLjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
47
47
|
options = await Promise.resolve(
|
|
48
48
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
49
49
|
);
|
|
50
|
-
|
|
50
|
+
_chunk5QE6QZLLjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
_chunk5QE6QZLLjs.writeTrace.call(void 0,
|
|
53
53
|
`Generator schema options \u2699\uFE0F
|
|
54
54
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
55
55
|
config
|
|
@@ -60,11 +60,11 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
60
60
|
_chunkHXQRGLIIjs.applyWorkspaceBaseTokens
|
|
61
61
|
);
|
|
62
62
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
63
|
-
|
|
63
|
+
_chunk5QE6QZLLjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
64
64
|
await Promise.resolve(
|
|
65
65
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
66
66
|
);
|
|
67
|
-
|
|
67
|
+
_chunk5QE6QZLLjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
68
68
|
}
|
|
69
69
|
const result = await Promise.resolve(
|
|
70
70
|
generatorFn(tree, tokenized, config)
|
|
@@ -79,21 +79,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
82
|
-
|
|
82
|
+
_chunk5QE6QZLLjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
83
83
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
84
|
-
|
|
84
|
+
_chunk5QE6QZLLjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
85
85
|
}
|
|
86
86
|
return () => {
|
|
87
|
-
|
|
87
|
+
_chunk5QE6QZLLjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
88
88
|
`, config);
|
|
89
89
|
};
|
|
90
90
|
} catch (error) {
|
|
91
91
|
return () => {
|
|
92
|
-
|
|
92
|
+
_chunk5QE6QZLLjs.writeFatal.call(void 0,
|
|
93
93
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
94
94
|
config
|
|
95
95
|
);
|
|
96
|
-
|
|
96
|
+
_chunk5QE6QZLLjs.writeError.call(void 0,
|
|
97
97
|
`An exception was thrown in the generator's process
|
|
98
98
|
- Details: ${error.message}
|
|
99
99
|
- Stacktrace: ${error.stack}`,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunk57OGFZNBjs = require('./chunk-57OGFZNB.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJ2TZAZ76js = require('./chunk-J2TZAZ76.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -82,7 +82,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
82
82
|
await _devkit.formatFiles.call(void 0, tree);
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
85
|
-
var generator_default =
|
|
85
|
+
var generator_default = _chunkJ2TZAZ76js.withRunGenerator.call(void 0,
|
|
86
86
|
"TypeScript Library Creator (Browser Platform)",
|
|
87
87
|
browserLibraryGeneratorFn,
|
|
88
88
|
{
|