@storm-software/workspace-tools 1.264.9 → 1.264.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/{chunk-Q27N3MQO.js → chunk-3CQXNQEH.js} +2 -2
- package/dist/{chunk-V4QUJRZH.mjs → chunk-3NDDIOHB.mjs} +1 -1
- package/dist/{chunk-NG6GE2YZ.js → chunk-3QWOG3CX.js} +1 -1
- package/dist/{chunk-EVQJFIA7.mjs → chunk-3VVZ4ODK.mjs} +1 -1
- package/dist/{chunk-G6VTRIV6.mjs → chunk-5PRX6HB4.mjs} +2 -2
- package/dist/{chunk-FIRVS3UN.js → chunk-5YFVM4NO.js} +2 -2
- package/dist/{chunk-XGU4526M.js → chunk-AIR6S5P7.js} +9 -9
- package/dist/{chunk-5DWBECCN.mjs → chunk-BMSP2AHQ.mjs} +1 -1
- package/dist/{chunk-IC2TARGZ.js → chunk-BWKZE7VQ.js} +2 -2
- package/dist/{chunk-LSL5N332.js → chunk-BWMEPOEZ.js} +15 -15
- package/dist/{chunk-H5VTYV4U.mjs → chunk-CCWQEPFL.mjs} +1 -1
- package/dist/{chunk-OVWVVBMF.js → chunk-CSZN7VQD.js} +2 -2
- package/dist/{chunk-MDK5L6VS.mjs → chunk-D2WGOX7Q.mjs} +1 -1
- package/dist/{chunk-N7NXGPZA.js → chunk-DCYMF7VO.js} +2 -2
- package/dist/{chunk-XM4IXZ6Y.js → chunk-DRDUABBP.js} +5 -5
- package/dist/{chunk-K2LABESF.js → chunk-DW6Z5YY4.js} +2 -2
- package/dist/{chunk-GKFEPODO.mjs → chunk-EVVPILUO.mjs} +1 -1
- package/dist/{chunk-NZAGHP4Q.mjs → chunk-EWP64H6O.mjs} +2 -2
- package/dist/{chunk-RMNEVFW4.mjs → chunk-FVGGQRHY.mjs} +1 -1
- package/dist/{chunk-JJ4G5NGF.js → chunk-G7HJQH2D.js} +2 -2
- package/dist/{chunk-YPUNRGTW.mjs → chunk-GW35E3FL.mjs} +1 -1
- package/dist/{chunk-PD4CDI7L.js → chunk-HZ2HZMID.js} +35 -35
- package/dist/{chunk-FGMOZZ77.js → chunk-ITGXQQ7X.js} +20 -20
- package/dist/{chunk-FIJJTQKT.mjs → chunk-KLU4BFDM.mjs} +2 -2
- package/dist/{chunk-KFJJGDFT.js → chunk-MUBQL23Z.js} +4 -4
- package/dist/{chunk-VYHRGNJQ.mjs → chunk-NMKOFJSD.mjs} +3 -3
- package/dist/{chunk-267XQYEI.mjs → chunk-NZRTKA3D.mjs} +1 -1
- package/dist/{chunk-XB6ATVWM.mjs → chunk-PUYQ5DG6.mjs} +1 -1
- package/dist/{chunk-3RLLSZI3.mjs → chunk-R7DA3F5M.mjs} +2 -2
- package/dist/{chunk-AXGI5QP4.js → chunk-R7JGBUZZ.js} +5 -5
- package/dist/{chunk-IXZ3PGBP.mjs → chunk-RVVYSXH2.mjs} +1 -1
- package/dist/{chunk-GBXELUHE.js → chunk-V4BVJDF2.js} +2 -2
- package/dist/{chunk-77KNPIOO.mjs → chunk-VCWONYXO.mjs} +1 -1
- package/dist/{chunk-U6DCH53I.js → chunk-VV2T7QY3.js} +2 -2
- package/dist/{chunk-ZPN57TH7.mjs → chunk-W2L5PTZQ.mjs} +1 -1
- package/dist/{chunk-D5NZC2JN.js → chunk-YZU3GXGK.js} +11 -11
- package/dist/executors.js +12 -12
- package/dist/executors.mjs +11 -11
- package/dist/generators.js +10 -10
- package/dist/generators.mjs +10 -10
- package/dist/index.js +20 -20
- package/dist/index.mjs +20 -20
- 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 +4 -4
- package/dist/src/executors/esbuild/executor.mjs +3 -3
- package/dist/src/executors/size-limit/executor.js +4 -4
- package/dist/src/executors/size-limit/executor.mjs +3 -3
- package/dist/src/executors/typia/executor.js +4 -4
- package/dist/src/executors/typia/executor.mjs +3 -3
- package/dist/src/executors/unbuild/executor.js +4 -4
- package/dist/src/executors/unbuild/executor.mjs +3 -3
- package/dist/src/generators/browser-library/generator.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 +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
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 _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 _chunkITGXQQ7Xjs = require('./chunk-ITGXQQ7X.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ var _chunkFGMOZZ77js = require('./chunk-FGMOZZ77.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk3QWOG3CXjs = require('./chunk-3QWOG3CX.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -83,7 +83,7 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
83
83
|
output: "src/"
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
_chunk3QWOG3CXjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
87
87
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
88
88
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
89
89
|
projectDir: projectRoot,
|
|
@@ -93,7 +93,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
93
93
|
});
|
|
94
94
|
await assetHandler.processAllAssetsOnce();
|
|
95
95
|
if (includeSrc === true) {
|
|
96
|
-
|
|
96
|
+
_chunk3QWOG3CXjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
97
97
|
const files = await _glob.glob.call(void 0, [
|
|
98
98
|
_chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
99
99
|
_chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
@@ -132,7 +132,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
if (localPackages.length > 0) {
|
|
135
|
-
|
|
135
|
+
_chunk3QWOG3CXjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
136
136
|
const projectJsonFile = await _promises.readFile.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
137
137
|
const projectJson = JSON.parse(projectJsonFile);
|
|
138
138
|
const projectName2 = projectJson.name;
|
|
@@ -166,7 +166,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
166
166
|
return ret;
|
|
167
167
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
168
168
|
} else {
|
|
169
|
-
|
|
169
|
+
_chunk3QWOG3CXjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
170
170
|
}
|
|
171
171
|
return packageJson;
|
|
172
172
|
}, "addPackageDependencies");
|
|
@@ -264,7 +264,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
264
264
|
paths.push(...files.reduce((ret, filePath) => {
|
|
265
265
|
const result = _chunkJTAXCQX6js.correctPaths.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, projectRoot), ""));
|
|
266
266
|
if (result) {
|
|
267
|
-
|
|
267
|
+
_chunk3QWOG3CXjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
268
268
|
if (!paths.includes(result)) {
|
|
269
269
|
paths.push(result);
|
|
270
270
|
}
|
|
@@ -584,7 +584,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
|
|
|
584
584
|
setup(build4) {
|
|
585
585
|
build4.onEnd((result) => {
|
|
586
586
|
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
587
|
-
|
|
587
|
+
_chunk3QWOG3CXjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
588
588
|
${result.errors.map((error) => error.text).join("\n")}
|
|
589
589
|
|
|
590
590
|
`, resolvedOptions.config);
|
|
@@ -693,7 +693,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
693
693
|
localBuild: true
|
|
694
694
|
});
|
|
695
695
|
if (extractorResult.succeeded === false) {
|
|
696
|
-
|
|
696
|
+
_chunk3QWOG3CXjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
697
697
|
throw new Error("API Extractor completed with errors");
|
|
698
698
|
}
|
|
699
699
|
}
|
|
@@ -881,8 +881,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bund
|
|
|
881
881
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
882
882
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
883
883
|
});
|
|
884
|
-
|
|
885
|
-
|
|
884
|
+
_chunk3QWOG3CXjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
885
|
+
_chunk3QWOG3CXjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
886
886
|
if (filteredMissingDeps.length > 0) {
|
|
887
887
|
throw new Error(`Missing dependencies detected - please install them:
|
|
888
888
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -976,9 +976,9 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
976
976
|
if (!workspaceRoot) {
|
|
977
977
|
throw new Error("Cannot find Nx workspace root");
|
|
978
978
|
}
|
|
979
|
-
const config = await
|
|
980
|
-
|
|
981
|
-
const stopwatch =
|
|
979
|
+
const config = await _chunk3QWOG3CXjs.getConfig.call(void 0, workspaceRoot.dir);
|
|
980
|
+
_chunk3QWOG3CXjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
981
|
+
const stopwatch = _chunk3QWOG3CXjs.getStopwatch.call(void 0, "Build options resolution");
|
|
982
982
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
983
983
|
exitOnError: true
|
|
984
984
|
});
|
|
@@ -1025,7 +1025,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1025
1025
|
projectGraph,
|
|
1026
1026
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "src"),
|
|
1027
1027
|
minify: userOptions.minify || !userOptions.debug,
|
|
1028
|
-
verbose: userOptions.verbose ||
|
|
1028
|
+
verbose: userOptions.verbose || _chunk3QWOG3CXjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
1029
1029
|
includeSrc: userOptions.includeSrc === true,
|
|
1030
1030
|
metafile: userOptions.metafile !== false,
|
|
1031
1031
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -1074,8 +1074,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1074
1074
|
}, "resolveOptions");
|
|
1075
1075
|
async function generatePackageJson(context2) {
|
|
1076
1076
|
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
1077
|
-
|
|
1078
|
-
const stopwatch =
|
|
1077
|
+
_chunk3QWOG3CXjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
1078
|
+
const stopwatch = _chunk3QWOG3CXjs.getStopwatch.call(void 0, "Write package.json file");
|
|
1079
1079
|
const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
1080
1080
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1081
1081
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -1148,8 +1148,8 @@ async function generateContext(getOptions) {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
_chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
|
|
1150
1150
|
async function executeEsBuild(context2) {
|
|
1151
|
-
|
|
1152
|
-
const stopwatch =
|
|
1151
|
+
_chunk3QWOG3CXjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
1152
|
+
const stopwatch = _chunk3QWOG3CXjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
1153
1153
|
if (process.env.STORM_WATCH) {
|
|
1154
1154
|
const ctx = await esbuild2.context(context2.options);
|
|
1155
1155
|
watch(ctx, context2.options);
|
|
@@ -1178,8 +1178,8 @@ async function executeEsBuild(context2) {
|
|
|
1178
1178
|
delete options.renderers;
|
|
1179
1179
|
delete options.config;
|
|
1180
1180
|
delete options.injectShims;
|
|
1181
|
-
|
|
1182
|
-
${
|
|
1181
|
+
_chunk3QWOG3CXjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
|
|
1182
|
+
${_chunk3QWOG3CXjs.formatLogMessage.call(void 0, options)}`, context2.options.config);
|
|
1183
1183
|
const result = await esbuild2.build(options);
|
|
1184
1184
|
if (result.metafile) {
|
|
1185
1185
|
const metafilePath = `${context2.options.outdir}/${context2.options.name}.meta.json`;
|
|
@@ -1191,8 +1191,8 @@ ${_chunkNG6GE2YZjs.formatLogMessage.call(void 0, options)}`, context2.options.co
|
|
|
1191
1191
|
_chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1192
1192
|
async function copyBuildAssets(context2) {
|
|
1193
1193
|
if (_optionalChain([context2, 'access', _39 => _39.result, 'optionalAccess', _40 => _40.errors, 'access', _41 => _41.length]) === 0) {
|
|
1194
|
-
|
|
1195
|
-
const stopwatch =
|
|
1194
|
+
_chunk3QWOG3CXjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
1195
|
+
const stopwatch = _chunk3QWOG3CXjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
1196
1196
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
1197
1197
|
stopwatch();
|
|
1198
1198
|
}
|
|
@@ -1202,9 +1202,9 @@ _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
1202
1202
|
async function reportResults(context2) {
|
|
1203
1203
|
if (_optionalChain([context2, 'access', _42 => _42.result, 'optionalAccess', _43 => _43.errors, 'access', _44 => _44.length]) === 0) {
|
|
1204
1204
|
if (context2.result.warnings.length > 0) {
|
|
1205
|
-
|
|
1205
|
+
_chunk3QWOG3CXjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
1206
1206
|
}
|
|
1207
|
-
|
|
1207
|
+
_chunk3QWOG3CXjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
1208
1208
|
}
|
|
1209
1209
|
}
|
|
1210
1210
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -1240,8 +1240,8 @@ async function dependencyCheck(options) {
|
|
|
1240
1240
|
_chunk3GQAWCBQjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
1241
1241
|
async function cleanOutputPath(context2) {
|
|
1242
1242
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
1243
|
-
|
|
1244
|
-
const stopwatch =
|
|
1243
|
+
_chunk3QWOG3CXjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
1244
|
+
const stopwatch = _chunk3QWOG3CXjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
|
|
1245
1245
|
await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
|
|
1246
1246
|
stopwatch();
|
|
1247
1247
|
}
|
|
@@ -1249,8 +1249,8 @@ async function cleanOutputPath(context2) {
|
|
|
1249
1249
|
}
|
|
1250
1250
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
1251
1251
|
async function build3(options) {
|
|
1252
|
-
|
|
1253
|
-
const stopwatch =
|
|
1252
|
+
_chunk3QWOG3CXjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
1253
|
+
const stopwatch = _chunk3QWOG3CXjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
1254
1254
|
try {
|
|
1255
1255
|
const opts = Array.isArray(options) ? options : [
|
|
1256
1256
|
options
|
|
@@ -1260,9 +1260,9 @@ async function build3(options) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
void transduce.async(opts, dependencyCheck);
|
|
1262
1262
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
1263
|
-
|
|
1263
|
+
_chunk3QWOG3CXjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1264
1264
|
} catch (error) {
|
|
1265
|
-
|
|
1265
|
+
_chunk3QWOG3CXjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
1266
1266
|
throw error;
|
|
1267
1267
|
} finally {
|
|
1268
1268
|
stopwatch();
|
|
@@ -1290,9 +1290,9 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1290
1290
|
return context2.rebuild();
|
|
1291
1291
|
});
|
|
1292
1292
|
if (rebuildResult instanceof Error) {
|
|
1293
|
-
|
|
1293
|
+
_chunk3QWOG3CXjs.writeError.call(void 0, rebuildResult.message);
|
|
1294
1294
|
}
|
|
1295
|
-
|
|
1295
|
+
_chunk3QWOG3CXjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
1296
1296
|
}, 10);
|
|
1297
1297
|
changeWatcher.on("change", fastRebuild);
|
|
1298
1298
|
return void 0;
|
|
@@ -1300,7 +1300,7 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1300
1300
|
|
|
1301
1301
|
// src/executors/esbuild/executor.ts
|
|
1302
1302
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1303
|
-
|
|
1303
|
+
_chunk3QWOG3CXjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1304
1304
|
if (!_optionalChain([context2, 'access', _45 => _45.projectsConfigurations, 'optionalAccess', _46 => _46.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _47 => _47.projectsConfigurations, 'access', _48 => _48.projects, 'access', _49 => _49[context2.projectName], 'optionalAccess', _50 => _50.root])) {
|
|
1305
1305
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1306
1306
|
}
|
|
@@ -1317,7 +1317,7 @@ async function esbuildExecutorFn(options, context2, config) {
|
|
|
1317
1317
|
};
|
|
1318
1318
|
}
|
|
1319
1319
|
_chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
1320
|
-
var executor_default =
|
|
1320
|
+
var executor_default = _chunkITGXQQ7Xjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
|
|
1321
1321
|
skipReadingConfig: false,
|
|
1322
1322
|
hooks: {
|
|
1323
1323
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -12,7 +12,7 @@ var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk3QWOG3CXjs = require('./chunk-3QWOG3CX.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -23,7 +23,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
23
23
|
// src/base/base-executor.ts
|
|
24
24
|
var _defu = require('defu');
|
|
25
25
|
var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunk3QWOG3CXjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config = {};
|
|
29
29
|
try {
|
|
@@ -35,23 +35,23 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
|
|
|
35
35
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
36
36
|
const projectName = context.projectName;
|
|
37
37
|
config.workspaceRoot = workspaceRoot;
|
|
38
|
-
|
|
38
|
+
_chunk3QWOG3CXjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
39
39
|
if (!executorOptions.skipReadingConfig) {
|
|
40
|
-
|
|
40
|
+
_chunk3QWOG3CXjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
41
41
|
- workspaceRoot: ${workspaceRoot}
|
|
42
42
|
- projectRoot: ${projectRoot}
|
|
43
43
|
- sourceRoot: ${sourceRoot}
|
|
44
44
|
- projectName: ${projectName}
|
|
45
45
|
`, config);
|
|
46
|
-
config = await
|
|
46
|
+
config = await _chunk3QWOG3CXjs.getConfig.call(void 0, workspaceRoot);
|
|
47
47
|
}
|
|
48
48
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
49
|
-
|
|
49
|
+
_chunk3QWOG3CXjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
50
50
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
51
|
-
|
|
51
|
+
_chunk3QWOG3CXjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
${
|
|
53
|
+
_chunk3QWOG3CXjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
54
|
+
${_chunk3QWOG3CXjs.formatLogMessage.call(void 0, options)}
|
|
55
55
|
`, config);
|
|
56
56
|
const tokenized = await _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
|
|
57
57
|
workspaceRoot,
|
|
@@ -60,13 +60,13 @@ ${_chunkNG6GE2YZjs.formatLogMessage.call(void 0, options)}
|
|
|
60
60
|
projectName,
|
|
61
61
|
config
|
|
62
62
|
}, config, context.projectsConfigurations.projects[context.projectName]), _chunkUALZJZUKjs.applyWorkspaceProjectTokens);
|
|
63
|
-
|
|
64
|
-
${
|
|
63
|
+
_chunk3QWOG3CXjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
|
|
64
|
+
${_chunk3QWOG3CXjs.formatLogMessage.call(void 0, tokenized)}
|
|
65
65
|
`, config);
|
|
66
66
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
67
|
-
|
|
67
|
+
_chunk3QWOG3CXjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
68
68
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
69
|
-
|
|
69
|
+
_chunk3QWOG3CXjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
70
70
|
}
|
|
71
71
|
const ret = executorFn(tokenized, context, config);
|
|
72
72
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -76,26 +76,26 @@ ${_chunkNG6GE2YZjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
76
76
|
}
|
|
77
77
|
const result = await Promise.resolve(ret);
|
|
78
78
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _8 => _8.error, 'optionalAccess', _9 => _9.message]) && typeof _optionalChain([result, 'optionalAccess', _10 => _10.error, 'optionalAccess', _11 => _11.message]) === "string" && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.name]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.name]) === "string")) {
|
|
79
|
-
|
|
80
|
-
${
|
|
79
|
+
_chunk3QWOG3CXjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
80
|
+
${_chunk3QWOG3CXjs.formatLogMessage.call(void 0, result)}`, config);
|
|
81
81
|
console.error(result);
|
|
82
82
|
throw new Error(`The ${name} executor failed to run`, {
|
|
83
83
|
cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
87
|
-
|
|
87
|
+
_chunk3QWOG3CXjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
88
88
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
89
|
-
|
|
89
|
+
_chunk3QWOG3CXjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
_chunk3QWOG3CXjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
92
92
|
`, config);
|
|
93
93
|
return {
|
|
94
94
|
success: true
|
|
95
95
|
};
|
|
96
96
|
} catch (error) {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
_chunk3QWOG3CXjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
98
|
+
_chunk3QWOG3CXjs.writeError.call(void 0, `An exception was thrown in the executor's process
|
|
99
99
|
- Details: ${error.message}
|
|
100
100
|
- Stacktrace: ${error.stack}`, config);
|
|
101
101
|
return {
|
|
@@ -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 _chunkITGXQQ7Xjs = require('./chunk-ITGXQQ7X.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3QWOG3CXjs = require('./chunk-3QWOG3CX.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
@@ -15,7 +15,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
15
15
|
var _defu = require('defu');
|
|
16
16
|
var _jiti = require('jiti');
|
|
17
17
|
async function unbuildExecutorFn(options, context, config) {
|
|
18
|
-
|
|
18
|
+
_chunk3QWOG3CXjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
19
19
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
20
20
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
21
21
|
}
|
|
@@ -63,7 +63,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
_chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
66
|
-
var executor_default =
|
|
66
|
+
var executor_default = _chunkITGXQQ7Xjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
|
|
67
67
|
skipReadingConfig: false,
|
|
68
68
|
hooks: {
|
|
69
69
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BMSP2AHQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
formatLogMessage,
|
|
6
6
|
getConfig,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
writeSuccess,
|
|
14
14
|
writeTrace,
|
|
15
15
|
writeWarning
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RVVYSXH2.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
19
|
} from "./chunk-FR3YQN55.mjs";
|
|
@@ -1263,7 +1263,7 @@ async function build3(options) {
|
|
|
1263
1263
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
1264
1264
|
writeSuccess(" \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1265
1265
|
} catch (error) {
|
|
1266
|
-
writeFatal("
|
|
1266
|
+
writeFatal("Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
1267
1267
|
throw error;
|
|
1268
1268
|
} finally {
|
|
1269
1269
|
stopwatch();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkITGXQQ7Xjs = require('./chunk-ITGXQQ7X.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3QWOG3CXjs = require('./chunk-3QWOG3CX.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -13,11 +13,11 @@ var _fsextra = require('fs-extra');
|
|
|
13
13
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
14
14
|
async function typiaExecutorFn(options, _, config) {
|
|
15
15
|
if (options.clean !== false) {
|
|
16
|
-
|
|
16
|
+
_chunk3QWOG3CXjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
17
17
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
18
18
|
}
|
|
19
19
|
await Promise.all(options.entry.map((entry) => {
|
|
20
|
-
|
|
20
|
+
_chunk3QWOG3CXjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
21
21
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
22
22
|
input: entry,
|
|
23
23
|
output: options.outputPath,
|
|
@@ -29,7 +29,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
_chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
32
|
-
var executor_default =
|
|
32
|
+
var executor_default = _chunkITGXQQ7Xjs.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
|
|
33
33
|
skipReadingConfig: false,
|
|
34
34
|
hooks: {
|
|
35
35
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -408,7 +408,7 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _c
|
|
|
408
408
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
409
409
|
return (message) => {
|
|
410
410
|
console.error(`
|
|
411
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]}
|
|
411
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
412
412
|
`);
|
|
413
413
|
};
|
|
414
414
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkITGXQQ7Xjs = require('./chunk-ITGXQQ7X.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 = _chunkITGXQQ7Xjs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkITGXQQ7Xjs = require('./chunk-ITGXQQ7X.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoCheckExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkITGXQQ7Xjs.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -13,7 +13,7 @@ var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk3QWOG3CXjs = require('./chunk-3QWOG3CX.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.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
|
+
_chunk3QWOG3CXjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
252
252
|
|
|
253
253
|
`, config);
|
|
254
|
-
const stopwatch =
|
|
254
|
+
const stopwatch = _chunk3QWOG3CXjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
255
255
|
try {
|
|
256
256
|
const workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, );
|
|
257
|
-
|
|
257
|
+
_chunk3QWOG3CXjs.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 _chunk3QWOG3CXjs.getConfig.call(void 0, workspaceRoot);
|
|
260
|
+
_chunk3QWOG3CXjs.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) {
|
|
@@ -308,9 +308,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
308
308
|
}
|
|
309
309
|
const workspaceRelativePackagePath = _path.relative.call(void 0, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, ))), tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath);
|
|
310
310
|
const log = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (msg) => {
|
|
311
|
-
|
|
311
|
+
_chunk3QWOG3CXjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
312
312
|
}, "log");
|
|
313
|
-
|
|
313
|
+
_chunk3QWOG3CXjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
314
314
|
let packageName;
|
|
315
315
|
let currentVersionFromDisk;
|
|
316
316
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -584,7 +584,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
await _devkit.formatFiles.call(void 0, tree);
|
|
587
|
-
|
|
587
|
+
_chunk3QWOG3CXjs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
|
|
588
588
|
`, config);
|
|
589
589
|
return {
|
|
590
590
|
data: versionData,
|
|
@@ -618,8 +618,8 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
618
618
|
}, "callback")
|
|
619
619
|
};
|
|
620
620
|
} catch (error) {
|
|
621
|
-
|
|
622
|
-
|
|
621
|
+
_chunk3QWOG3CXjs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
|
|
622
|
+
_chunk3QWOG3CXjs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
|
|
623
623
|
- Details: ${error.message}
|
|
624
624
|
- Stacktrace: ${error.stack}`, config);
|
|
625
625
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|