@storm-software/workspace-tools 1.233.0 → 1.233.2
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 +25 -0
- package/README.md +1 -1
- package/dist/{chunk-OCXXIUSC.mjs → chunk-2DNLATEG.mjs} +1 -30
- package/dist/{chunk-MA2QNKZ7.js → chunk-2E2DXYRF.js} +2 -2
- package/dist/{chunk-LEHZZU32.js → chunk-2NYBFBUU.js} +2 -2
- package/dist/{chunk-T5XCHBCB.mjs → chunk-3GQ6H7GF.mjs} +3 -3
- package/dist/{chunk-GVBCN2FA.mjs → chunk-4G35AYIJ.mjs} +1 -1
- package/dist/{chunk-UPMKBKEN.js → chunk-5Z7CCIIJ.js} +2 -2
- package/dist/{chunk-ZMA37UYA.js → chunk-7PETCK66.js} +41 -41
- package/dist/{chunk-DM2FMT3G.mjs → chunk-7TEC757Y.mjs} +0 -1
- package/dist/{chunk-QA6M5DEJ.js → chunk-A3SB76KG.js} +2 -2
- package/dist/{chunk-NHSJQ3KY.mjs → chunk-AKLDSJTD.mjs} +1 -1
- package/dist/{chunk-HIBDVUQ5.js → chunk-BANJXE74.js} +2 -2
- package/dist/{chunk-5FCVQVIS.mjs → chunk-BARR5D5N.mjs} +1 -1
- package/dist/{chunk-5KPWW65X.mjs → chunk-CNX755OY.mjs} +1 -1
- package/dist/{chunk-EECNVIFZ.js → chunk-DOQEFB3U.js} +5 -5
- package/dist/{chunk-FHRBHQ5D.js → chunk-ENBOBX3C.js} +2 -2
- package/dist/{chunk-AX4OFOSN.js → chunk-FE52EM76.js} +8 -37
- package/dist/{chunk-VOPIMPWA.js → chunk-FQCHDI2P.js} +11 -11
- package/dist/{chunk-OJV4NKCZ.js → chunk-IIMNDUXX.js} +9 -9
- package/dist/{chunk-DNUDJEZX.mjs → chunk-IVRCEWW4.mjs} +2 -2
- package/dist/{chunk-SZJOJ773.mjs → chunk-KZGWRL4P.mjs} +1 -1
- package/dist/{chunk-4EO5ZWLS.js → chunk-MVCUW6FQ.js} +31 -31
- package/dist/{chunk-OFSUFHFM.mjs → chunk-N4J73OER.mjs} +2 -2
- package/dist/{chunk-ZYC7FHCD.js → chunk-OH2QVCID.js} +5 -5
- package/dist/{chunk-A4DWQQ6J.mjs → chunk-PKR4QUWJ.mjs} +1 -1
- package/dist/{chunk-OE5KYONM.mjs → chunk-PSMBZ5DR.mjs} +1 -1
- package/dist/{chunk-FZ3N3UJ5.mjs → chunk-QQHYWAVX.mjs} +3 -3
- package/dist/{chunk-SQHYP2JD.mjs → chunk-THMXFMSK.mjs} +1 -1
- package/dist/{chunk-UA7PFIEF.mjs → chunk-UROGF3KF.mjs} +1 -1
- package/dist/{chunk-5Q3LI7CF.js → chunk-UW6T77HF.js} +15 -15
- package/dist/{chunk-T2CG5RNT.js → chunk-VQMSXER7.js} +2 -2
- package/dist/{chunk-QCAF5WDF.mjs → chunk-VVHGKFCB.mjs} +2 -2
- package/dist/chunk-VWJEKC3P.mjs +83 -0
- package/dist/{chunk-WKYE64AL.mjs → chunk-WWSP3KEN.mjs} +1 -1
- package/dist/{chunk-FDI6QWNH.mjs → chunk-XOIDDNCA.mjs} +1 -1
- package/dist/chunk-XWYXKDH2.js +83 -0
- package/dist/{chunk-L2KYX6WC.js → chunk-Y2LDGJCA.js} +2 -2
- package/dist/{chunk-2AQPTJLC.js → chunk-YFIHF222.js} +2 -2
- package/dist/{chunk-CDOWHRVE.js → chunk-YO7MVS4A.js} +17 -17
- package/dist/{chunk-GRBZKMJI.js → chunk-ZJXBN32W.js} +1 -2
- package/dist/{chunk-QTW54PBD.mjs → chunk-ZPQJ7P6C.mjs} +1 -1
- package/dist/executors.js +16 -16
- package/dist/executors.mjs +21 -21
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +8 -8
- package/dist/index.js +23 -23
- package/dist/index.mjs +28 -28
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/base/base-generator.js +3 -3
- package/dist/src/base/base-generator.mjs +2 -2
- package/dist/src/base/index.js +4 -4
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/executors/cargo-build/executor.js +4 -4
- package/dist/src/executors/cargo-build/executor.mjs +3 -3
- package/dist/src/executors/cargo-check/executor.js +4 -4
- package/dist/src/executors/cargo-check/executor.mjs +3 -3
- package/dist/src/executors/cargo-clippy/executor.js +4 -4
- package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
- package/dist/src/executors/cargo-doc/executor.js +4 -4
- package/dist/src/executors/cargo-doc/executor.mjs +3 -3
- package/dist/src/executors/cargo-format/executor.js +4 -4
- package/dist/src/executors/cargo-format/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.js +5 -5
- package/dist/src/executors/clean-package/executor.mjs +2 -2
- package/dist/src/executors/esbuild/executor.js +5 -5
- package/dist/src/executors/esbuild/executor.mjs +4 -4
- package/dist/src/executors/size-limit/executor.js +4 -4
- package/dist/src/executors/size-limit/executor.mjs +3 -3
- package/dist/src/executors/tsdown/executor.js +5 -5
- package/dist/src/executors/tsdown/executor.mjs +4 -4
- package/dist/src/executors/typia/executor.js +4 -4
- package/dist/src/executors/typia/executor.mjs +3 -3
- package/dist/src/executors/unbuild/executor.js +4 -5
- package/dist/src/executors/unbuild/executor.mjs +3 -4
- package/dist/src/generators/browser-library/generator.js +4 -4
- package/dist/src/generators/browser-library/generator.mjs +3 -3
- package/dist/src/generators/config-schema/generator.js +4 -4
- package/dist/src/generators/config-schema/generator.mjs +3 -3
- package/dist/src/generators/neutral-library/generator.js +4 -4
- package/dist/src/generators/neutral-library/generator.mjs +3 -3
- package/dist/src/generators/node-library/generator.js +4 -4
- package/dist/src/generators/node-library/generator.mjs +3 -3
- package/dist/src/generators/preset/generator.js +4 -4
- package/dist/src/generators/preset/generator.mjs +3 -3
- package/dist/src/generators/release-version/generator.js +3 -3
- package/dist/src/generators/release-version/generator.mjs +2 -2
- package/package.json +6 -5
- package/dist/chunk-JHP7QOI4.js +0 -507
- package/dist/chunk-TSTK2BD6.mjs +0 -507
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZJXBN32Wjs = require('./chunk-ZJXBN32W.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -38,7 +38,7 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
|
38
38
|
var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot) => {
|
|
39
39
|
let rootDir = workspaceRoot;
|
|
40
40
|
if (!rootDir) {
|
|
41
|
-
const config = await
|
|
41
|
+
const config = await _chunkZJXBN32Wjs.loadStormConfig.call(void 0, );
|
|
42
42
|
rootDir = config.workspaceRoot;
|
|
43
43
|
}
|
|
44
44
|
const nxJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, rootDir, "nx.json");
|
|
@@ -103,13 +103,13 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
103
103
|
projectsConfigurations,
|
|
104
104
|
nxJsonConfiguration: nxJson,
|
|
105
105
|
cwd: config.workspaceRoot,
|
|
106
|
-
isVerbose:
|
|
106
|
+
isVerbose: _chunkZJXBN32Wjs.isVerbose.call(void 0, config.logLevel)
|
|
107
107
|
});
|
|
108
108
|
if (!result.success) {
|
|
109
109
|
throw new Error("The Build process failed trying to copy assets");
|
|
110
110
|
}
|
|
111
111
|
if (includeSrc === true) {
|
|
112
|
-
|
|
112
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXCSSYTCUjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
113
113
|
const files = await _glob.glob.call(void 0, [
|
|
114
114
|
_chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
115
115
|
_chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
@@ -147,7 +147,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
if (localPackages.length > 0) {
|
|
150
|
-
|
|
150
|
+
_chunkZJXBN32Wjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
151
151
|
packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
|
|
152
152
|
if (!ret[localPackage.name]) {
|
|
153
153
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
@@ -169,7 +169,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
169
169
|
return ret;
|
|
170
170
|
}, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
|
|
171
171
|
} else {
|
|
172
|
-
|
|
172
|
+
_chunkZJXBN32Wjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
173
173
|
}
|
|
174
174
|
return packageJson;
|
|
175
175
|
}, "addPackageDependencies");
|
|
@@ -238,34 +238,6 @@ var addPackageJsonExport = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
240
|
}, "addPackageJsonExport");
|
|
241
|
-
var addPackageJsonExports = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (sourceRoot, packageJson) => {
|
|
242
|
-
packageJson.exports ??= {};
|
|
243
|
-
const files = await new (0, _glob.Glob)("**/*.{ts,tsx}", {
|
|
244
|
-
absolute: false,
|
|
245
|
-
cwd: sourceRoot,
|
|
246
|
-
root: sourceRoot
|
|
247
|
-
}).walk();
|
|
248
|
-
files.forEach((file) => {
|
|
249
|
-
addPackageJsonExport(file, packageJson.type, sourceRoot);
|
|
250
|
-
const split = file.split(".");
|
|
251
|
-
split.pop();
|
|
252
|
-
const entry = split.join(".").replaceAll("\\", "/");
|
|
253
|
-
packageJson.exports[`./${entry}`] ??= addPackageJsonExport(entry, packageJson.type, sourceRoot);
|
|
254
|
-
});
|
|
255
|
-
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
256
|
-
packageJson.module = packageJson.type === "module" ? "./dist/index.js" : "./dist/index.mjs";
|
|
257
|
-
packageJson.types = "./dist/index.d.ts";
|
|
258
|
-
packageJson.exports ??= {};
|
|
259
|
-
packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
|
|
260
|
-
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
261
|
-
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
262
|
-
}
|
|
263
|
-
return ret;
|
|
264
|
-
}, packageJson.exports);
|
|
265
|
-
packageJson.exports["./package.json"] ??= "./package.json";
|
|
266
|
-
packageJson.exports["."] = _nullishCoalesce(packageJson.exports["."], () => ( addPackageJsonExport("index", packageJson.type, sourceRoot)));
|
|
267
|
-
return packageJson;
|
|
268
|
-
}, "addPackageJsonExports");
|
|
269
241
|
|
|
270
242
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
271
243
|
|
|
@@ -293,7 +265,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
293
265
|
results.push(...files.reduce((ret, filePath) => {
|
|
294
266
|
const result = _chunkXCSSYTCUjs.correctPaths.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, projectRoot), ""));
|
|
295
267
|
if (result) {
|
|
296
|
-
|
|
268
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
297
269
|
if (!results.includes(result)) {
|
|
298
270
|
results.push(result);
|
|
299
271
|
}
|
|
@@ -369,5 +341,4 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
369
341
|
|
|
370
342
|
|
|
371
343
|
|
|
372
|
-
|
|
373
|
-
exports.DEFAULT_COMPILED_BANNER = DEFAULT_COMPILED_BANNER; exports.DEFAULT_TARGET = DEFAULT_TARGET; exports.copyAssets = copyAssets; exports.addPackageDependencies = addPackageDependencies; exports.addWorkspacePackageJsonFields = addWorkspacePackageJsonFields; exports.addPackageJsonExport = addPackageJsonExport; exports.addPackageJsonExports = addPackageJsonExports; exports.getEntryPoints = getEntryPoints; exports.getEnv = getEnv; exports.getOutExtension = getOutExtension;
|
|
344
|
+
exports.DEFAULT_COMPILED_BANNER = DEFAULT_COMPILED_BANNER; exports.DEFAULT_TARGET = DEFAULT_TARGET; exports.copyAssets = copyAssets; exports.addPackageDependencies = addPackageDependencies; exports.addWorkspacePackageJsonFields = addWorkspacePackageJsonFields; exports.addPackageJsonExport = addPackageJsonExport; exports.getEntryPoints = getEntryPoints; exports.getEnv = getEnv; exports.getOutExtension = getOutExtension;
|
|
@@ -13,7 +13,7 @@ var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkZJXBN32Wjs = require('./chunk-ZJXBN32W.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -248,16 +248,16 @@ var _version = require('nx/src/command-line/release/version');
|
|
|
248
248
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
249
249
|
var _semver3 = require('semver');
|
|
250
250
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
251
|
-
|
|
251
|
+
_chunkZJXBN32Wjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
252
252
|
|
|
253
253
|
`, config);
|
|
254
|
-
const stopwatch =
|
|
254
|
+
const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
255
255
|
try {
|
|
256
256
|
const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
|
|
257
|
-
|
|
257
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
258
258
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
259
|
-
config = await
|
|
260
|
-
|
|
259
|
+
config = await _chunkZJXBN32Wjs.loadStormConfig.call(void 0, workspaceRoot);
|
|
260
|
+
_chunkZJXBN32Wjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
261
261
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
262
262
|
const versionData = {};
|
|
263
263
|
if (options.specifier) {
|
|
@@ -307,9 +307,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
307
307
|
}
|
|
308
308
|
const workspaceRelativePackagePath = _path.relative.call(void 0, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, ))), tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath);
|
|
309
309
|
const log = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (msg) => {
|
|
310
|
-
|
|
310
|
+
_chunkZJXBN32Wjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
311
311
|
}, "log");
|
|
312
|
-
|
|
312
|
+
_chunkZJXBN32Wjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
313
313
|
let packageName;
|
|
314
314
|
let currentVersionFromDisk;
|
|
315
315
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -583,7 +583,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
await _devkit.formatFiles.call(void 0, tree);
|
|
586
|
-
|
|
586
|
+
_chunkZJXBN32Wjs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
|
|
587
587
|
`, config);
|
|
588
588
|
return {
|
|
589
589
|
data: versionData,
|
|
@@ -617,8 +617,8 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
617
617
|
}, "callback")
|
|
618
618
|
};
|
|
619
619
|
} catch (error) {
|
|
620
|
-
|
|
621
|
-
|
|
620
|
+
_chunkZJXBN32Wjs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
|
|
621
|
+
_chunkZJXBN32Wjs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
|
|
622
622
|
- Details: ${error.message}
|
|
623
623
|
- Stacktrace: ${error.stack}`, config);
|
|
624
624
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUW6T77HFjs = require('./chunk-UW6T77HF.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkZJXBN32Wjs = require('./chunk-ZJXBN32W.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -18,25 +18,25 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
20
20
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
21
|
+
_chunkZJXBN32Wjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
|
|
22
|
+
_chunkZJXBN32Wjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
|
|
23
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkZJXBN32Wjs.StormConfigSchema, {
|
|
24
24
|
name: "StormWorkspaceConfiguration"
|
|
25
25
|
});
|
|
26
|
-
|
|
26
|
+
_chunkZJXBN32Wjs.writeTrace.call(void 0, jsonSchema, config);
|
|
27
27
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./");
|
|
28
|
-
|
|
28
|
+
_chunkZJXBN32Wjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
29
29
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
30
30
|
spaces: 2
|
|
31
31
|
});
|
|
32
32
|
await _devkit.formatFiles.call(void 0, tree);
|
|
33
|
-
|
|
33
|
+
_chunkZJXBN32Wjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
|
|
34
34
|
return {
|
|
35
35
|
success: true
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
_chunk3GQAWCBQjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
|
|
39
|
-
var generator_default =
|
|
39
|
+
var generator_default = _chunkUW6T77HFjs.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
|
|
40
40
|
hooks: {
|
|
41
41
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
42
42
|
options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkFE52EM76js = require('./chunk-FE52EM76.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkYO7MVS4Ajs = require('./chunk-YO7MVS4A.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@ var _chunkCDOWHRVEjs = require('./chunk-CDOWHRVE.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkZJXBN32Wjs = require('./chunk-ZJXBN32W.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
|
|
@@ -37,8 +37,8 @@ var _tsdown = require('tsdown');
|
|
|
37
37
|
// ../tsdown/src/clean.ts
|
|
38
38
|
|
|
39
39
|
async function clean(name = "ESBuild", directory, config) {
|
|
40
|
-
|
|
41
|
-
const stopwatch =
|
|
40
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
41
|
+
const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
42
42
|
await _node.hfs.deleteAll(directory);
|
|
43
43
|
stopwatch();
|
|
44
44
|
}
|
|
@@ -73,9 +73,9 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
73
73
|
if (!workspaceRoot) {
|
|
74
74
|
throw new Error("Cannot find Nx workspace root");
|
|
75
75
|
}
|
|
76
|
-
const config = await
|
|
77
|
-
|
|
78
|
-
const stopwatch =
|
|
76
|
+
const config = await _chunkZJXBN32Wjs.loadStormConfig.call(void 0, workspaceRoot.dir);
|
|
77
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
78
|
+
const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, "Build options resolution");
|
|
79
79
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
80
80
|
exitOnError: true
|
|
81
81
|
});
|
|
@@ -91,19 +91,19 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
91
91
|
}
|
|
92
92
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
93
93
|
options.name ??= `${projectName}-${options.format}`;
|
|
94
|
-
options.target ??=
|
|
94
|
+
options.target ??= _chunkFE52EM76js.DEFAULT_TARGET;
|
|
95
95
|
const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
96
96
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
97
97
|
throw new Error("Cannot find package.json configuration");
|
|
98
98
|
}
|
|
99
|
-
const env =
|
|
99
|
+
const env = _chunkFE52EM76js.getEnv.call(void 0, "tsdown", options);
|
|
100
100
|
const result = {
|
|
101
101
|
...options,
|
|
102
102
|
config,
|
|
103
103
|
...userOptions,
|
|
104
104
|
tsconfig: _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
105
105
|
format: options.format || "cjs",
|
|
106
|
-
entryPoints: await
|
|
106
|
+
entryPoints: await _chunkFE52EM76js.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
107
107
|
"./src/index.ts"
|
|
108
108
|
], userOptions.emitOnAll),
|
|
109
109
|
outdir: userOptions.outputPath || _chunkXCSSYTCUjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
@@ -114,7 +114,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
114
114
|
projectGraph,
|
|
115
115
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
116
116
|
minify: userOptions.minify || !userOptions.debug,
|
|
117
|
-
verbose: userOptions.verbose ||
|
|
117
|
+
verbose: userOptions.verbose || _chunkZJXBN32Wjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
118
118
|
includeSrc: userOptions.includeSrc === true,
|
|
119
119
|
metafile: userOptions.metafile !== false,
|
|
120
120
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -149,8 +149,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
149
149
|
}, "resolveOptions");
|
|
150
150
|
async function generatePackageJson(options) {
|
|
151
151
|
if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
152
|
-
|
|
153
|
-
const stopwatch =
|
|
152
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
153
|
+
const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, "Write package.json file");
|
|
154
154
|
const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
155
155
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
156
156
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -159,11 +159,11 @@ async function generatePackageJson(options) {
|
|
|
159
159
|
if (!packageJson) {
|
|
160
160
|
throw new Error("Cannot find package.json configuration file");
|
|
161
161
|
}
|
|
162
|
-
packageJson = await
|
|
163
|
-
packageJson = await
|
|
162
|
+
packageJson = await _chunkFE52EM76js.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
|
|
163
|
+
packageJson = await _chunkFE52EM76js.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
|
|
164
164
|
packageJson.exports ??= {};
|
|
165
165
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
166
|
-
packageJson.exports["."] ??=
|
|
166
|
+
packageJson.exports["."] ??= _chunkFE52EM76js.addPackageJsonExport.call(void 0, "index", packageJson.type, options.sourceRoot);
|
|
167
167
|
let entryPoints = [
|
|
168
168
|
{
|
|
169
169
|
in: "./src/index.ts",
|
|
@@ -181,7 +181,7 @@ async function generatePackageJson(options) {
|
|
|
181
181
|
const split = entryPoint.out.split(".");
|
|
182
182
|
split.pop();
|
|
183
183
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
184
|
-
packageJson.exports[`./${entry}`] ??=
|
|
184
|
+
packageJson.exports[`./${entry}`] ??= _chunkFE52EM76js.addPackageJsonExport.call(void 0, entry, packageJson.type, options.sourceRoot);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
@@ -200,8 +200,8 @@ async function generatePackageJson(options) {
|
|
|
200
200
|
}
|
|
201
201
|
_chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
202
202
|
async function executeTSDown(options) {
|
|
203
|
-
|
|
204
|
-
const stopwatch =
|
|
203
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
|
|
204
|
+
const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
205
205
|
await _tsdown.build.call(void 0, {
|
|
206
206
|
...options,
|
|
207
207
|
entry: options.entryPoints,
|
|
@@ -213,15 +213,15 @@ async function executeTSDown(options) {
|
|
|
213
213
|
}
|
|
214
214
|
_chunk3GQAWCBQjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
215
215
|
async function copyBuildAssets(options) {
|
|
216
|
-
|
|
217
|
-
const stopwatch =
|
|
218
|
-
await
|
|
216
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
217
|
+
const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
218
|
+
await _chunkFE52EM76js.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
|
|
219
219
|
stopwatch();
|
|
220
220
|
return options;
|
|
221
221
|
}
|
|
222
222
|
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
223
223
|
async function reportResults(options) {
|
|
224
|
-
|
|
224
|
+
_chunkZJXBN32Wjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
225
225
|
}
|
|
226
226
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
227
227
|
async function cleanOutputPath(options) {
|
|
@@ -232,8 +232,8 @@ async function cleanOutputPath(options) {
|
|
|
232
232
|
}
|
|
233
233
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
234
234
|
async function build(options) {
|
|
235
|
-
|
|
236
|
-
const stopwatch =
|
|
235
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
236
|
+
const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
237
237
|
try {
|
|
238
238
|
const opts = Array.isArray(options) ? options : [
|
|
239
239
|
options
|
|
@@ -251,11 +251,11 @@ async function build(options) {
|
|
|
251
251
|
await reportResults(opt);
|
|
252
252
|
}));
|
|
253
253
|
} else {
|
|
254
|
-
|
|
254
|
+
_chunkZJXBN32Wjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
|
|
255
255
|
}
|
|
256
|
-
|
|
256
|
+
_chunkZJXBN32Wjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
257
257
|
} catch (error) {
|
|
258
|
-
|
|
258
|
+
_chunkZJXBN32Wjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
259
259
|
throw error;
|
|
260
260
|
} finally {
|
|
261
261
|
stopwatch();
|
|
@@ -265,7 +265,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, build, "build");
|
|
|
265
265
|
|
|
266
266
|
// src/executors/tsdown/executor.ts
|
|
267
267
|
async function tsdownExecutorFn(options, context, config) {
|
|
268
|
-
|
|
268
|
+
_chunkZJXBN32Wjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
|
|
269
269
|
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])) {
|
|
270
270
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
271
271
|
}
|
|
@@ -282,7 +282,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
284
|
_chunk3GQAWCBQjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
|
|
285
|
-
var executor_default =
|
|
285
|
+
var executor_default = _chunkYO7MVS4Ajs.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
|
|
286
286
|
skipReadingConfig: false,
|
|
287
287
|
hooks: {
|
|
288
288
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkYO7MVS4Ajs = require('./chunk-YO7MVS4A.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZJXBN32Wjs = require('./chunk-ZJXBN32W.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -18,7 +18,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
18
18
|
if (!_optionalChain([context, 'optionalAccess', _ => _.projectName]) || !_optionalChain([context, 'access', _2 => _2.projectsConfigurations, 'optionalAccess', _3 => _3.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
19
19
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
_chunkZJXBN32Wjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
22
22
|
_sizelimit2.default.call(void 0, [
|
|
23
23
|
_file2.default,
|
|
24
24
|
_esbuild2.default,
|
|
@@ -26,14 +26,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
26
26
|
], {
|
|
27
27
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")), "src")))
|
|
28
28
|
}).then((result) => {
|
|
29
|
-
|
|
29
|
+
_chunkZJXBN32Wjs.writeInfo.call(void 0, `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
30
30
|
});
|
|
31
31
|
return {
|
|
32
32
|
success: true
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
_chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunkYO7MVS4Ajs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
|
|
37
37
|
skipReadingConfig: false,
|
|
38
38
|
hooks: {
|
|
39
39
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
copyAssets,
|
|
7
7
|
getEntryPoints,
|
|
8
8
|
getEnv
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2DNLATEG.mjs";
|
|
10
10
|
import {
|
|
11
11
|
withRunExecutor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4G35AYIJ.mjs";
|
|
13
13
|
import {
|
|
14
14
|
getStopwatch,
|
|
15
15
|
isVerbose,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
writeInfo,
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7TEC757Y.mjs";
|
|
23
23
|
import {
|
|
24
24
|
joinPaths
|
|
25
25
|
} from "./chunk-PVTEDLBL.mjs";
|
|
@@ -11,7 +11,7 @@ var _chunk5CPYNJT2js = require('./chunk-5CPYNJT2.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkZJXBN32Wjs = require('./chunk-ZJXBN32W.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -23,34 +23,34 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
23
23
|
var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
24
24
|
skipReadingConfig: false
|
|
25
25
|
}) => async (tree, _options) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config;
|
|
29
29
|
try {
|
|
30
|
-
|
|
30
|
+
_chunkZJXBN32Wjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
31
31
|
|
|
32
32
|
`, config);
|
|
33
33
|
const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
|
|
34
34
|
if (!generatorOptions.skipReadingConfig) {
|
|
35
|
-
|
|
35
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
36
36
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
37
|
-
config = await
|
|
37
|
+
config = await _chunkZJXBN32Wjs.loadStormConfig.call(void 0, workspaceRoot);
|
|
38
38
|
}
|
|
39
39
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
40
|
-
|
|
40
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
41
41
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
42
|
-
|
|
42
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
_chunkZJXBN32Wjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
45
45
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
46
46
|
const tokenized = await _chunk5CPYNJT2js.applyWorkspaceTokens.call(void 0, options, {
|
|
47
47
|
workspaceRoot: tree.root,
|
|
48
48
|
config
|
|
49
49
|
}, _chunk5CPYNJT2js.applyWorkspaceBaseTokens);
|
|
50
50
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
51
|
-
|
|
51
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
52
52
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
53
|
-
|
|
53
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
54
54
|
}
|
|
55
55
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
56
56
|
if (result) {
|
|
@@ -63,18 +63,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
66
|
-
|
|
66
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
67
67
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
68
|
-
|
|
68
|
+
_chunkZJXBN32Wjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
69
69
|
}
|
|
70
70
|
return () => {
|
|
71
|
-
|
|
71
|
+
_chunkZJXBN32Wjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
72
72
|
`, config);
|
|
73
73
|
};
|
|
74
74
|
} catch (error) {
|
|
75
75
|
return () => {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
_chunkZJXBN32Wjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
77
|
+
_chunkZJXBN32Wjs.writeError.call(void 0, `An exception was thrown in the generator's process
|
|
78
78
|
- Details: ${error.message}
|
|
79
79
|
- Stacktrace: ${error.stack}`, config);
|
|
80
80
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkYO7MVS4Ajs = require('./chunk-YO7MVS4A.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoClippyExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkYO7MVS4Ajs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|