@storm-software/terraform-tools 0.60.36 → 0.60.38
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 +14 -0
- package/README.md +1 -1
- package/dist/{chunk-BUWPIUZN.js → chunk-2O7DQPDC.js} +2 -2
- package/dist/{chunk-LBU72XRT.js → chunk-3OW6JMBO.js} +2 -2
- package/dist/{chunk-IE3GYKQ2.js → chunk-FWOTYBYO.js} +26 -14
- package/dist/{chunk-OV2EM7MW.mjs → chunk-GH5Q6LZY.mjs} +1 -1
- package/dist/{chunk-WTVXYTRH.js → chunk-KD7CUX45.js} +210 -209
- package/dist/{chunk-SBXLS6B7.js → chunk-KJQ3JPTX.js} +2 -2
- package/dist/{chunk-3BLQVDP7.mjs → chunk-KNNQJHOH.mjs} +1 -1
- package/dist/{chunk-B4IBPS6P.mjs → chunk-LHTFN57X.mjs} +105 -104
- package/dist/{chunk-GERJUBNF.mjs → chunk-PGTHUI34.mjs} +18 -6
- package/dist/{chunk-7RR2HKBA.mjs → chunk-PRZKXK4E.mjs} +1 -1
- package/dist/{chunk-F3DDL5QO.js → chunk-RW4FXDXQ.js} +2 -2
- package/dist/{chunk-T77AY65K.mjs → chunk-SCIVGQ5G.mjs} +1 -1
- package/dist/{chunk-KYSRH4TW.mjs → chunk-VC7G4MO3.mjs} +1 -1
- package/dist/{chunk-U4ZH7ICY.js → chunk-Z6F7BKEF.js} +2 -2
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +6 -6
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +2 -2
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +3 -3
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +3 -3
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +3 -3
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +3 -3
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +2 -2
- package/package.json +2 -2
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkFWOTYBYOjs = require('./chunk-FWOTYBYO.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
var _chunk3RG5ZIWIjs = require('./chunk-3RG5ZIWI.js');
|
|
@@ -146,7 +146,7 @@ async function cargoBuildExecutor(options, context) {
|
|
|
146
146
|
const command = buildCargoCommand("build", options, context);
|
|
147
147
|
return await cargoCommand(...command);
|
|
148
148
|
}
|
|
149
|
-
var executor_default =
|
|
149
|
+
var executor_default = _chunkFWOTYBYOjs.withRunExecutor.call(void 0,
|
|
150
150
|
"Cargo - Build",
|
|
151
151
|
cargoBuildExecutor,
|
|
152
152
|
{
|
|
@@ -166,7 +166,7 @@ async function cargoCheckExecutor(options, context) {
|
|
|
166
166
|
const command = buildCargoCommand("check", options, context);
|
|
167
167
|
return await cargoCommand(...command);
|
|
168
168
|
}
|
|
169
|
-
var executor_default2 =
|
|
169
|
+
var executor_default2 = _chunkFWOTYBYOjs.withRunExecutor.call(void 0,
|
|
170
170
|
"Cargo - Check",
|
|
171
171
|
cargoCheckExecutor,
|
|
172
172
|
{
|
|
@@ -185,7 +185,7 @@ async function cargoClippyExecutor(options, context) {
|
|
|
185
185
|
const command = buildCargoCommand("clippy", options, context);
|
|
186
186
|
return await cargoCommand(...command);
|
|
187
187
|
}
|
|
188
|
-
var executor_default3 =
|
|
188
|
+
var executor_default3 = _chunkFWOTYBYOjs.withRunExecutor.call(void 0,
|
|
189
189
|
"Cargo - Clippy",
|
|
190
190
|
cargoClippyExecutor,
|
|
191
191
|
{
|
|
@@ -208,7 +208,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
208
208
|
const command = buildCargoCommand("doc", options, context);
|
|
209
209
|
return await cargoCommand(...command);
|
|
210
210
|
}
|
|
211
|
-
var executor_default4 =
|
|
211
|
+
var executor_default4 = _chunkFWOTYBYOjs.withRunExecutor.call(void 0,
|
|
212
212
|
"Cargo - Doc",
|
|
213
213
|
cargoDocExecutor,
|
|
214
214
|
{
|
|
@@ -234,7 +234,7 @@ async function cargoFormatExecutor(options, context) {
|
|
|
234
234
|
const command = buildCargoCommand("fmt", options, context);
|
|
235
235
|
return await cargoCommand(...command);
|
|
236
236
|
}
|
|
237
|
-
var executor_default5 =
|
|
237
|
+
var executor_default5 = _chunkFWOTYBYOjs.withRunExecutor.call(void 0,
|
|
238
238
|
"Cargo - Format",
|
|
239
239
|
cargoFormatExecutor,
|
|
240
240
|
{
|
|
@@ -313,9 +313,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
313
313
|
output: "src/"
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
|
-
|
|
316
|
+
_chunkFWOTYBYOjs.writeTrace.call(void 0,
|
|
317
317
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
318
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
318
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkFWOTYBYOjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
319
319
|
config
|
|
320
320
|
);
|
|
321
321
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -325,19 +325,20 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
325
325
|
assets: pendingAssets
|
|
326
326
|
});
|
|
327
327
|
await assetHandler.processAllAssetsOnce();
|
|
328
|
+
_chunkFWOTYBYOjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
328
329
|
if (includeSrc === true) {
|
|
329
|
-
|
|
330
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
330
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0,
|
|
331
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkFWOTYBYOjs.joinPaths.call(void 0,
|
|
331
332
|
outputPath,
|
|
332
333
|
"src"
|
|
333
334
|
)}`,
|
|
334
335
|
config
|
|
335
336
|
);
|
|
336
337
|
const files = await _glob.glob.call(void 0, [
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
338
|
+
_chunkFWOTYBYOjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
339
|
+
_chunkFWOTYBYOjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
340
|
+
_chunkFWOTYBYOjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
341
|
+
_chunkFWOTYBYOjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
341
342
|
]);
|
|
342
343
|
await Promise.allSettled(
|
|
343
344
|
files.map(
|
|
@@ -392,7 +393,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
392
393
|
)) {
|
|
393
394
|
const projectNode = project.node;
|
|
394
395
|
if (projectNode.data.root) {
|
|
395
|
-
const projectPackageJsonPath =
|
|
396
|
+
const projectPackageJsonPath = _chunkFWOTYBYOjs.joinPaths.call(void 0,
|
|
396
397
|
workspaceRoot3,
|
|
397
398
|
projectNode.data.root,
|
|
398
399
|
"package.json"
|
|
@@ -410,11 +411,11 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
410
411
|
}
|
|
411
412
|
}
|
|
412
413
|
if (localPackages.length > 0) {
|
|
413
|
-
|
|
414
|
+
_chunkFWOTYBYOjs.writeTrace.call(void 0,
|
|
414
415
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
415
416
|
);
|
|
416
417
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
417
|
-
|
|
418
|
+
_chunkFWOTYBYOjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
418
419
|
"utf8"
|
|
419
420
|
);
|
|
420
421
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -427,7 +428,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
427
428
|
}
|
|
428
429
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _13 => _13.projects, 'optionalAccess', _14 => _14[projectName2], 'access', _15 => _15.implicitDependencies, 'optionalAccess', _16 => _16.reduce, 'call', _17 => _17((ret, dep) => {
|
|
429
430
|
if (_optionalChain([projectConfigurations, 'access', _18 => _18.projects, 'optionalAccess', _19 => _19[dep]])) {
|
|
430
|
-
const depPackageJsonPath =
|
|
431
|
+
const depPackageJsonPath = _chunkFWOTYBYOjs.joinPaths.call(void 0,
|
|
431
432
|
workspaceRoot3,
|
|
432
433
|
projectConfigurations.projects[dep].root,
|
|
433
434
|
"package.json"
|
|
@@ -458,14 +459,14 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
458
459
|
return ret;
|
|
459
460
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
460
461
|
} else {
|
|
461
|
-
|
|
462
|
+
_chunkFWOTYBYOjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
462
463
|
}
|
|
463
464
|
return packageJson;
|
|
464
465
|
};
|
|
465
466
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
466
|
-
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
467
|
+
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkFWOTYBYOjs.findWorkspaceRoot.call(void 0, );
|
|
467
468
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
468
|
-
|
|
469
|
+
_chunkFWOTYBYOjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
469
470
|
"utf8"
|
|
470
471
|
);
|
|
471
472
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -476,7 +477,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
476
477
|
if (distSrc.startsWith("/")) {
|
|
477
478
|
distSrc = distSrc.substring(1);
|
|
478
479
|
}
|
|
479
|
-
packageJson.source ??= `${
|
|
480
|
+
packageJson.source ??= `${_chunkFWOTYBYOjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
480
481
|
}
|
|
481
482
|
packageJson.files ??= ["dist/**/*"];
|
|
482
483
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -501,7 +502,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
501
502
|
packageJson.contributors = [packageJson.author];
|
|
502
503
|
}
|
|
503
504
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
504
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
505
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkFWOTYBYOjs.joinPaths.call(void 0, "packages", projectName);
|
|
505
506
|
return packageJson;
|
|
506
507
|
};
|
|
507
508
|
|
|
@@ -535,11 +536,11 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
535
536
|
// ../esbuild/src/assets.ts
|
|
536
537
|
async function copyBuildAssets(context) {
|
|
537
538
|
if (!_optionalChain([context, 'access', _28 => _28.result, 'optionalAccess', _29 => _29.errors, 'access', _30 => _30.length]) && _optionalChain([context, 'access', _31 => _31.options, 'access', _32 => _32.assets, 'optionalAccess', _33 => _33.length])) {
|
|
538
|
-
|
|
539
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0,
|
|
539
540
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
540
541
|
context.workspaceConfig
|
|
541
542
|
);
|
|
542
|
-
const stopwatch =
|
|
543
|
+
const stopwatch = _chunkFWOTYBYOjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
543
544
|
await copyAssets(
|
|
544
545
|
context.workspaceConfig,
|
|
545
546
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
@@ -620,15 +621,15 @@ async function resolveContext(userOptions) {
|
|
|
620
621
|
if (!workspaceRoot3) {
|
|
621
622
|
throw new Error("Cannot find Nx workspace root");
|
|
622
623
|
}
|
|
623
|
-
const workspaceConfig = await
|
|
624
|
+
const workspaceConfig = await _chunkFWOTYBYOjs.getWorkspaceConfig.call(void 0, true, {
|
|
624
625
|
workspaceRoot: workspaceRoot3.dir
|
|
625
626
|
});
|
|
626
|
-
|
|
627
|
-
const stopwatch =
|
|
627
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
628
|
+
const stopwatch = _chunkFWOTYBYOjs.getStopwatch.call(void 0, "Build options resolution");
|
|
628
629
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
629
630
|
exitOnError: true
|
|
630
631
|
});
|
|
631
|
-
const projectJsonPath =
|
|
632
|
+
const projectJsonPath = _chunkFWOTYBYOjs.joinPaths.call(void 0,
|
|
632
633
|
workspaceRoot3.dir,
|
|
633
634
|
projectRoot,
|
|
634
635
|
"project.json"
|
|
@@ -647,7 +648,7 @@ async function resolveContext(userOptions) {
|
|
|
647
648
|
}
|
|
648
649
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
649
650
|
options.name ??= projectName;
|
|
650
|
-
const packageJsonPath =
|
|
651
|
+
const packageJsonPath = _chunkFWOTYBYOjs.joinPaths.call(void 0,
|
|
651
652
|
workspaceRoot3.dir,
|
|
652
653
|
options.projectRoot,
|
|
653
654
|
"package.json"
|
|
@@ -659,7 +660,7 @@ async function resolveContext(userOptions) {
|
|
|
659
660
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
660
661
|
const resolvedOptions = {
|
|
661
662
|
...options,
|
|
662
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
663
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkFWOTYBYOjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
|
|
663
664
|
metafile: userOptions.mode === "development",
|
|
664
665
|
clean: false,
|
|
665
666
|
env,
|
|
@@ -684,8 +685,8 @@ async function resolveContext(userOptions) {
|
|
|
684
685
|
projectConfigurations,
|
|
685
686
|
projectName,
|
|
686
687
|
projectGraph,
|
|
687
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
688
|
-
outputPath: resolvedOptions.outputPath ||
|
|
688
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkFWOTYBYOjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
689
|
+
outputPath: resolvedOptions.outputPath || _chunkFWOTYBYOjs.joinPaths.call(void 0,
|
|
689
690
|
workspaceConfig.workspaceRoot,
|
|
690
691
|
"dist",
|
|
691
692
|
resolvedOptions.projectRoot
|
|
@@ -694,10 +695,10 @@ async function resolveContext(userOptions) {
|
|
|
694
695
|
};
|
|
695
696
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
696
697
|
if (context.options.verbose) {
|
|
697
|
-
|
|
698
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0,
|
|
698
699
|
` \u2699\uFE0F Build options resolved:
|
|
699
700
|
|
|
700
|
-
${
|
|
701
|
+
${_chunkFWOTYBYOjs.formatLogMessage.call(void 0, context.options)}`,
|
|
701
702
|
workspaceConfig
|
|
702
703
|
);
|
|
703
704
|
}
|
|
@@ -709,10 +710,10 @@ ${_chunkIE3GYKQ2js.formatLogMessage.call(void 0, context.options)}`,
|
|
|
709
710
|
|
|
710
711
|
|
|
711
712
|
async function generatePackageJson(context) {
|
|
712
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
713
|
-
|
|
714
|
-
const stopwatch =
|
|
715
|
-
const packageJsonPath =
|
|
713
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkFWOTYBYOjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
714
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
715
|
+
const stopwatch = _chunkFWOTYBYOjs.getStopwatch.call(void 0, "Write package.json file");
|
|
716
|
+
const packageJsonPath = _chunkFWOTYBYOjs.joinPaths.call(void 0,
|
|
716
717
|
context.options.projectRoot,
|
|
717
718
|
"project.json"
|
|
718
719
|
);
|
|
@@ -720,7 +721,7 @@ async function generatePackageJson(context) {
|
|
|
720
721
|
throw new Error("Cannot find package.json configuration");
|
|
721
722
|
}
|
|
722
723
|
const packageJsonFile = await _promises2.default.readFile(
|
|
723
|
-
|
|
724
|
+
_chunkFWOTYBYOjs.joinPaths.call(void 0,
|
|
724
725
|
context.workspaceConfig.workspaceRoot,
|
|
725
726
|
context.options.projectRoot,
|
|
726
727
|
"package.json"
|
|
@@ -826,7 +827,7 @@ async function generatePackageJson(context) {
|
|
|
826
827
|
}
|
|
827
828
|
}
|
|
828
829
|
await _devkit.writeJsonFile.call(void 0,
|
|
829
|
-
|
|
830
|
+
_chunkFWOTYBYOjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
830
831
|
packageJson
|
|
831
832
|
);
|
|
832
833
|
stopwatch();
|
|
@@ -901,10 +902,10 @@ var depsCheckPlugin = (bundle) => ({
|
|
|
901
902
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
902
903
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
903
904
|
});
|
|
904
|
-
|
|
905
|
+
_chunkFWOTYBYOjs.writeWarning.call(void 0,
|
|
905
906
|
`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
|
|
906
907
|
);
|
|
907
|
-
|
|
908
|
+
_chunkFWOTYBYOjs.writeError.call(void 0,
|
|
908
909
|
`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
|
|
909
910
|
);
|
|
910
911
|
if (filteredMissingDeps.length > 0) {
|
|
@@ -919,14 +920,14 @@ ${JSON.stringify(filteredMissingDeps)}
|
|
|
919
920
|
// ../esbuild/src/tsup.ts
|
|
920
921
|
var _tsup = require('tsup');
|
|
921
922
|
async function executeTsup(context) {
|
|
922
|
-
|
|
923
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0,
|
|
923
924
|
` \u{1F680} Running ${context.options.name} build`,
|
|
924
925
|
context.workspaceConfig
|
|
925
926
|
);
|
|
926
|
-
const stopwatch =
|
|
927
|
+
const stopwatch = _chunkFWOTYBYOjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
927
928
|
await _tsup.build.call(void 0, {
|
|
928
929
|
...context.options,
|
|
929
|
-
outDir: context.options.distDir ?
|
|
930
|
+
outDir: context.options.distDir ? _chunkFWOTYBYOjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
930
931
|
workspaceConfig: context.workspaceConfig
|
|
931
932
|
});
|
|
932
933
|
stopwatch();
|
|
@@ -937,17 +938,17 @@ async function executeTsup(context) {
|
|
|
937
938
|
async function reportResults(context) {
|
|
938
939
|
if (_optionalChain([context, 'access', _36 => _36.result, 'optionalAccess', _37 => _37.errors, 'access', _38 => _38.length]) === 0) {
|
|
939
940
|
if (context.result.warnings.length > 0) {
|
|
940
|
-
|
|
941
|
+
_chunkFWOTYBYOjs.writeWarning.call(void 0,
|
|
941
942
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
942
943
|
context.workspaceConfig
|
|
943
944
|
);
|
|
944
945
|
}
|
|
945
|
-
|
|
946
|
+
_chunkFWOTYBYOjs.writeSuccess.call(void 0,
|
|
946
947
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
947
948
|
context.workspaceConfig
|
|
948
949
|
);
|
|
949
950
|
} else if (_optionalChain([context, 'access', _39 => _39.result, 'optionalAccess', _40 => _40.errors]) && _optionalChain([context, 'access', _41 => _41.result, 'optionalAccess', _42 => _42.errors, 'access', _43 => _43.length]) > 0) {
|
|
950
|
-
|
|
951
|
+
_chunkFWOTYBYOjs.writeError.call(void 0,
|
|
951
952
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
952
953
|
context.workspaceConfig
|
|
953
954
|
);
|
|
@@ -984,19 +985,19 @@ async function dependencyCheck(options) {
|
|
|
984
985
|
}
|
|
985
986
|
async function cleanOutputPath(context) {
|
|
986
987
|
if (context.clean !== false && context.outputPath) {
|
|
987
|
-
|
|
988
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0,
|
|
988
989
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
989
990
|
context.workspaceConfig
|
|
990
991
|
);
|
|
991
|
-
const stopwatch =
|
|
992
|
+
const stopwatch = _chunkFWOTYBYOjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
992
993
|
await cleanDirectories(context.outputPath);
|
|
993
994
|
stopwatch();
|
|
994
995
|
}
|
|
995
996
|
return context;
|
|
996
997
|
}
|
|
997
998
|
async function build2(options) {
|
|
998
|
-
|
|
999
|
-
const stopwatch =
|
|
999
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
1000
|
+
const stopwatch = _chunkFWOTYBYOjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
1000
1001
|
try {
|
|
1001
1002
|
const opts = Array.isArray(options) ? options : [options];
|
|
1002
1003
|
if (opts.length === 0) {
|
|
@@ -1011,9 +1012,9 @@ async function build2(options) {
|
|
|
1011
1012
|
executeTsup(context)
|
|
1012
1013
|
]);
|
|
1013
1014
|
await reportResults(context);
|
|
1014
|
-
|
|
1015
|
+
_chunkFWOTYBYOjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1015
1016
|
} catch (error) {
|
|
1016
|
-
|
|
1017
|
+
_chunkFWOTYBYOjs.writeFatal.call(void 0,
|
|
1017
1018
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
1018
1019
|
);
|
|
1019
1020
|
throw error;
|
|
@@ -1024,7 +1025,7 @@ async function build2(options) {
|
|
|
1024
1025
|
|
|
1025
1026
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1026
1027
|
async function esbuildExecutorFn(options, context, config) {
|
|
1027
|
-
|
|
1028
|
+
_chunkFWOTYBYOjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1028
1029
|
if (!_optionalChain([context, 'access', _44 => _44.projectsConfigurations, 'optionalAccess', _45 => _45.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _46 => _46.projectsConfigurations, 'access', _47 => _47.projects, 'access', _48 => _48[context.projectName], 'optionalAccess', _49 => _49.root])) {
|
|
1029
1030
|
throw new Error(
|
|
1030
1031
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -1042,7 +1043,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
1042
1043
|
success: true
|
|
1043
1044
|
};
|
|
1044
1045
|
}
|
|
1045
|
-
var executor_default6 =
|
|
1046
|
+
var executor_default6 = _chunkFWOTYBYOjs.withRunExecutor.call(void 0,
|
|
1046
1047
|
"Storm ESBuild build",
|
|
1047
1048
|
esbuildExecutorFn,
|
|
1048
1049
|
{
|
|
@@ -1159,14 +1160,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1159
1160
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
1160
1161
|
);
|
|
1161
1162
|
}
|
|
1162
|
-
|
|
1163
|
+
_chunkFWOTYBYOjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
1163
1164
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild3.default, _esbuildwhy2.default], {
|
|
1164
1165
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _61 => _61.projectsConfigurations, 'access', _62 => _62.projects, 'access', _63 => _63[context.projectName], 'optionalAccess', _64 => _64.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
1165
1166
|
_nullishCoalesce(_optionalChain([context, 'access', _65 => _65.projectsConfigurations, 'access', _66 => _66.projects, 'access', _67 => _67[context.projectName], 'optionalAccess', _68 => _68.root]), () => ( "./")),
|
|
1166
1167
|
"src"
|
|
1167
1168
|
)))
|
|
1168
1169
|
}).then((result) => {
|
|
1169
|
-
|
|
1170
|
+
_chunkFWOTYBYOjs.writeInfo.call(void 0,
|
|
1170
1171
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
1171
1172
|
config
|
|
1172
1173
|
);
|
|
@@ -1175,7 +1176,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1175
1176
|
success: true
|
|
1176
1177
|
};
|
|
1177
1178
|
}
|
|
1178
|
-
var executor_default7 =
|
|
1179
|
+
var executor_default7 = _chunkFWOTYBYOjs.withRunExecutor.call(void 0,
|
|
1179
1180
|
"Size-Limit Performance Test Executor",
|
|
1180
1181
|
sizeLimitExecutorFn,
|
|
1181
1182
|
{
|
|
@@ -1193,12 +1194,12 @@ var _fsextra = require('fs-extra');
|
|
|
1193
1194
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1194
1195
|
async function typiaExecutorFn(options, _, config) {
|
|
1195
1196
|
if (options.clean !== false) {
|
|
1196
|
-
|
|
1197
|
+
_chunkFWOTYBYOjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
1197
1198
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1198
1199
|
}
|
|
1199
1200
|
await Promise.all(
|
|
1200
1201
|
options.entry.map((entry) => {
|
|
1201
|
-
|
|
1202
|
+
_chunkFWOTYBYOjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
1202
1203
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1203
1204
|
input: entry,
|
|
1204
1205
|
output: options.outputPath,
|
|
@@ -1210,7 +1211,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
1210
1211
|
success: true
|
|
1211
1212
|
};
|
|
1212
1213
|
}
|
|
1213
|
-
var executor_default8 =
|
|
1214
|
+
var executor_default8 = _chunkFWOTYBYOjs.withRunExecutor.call(void 0,
|
|
1214
1215
|
"Typia runtime validation generator",
|
|
1215
1216
|
typiaExecutorFn,
|
|
1216
1217
|
{
|
|
@@ -1231,7 +1232,7 @@ var executor_default8 = _chunkIE3GYKQ2js.withRunExecutor.call(void 0,
|
|
|
1231
1232
|
|
|
1232
1233
|
var _jiti = require('jiti');
|
|
1233
1234
|
async function unbuildExecutorFn(options, context, config) {
|
|
1234
|
-
|
|
1235
|
+
_chunkFWOTYBYOjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1235
1236
|
if (!_optionalChain([context, 'access', _69 => _69.projectsConfigurations, 'optionalAccess', _70 => _70.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1236
1237
|
throw new Error(
|
|
1237
1238
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -1248,7 +1249,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1248
1249
|
);
|
|
1249
1250
|
}
|
|
1250
1251
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1251
|
-
fsCache: config.skipCache ? false :
|
|
1252
|
+
fsCache: config.skipCache ? false : _chunkFWOTYBYOjs.joinPaths.call(void 0,
|
|
1252
1253
|
config.workspaceRoot,
|
|
1253
1254
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1254
1255
|
"jiti"
|
|
@@ -1270,7 +1271,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1270
1271
|
{
|
|
1271
1272
|
stubOptions: {
|
|
1272
1273
|
jiti: {
|
|
1273
|
-
fsCache: config.skipCache ? false :
|
|
1274
|
+
fsCache: config.skipCache ? false : _chunkFWOTYBYOjs.joinPaths.call(void 0,
|
|
1274
1275
|
config.workspaceRoot,
|
|
1275
1276
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1276
1277
|
"jiti"
|
|
@@ -1299,7 +1300,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1299
1300
|
success: true
|
|
1300
1301
|
};
|
|
1301
1302
|
}
|
|
1302
|
-
var executor_default9 =
|
|
1303
|
+
var executor_default9 = _chunkFWOTYBYOjs.withRunExecutor.call(void 0,
|
|
1303
1304
|
"TypeScript Unbuild build",
|
|
1304
1305
|
unbuildExecutorFn,
|
|
1305
1306
|
{
|
|
@@ -1330,45 +1331,45 @@ var executor_default9 = _chunkIE3GYKQ2js.withRunExecutor.call(void 0,
|
|
|
1330
1331
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
1331
1332
|
skipReadingConfig: false
|
|
1332
1333
|
}) => async (tree, _options) => {
|
|
1333
|
-
const stopwatch =
|
|
1334
|
+
const stopwatch = _chunkFWOTYBYOjs.getStopwatch.call(void 0, name);
|
|
1334
1335
|
let options = _options;
|
|
1335
1336
|
let config;
|
|
1336
1337
|
try {
|
|
1337
|
-
|
|
1338
|
+
_chunkFWOTYBYOjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1338
1339
|
|
|
1339
1340
|
`, config);
|
|
1340
|
-
const workspaceRoot3 =
|
|
1341
|
+
const workspaceRoot3 = _chunkFWOTYBYOjs.findWorkspaceRoot.call(void 0, );
|
|
1341
1342
|
if (!generatorOptions.skipReadingConfig) {
|
|
1342
|
-
|
|
1343
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0,
|
|
1343
1344
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1344
1345
|
- workspaceRoot: ${workspaceRoot3}`,
|
|
1345
1346
|
config
|
|
1346
1347
|
);
|
|
1347
|
-
config = await
|
|
1348
|
+
config = await _chunkFWOTYBYOjs.getConfig.call(void 0, workspaceRoot3);
|
|
1348
1349
|
}
|
|
1349
1350
|
if (_optionalChain([generatorOptions, 'optionalAccess', _71 => _71.hooks, 'optionalAccess', _72 => _72.applyDefaultOptions])) {
|
|
1350
|
-
|
|
1351
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1351
1352
|
options = await Promise.resolve(
|
|
1352
1353
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
1353
1354
|
);
|
|
1354
|
-
|
|
1355
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
1355
1356
|
}
|
|
1356
|
-
|
|
1357
|
+
_chunkFWOTYBYOjs.writeTrace.call(void 0,
|
|
1357
1358
|
`Generator schema options \u2699\uFE0F
|
|
1358
1359
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
1359
1360
|
config
|
|
1360
1361
|
);
|
|
1361
|
-
const tokenized = await
|
|
1362
|
+
const tokenized = await _chunkFWOTYBYOjs.applyWorkspaceTokens.call(void 0,
|
|
1362
1363
|
options,
|
|
1363
1364
|
{ workspaceRoot: tree.root, config },
|
|
1364
|
-
|
|
1365
|
+
_chunkFWOTYBYOjs.applyWorkspaceBaseTokens
|
|
1365
1366
|
);
|
|
1366
1367
|
if (_optionalChain([generatorOptions, 'optionalAccess', _73 => _73.hooks, 'optionalAccess', _74 => _74.preProcess])) {
|
|
1367
|
-
|
|
1368
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1368
1369
|
await Promise.resolve(
|
|
1369
1370
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
1370
1371
|
);
|
|
1371
|
-
|
|
1372
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1372
1373
|
}
|
|
1373
1374
|
const result = await Promise.resolve(
|
|
1374
1375
|
generatorFn(tree, tokenized, config)
|
|
@@ -1383,21 +1384,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1383
1384
|
}
|
|
1384
1385
|
}
|
|
1385
1386
|
if (_optionalChain([generatorOptions, 'optionalAccess', _84 => _84.hooks, 'optionalAccess', _85 => _85.postProcess])) {
|
|
1386
|
-
|
|
1387
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1387
1388
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1388
|
-
|
|
1389
|
+
_chunkFWOTYBYOjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
1389
1390
|
}
|
|
1390
1391
|
return () => {
|
|
1391
|
-
|
|
1392
|
+
_chunkFWOTYBYOjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
1392
1393
|
`, config);
|
|
1393
1394
|
};
|
|
1394
1395
|
} catch (error) {
|
|
1395
1396
|
return () => {
|
|
1396
|
-
|
|
1397
|
+
_chunkFWOTYBYOjs.writeFatal.call(void 0,
|
|
1397
1398
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
1398
1399
|
config
|
|
1399
1400
|
);
|
|
1400
|
-
|
|
1401
|
+
_chunkFWOTYBYOjs.writeError.call(void 0,
|
|
1401
1402
|
`An exception was thrown in the generator's process
|
|
1402
1403
|
- Details: ${error.message}
|
|
1403
1404
|
- Stacktrace: ${error.stack}`,
|
|
@@ -1463,16 +1464,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1463
1464
|
const projectConfig = {
|
|
1464
1465
|
root: normalized.directory,
|
|
1465
1466
|
projectType: "library",
|
|
1466
|
-
sourceRoot:
|
|
1467
|
+
sourceRoot: _chunkFWOTYBYOjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
1467
1468
|
targets: {
|
|
1468
1469
|
build: {
|
|
1469
1470
|
executor: options.buildExecutor,
|
|
1470
1471
|
outputs: ["{options.outputPath}"],
|
|
1471
1472
|
options: {
|
|
1472
|
-
entry: [
|
|
1473
|
+
entry: [_chunkFWOTYBYOjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
1473
1474
|
outputPath: getOutputPath(normalized),
|
|
1474
|
-
tsconfig:
|
|
1475
|
-
project:
|
|
1475
|
+
tsconfig: _chunkFWOTYBYOjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
1476
|
+
project: _chunkFWOTYBYOjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
1476
1477
|
defaultConfiguration: "production",
|
|
1477
1478
|
platform: "neutral",
|
|
1478
1479
|
assets: [
|
|
@@ -1529,7 +1530,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1529
1530
|
if (!normalized.importPath) {
|
|
1530
1531
|
normalized.importPath = normalized.name;
|
|
1531
1532
|
}
|
|
1532
|
-
const packageJsonPath =
|
|
1533
|
+
const packageJsonPath = _chunkFWOTYBYOjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
1533
1534
|
if (tree.exists(packageJsonPath)) {
|
|
1534
1535
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
1535
1536
|
if (!normalized.importPath) {
|
|
@@ -1586,14 +1587,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1586
1587
|
}));
|
|
1587
1588
|
}
|
|
1588
1589
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
1589
|
-
|
|
1590
|
+
_chunkFWOTYBYOjs.joinPaths.call(void 0,
|
|
1590
1591
|
normalized.projectRoot,
|
|
1591
1592
|
"./src",
|
|
1592
1593
|
`index.${normalized.js ? "js" : "ts"}`
|
|
1593
1594
|
)
|
|
1594
1595
|
]);
|
|
1595
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
1596
|
-
|
|
1596
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkFWOTYBYOjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
1597
|
+
_chunkFWOTYBYOjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
1597
1598
|
]);
|
|
1598
1599
|
if (tree.exists("package.json")) {
|
|
1599
1600
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -1604,7 +1605,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1604
1605
|
description = packageJson.description;
|
|
1605
1606
|
}
|
|
1606
1607
|
}
|
|
1607
|
-
const tsconfigPath =
|
|
1608
|
+
const tsconfigPath = _chunkFWOTYBYOjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
1608
1609
|
if (tree.exists(tsconfigPath)) {
|
|
1609
1610
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
1610
1611
|
json.composite ??= true;
|
|
@@ -1632,7 +1633,7 @@ function getOutputPath(options) {
|
|
|
1632
1633
|
} else {
|
|
1633
1634
|
parts.push(options.projectRoot);
|
|
1634
1635
|
}
|
|
1635
|
-
return
|
|
1636
|
+
return _chunkFWOTYBYOjs.joinPaths.call(void 0, ...parts);
|
|
1636
1637
|
}
|
|
1637
1638
|
function createProjectTsConfigJson(tree, options) {
|
|
1638
1639
|
const tsconfig = {
|
|
@@ -1640,7 +1641,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
1640
1641
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _100 => _100.tsconfigOptions]), () => ( {})),
|
|
1641
1642
|
compilerOptions: {
|
|
1642
1643
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
1643
|
-
outDir:
|
|
1644
|
+
outDir: _chunkFWOTYBYOjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
1644
1645
|
noEmit: true,
|
|
1645
1646
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _101 => _101.tsconfigOptions, 'optionalAccess', _102 => _102.compilerOptions]), () => ( {}))
|
|
1646
1647
|
},
|
|
@@ -1658,7 +1659,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
1658
1659
|
"src/**/*.test.ts"
|
|
1659
1660
|
]
|
|
1660
1661
|
};
|
|
1661
|
-
_devkit.writeJson.call(void 0, tree,
|
|
1662
|
+
_devkit.writeJson.call(void 0, tree, _chunkFWOTYBYOjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
1662
1663
|
}
|
|
1663
1664
|
async function normalizeOptions(tree, options, config) {
|
|
1664
1665
|
let importPath = options.importPath;
|
|
@@ -1723,7 +1724,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
1723
1724
|
|
|
1724
1725
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
1725
1726
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
1726
|
-
const filesDir =
|
|
1727
|
+
const filesDir = _chunkFWOTYBYOjs.joinPaths.call(void 0,
|
|
1727
1728
|
__dirname,
|
|
1728
1729
|
"src",
|
|
1729
1730
|
"generators",
|
|
@@ -1806,37 +1807,37 @@ var generator_default = withRunGenerator(
|
|
|
1806
1807
|
|
|
1807
1808
|
var _v4 = require('zod/v4'); var z = _interopRequireWildcard(_v4);
|
|
1808
1809
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
1809
|
-
|
|
1810
|
+
_chunkFWOTYBYOjs.writeInfo.call(void 0,
|
|
1810
1811
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
1811
1812
|
config
|
|
1812
1813
|
);
|
|
1813
|
-
|
|
1814
|
+
_chunkFWOTYBYOjs.writeTrace.call(void 0,
|
|
1814
1815
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
1815
1816
|
config
|
|
1816
1817
|
);
|
|
1817
|
-
const jsonSchema = z.toJSONSchema(
|
|
1818
|
+
const jsonSchema = z.toJSONSchema(_chunkFWOTYBYOjs.stormWorkspaceConfigSchema, {
|
|
1818
1819
|
target: "draft-7"
|
|
1819
1820
|
});
|
|
1820
1821
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
1821
1822
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
1822
1823
|
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.";
|
|
1823
|
-
|
|
1824
|
+
_chunkFWOTYBYOjs.writeTrace.call(void 0, jsonSchema, config);
|
|
1824
1825
|
if (!options.outputFile) {
|
|
1825
1826
|
throw new Error(
|
|
1826
1827
|
"The `outputFile` option is required. Please specify the output file path."
|
|
1827
1828
|
);
|
|
1828
1829
|
}
|
|
1829
1830
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
1830
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _111 => _111.workspaceRoot]), () => (
|
|
1831
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _111 => _111.workspaceRoot]), () => ( _chunkFWOTYBYOjs.findWorkspaceRoot.call(void 0, ))),
|
|
1831
1832
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
1832
1833
|
);
|
|
1833
|
-
|
|
1834
|
+
_chunkFWOTYBYOjs.writeTrace.call(void 0,
|
|
1834
1835
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
1835
1836
|
config
|
|
1836
1837
|
);
|
|
1837
1838
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
1838
1839
|
await _devkit.formatFiles.call(void 0, tree);
|
|
1839
|
-
|
|
1840
|
+
_chunkFWOTYBYOjs.writeSuccess.call(void 0,
|
|
1840
1841
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
1841
1842
|
config
|
|
1842
1843
|
);
|
|
@@ -1892,7 +1893,7 @@ async function initGenerator(tree, schema) {
|
|
|
1892
1893
|
|
|
1893
1894
|
|
|
1894
1895
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
1895
|
-
const filesDir =
|
|
1896
|
+
const filesDir = _chunkFWOTYBYOjs.joinPaths.call(void 0,
|
|
1896
1897
|
__dirname,
|
|
1897
1898
|
"src",
|
|
1898
1899
|
"generators",
|
|
@@ -1951,7 +1952,7 @@ var generator_default3 = withRunGenerator(
|
|
|
1951
1952
|
|
|
1952
1953
|
|
|
1953
1954
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
1954
|
-
const filesDir =
|
|
1955
|
+
const filesDir = _chunkFWOTYBYOjs.joinPaths.call(void 0,
|
|
1955
1956
|
__dirname,
|
|
1956
1957
|
"src",
|
|
1957
1958
|
"generators",
|
|
@@ -2255,132 +2256,132 @@ var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-ve
|
|
|
2255
2256
|
var _updatelockfile = require('@nx/js/src/release/utils/update-lock-file');
|
|
2256
2257
|
|
|
2257
2258
|
// ../git-tools/src/types.ts
|
|
2258
|
-
var
|
|
2259
|
+
var COMMIT_TYPES = {
|
|
2259
2260
|
/* --- Bumps version when selected --- */
|
|
2260
|
-
chore: {
|
|
2261
|
-
description: "Other changes that don't modify src or test files",
|
|
2262
|
-
title: "Chore",
|
|
2263
|
-
emoji: "\u2699\uFE0F ",
|
|
2264
|
-
semverBump: "patch",
|
|
2265
|
-
changelog: {
|
|
2266
|
-
title: "Miscellaneous",
|
|
2267
|
-
hidden: false
|
|
2261
|
+
"chore": {
|
|
2262
|
+
"description": "Other changes that don't modify src or test files",
|
|
2263
|
+
"title": "Chore",
|
|
2264
|
+
"emoji": "\u2699\uFE0F ",
|
|
2265
|
+
"semverBump": "patch",
|
|
2266
|
+
"changelog": {
|
|
2267
|
+
"title": "Miscellaneous",
|
|
2268
|
+
"hidden": false
|
|
2268
2269
|
}
|
|
2269
2270
|
},
|
|
2270
|
-
fix: {
|
|
2271
|
-
description: "A change that resolves an issue previously identified with the package",
|
|
2272
|
-
title: "Bug Fix",
|
|
2273
|
-
emoji: "\u{1FAB2} ",
|
|
2274
|
-
semverBump: "patch",
|
|
2275
|
-
changelog: {
|
|
2276
|
-
title: "Bug Fixes",
|
|
2277
|
-
hidden: false
|
|
2271
|
+
"fix": {
|
|
2272
|
+
"description": "A change that resolves an issue previously identified with the package",
|
|
2273
|
+
"title": "Bug Fix",
|
|
2274
|
+
"emoji": "\u{1FAB2} ",
|
|
2275
|
+
"semverBump": "patch",
|
|
2276
|
+
"changelog": {
|
|
2277
|
+
"title": "Bug Fixes",
|
|
2278
|
+
"hidden": false
|
|
2278
2279
|
}
|
|
2279
2280
|
},
|
|
2280
|
-
feat: {
|
|
2281
|
-
description: "A change that adds a new feature to the package",
|
|
2282
|
-
title: "Feature",
|
|
2283
|
-
emoji: "\u{1F511} ",
|
|
2284
|
-
semverBump: "minor",
|
|
2285
|
-
changelog: {
|
|
2286
|
-
title: "Features",
|
|
2287
|
-
hidden: false
|
|
2281
|
+
"feat": {
|
|
2282
|
+
"description": "A change that adds a new feature to the package",
|
|
2283
|
+
"title": "Feature",
|
|
2284
|
+
"emoji": "\u{1F511} ",
|
|
2285
|
+
"semverBump": "minor",
|
|
2286
|
+
"changelog": {
|
|
2287
|
+
"title": "Features",
|
|
2288
|
+
"hidden": false
|
|
2288
2289
|
}
|
|
2289
2290
|
},
|
|
2290
|
-
ci: {
|
|
2291
|
-
description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
|
|
2292
|
-
title: "Continuous Integration",
|
|
2293
|
-
emoji: "\u{1F9F0} ",
|
|
2294
|
-
semverBump: "patch",
|
|
2295
|
-
changelog: {
|
|
2296
|
-
title: "Continuous Integration",
|
|
2297
|
-
hidden: false
|
|
2291
|
+
"ci": {
|
|
2292
|
+
"description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
|
|
2293
|
+
"title": "Continuous Integration",
|
|
2294
|
+
"emoji": "\u{1F9F0} ",
|
|
2295
|
+
"semverBump": "patch",
|
|
2296
|
+
"changelog": {
|
|
2297
|
+
"title": "Continuous Integration",
|
|
2298
|
+
"hidden": false
|
|
2298
2299
|
}
|
|
2299
2300
|
},
|
|
2300
|
-
refactor: {
|
|
2301
|
-
description: "A code change that neither fixes a bug nor adds a feature",
|
|
2302
|
-
title: "Code Refactoring",
|
|
2303
|
-
emoji: "\u{1F9EA} ",
|
|
2304
|
-
semverBump: "patch",
|
|
2305
|
-
changelog: {
|
|
2306
|
-
title: "Source Code Improvements",
|
|
2307
|
-
hidden: false
|
|
2301
|
+
"refactor": {
|
|
2302
|
+
"description": "A code change that neither fixes a bug nor adds a feature",
|
|
2303
|
+
"title": "Code Refactoring",
|
|
2304
|
+
"emoji": "\u{1F9EA} ",
|
|
2305
|
+
"semverBump": "patch",
|
|
2306
|
+
"changelog": {
|
|
2307
|
+
"title": "Source Code Improvements",
|
|
2308
|
+
"hidden": false
|
|
2308
2309
|
}
|
|
2309
2310
|
},
|
|
2310
|
-
style: {
|
|
2311
|
-
description: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
|
|
2312
|
-
title: "Style Improvements",
|
|
2313
|
-
emoji: "\u{1F48E} ",
|
|
2314
|
-
semverBump: "patch",
|
|
2315
|
-
changelog: {
|
|
2316
|
-
title: "Style Improvements",
|
|
2317
|
-
hidden: false
|
|
2311
|
+
"style": {
|
|
2312
|
+
"description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
|
|
2313
|
+
"title": "Style Improvements",
|
|
2314
|
+
"emoji": "\u{1F48E} ",
|
|
2315
|
+
"semverBump": "patch",
|
|
2316
|
+
"changelog": {
|
|
2317
|
+
"title": "Style Improvements",
|
|
2318
|
+
"hidden": false
|
|
2318
2319
|
}
|
|
2319
2320
|
},
|
|
2320
|
-
perf: {
|
|
2321
|
-
description: "A code change that improves performance",
|
|
2322
|
-
title: "Performance Improvement",
|
|
2323
|
-
emoji: "\u23F1\uFE0F ",
|
|
2324
|
-
semverBump: "patch",
|
|
2325
|
-
changelog: {
|
|
2326
|
-
title: "Performance Improvements",
|
|
2327
|
-
hidden: false
|
|
2321
|
+
"perf": {
|
|
2322
|
+
"description": "A code change that improves performance",
|
|
2323
|
+
"title": "Performance Improvement",
|
|
2324
|
+
"emoji": "\u23F1\uFE0F ",
|
|
2325
|
+
"semverBump": "patch",
|
|
2326
|
+
"changelog": {
|
|
2327
|
+
"title": "Performance Improvements",
|
|
2328
|
+
"hidden": false
|
|
2328
2329
|
}
|
|
2329
2330
|
},
|
|
2330
2331
|
/* --- Does not bump version when selected --- */
|
|
2331
|
-
docs: {
|
|
2332
|
-
description: "A change that only includes documentation updates",
|
|
2333
|
-
title: "Documentation",
|
|
2334
|
-
emoji: "\u{1F4DC} ",
|
|
2335
|
-
semverBump: "none",
|
|
2336
|
-
changelog: {
|
|
2337
|
-
title: "Documentation",
|
|
2338
|
-
hidden: false
|
|
2332
|
+
"docs": {
|
|
2333
|
+
"description": "A change that only includes documentation updates",
|
|
2334
|
+
"title": "Documentation",
|
|
2335
|
+
"emoji": "\u{1F4DC} ",
|
|
2336
|
+
"semverBump": "none",
|
|
2337
|
+
"changelog": {
|
|
2338
|
+
"title": "Documentation",
|
|
2339
|
+
"hidden": false
|
|
2339
2340
|
}
|
|
2340
2341
|
},
|
|
2341
|
-
test: {
|
|
2342
|
-
description: "Adding missing tests or correcting existing tests",
|
|
2343
|
-
title: "Testing",
|
|
2344
|
-
emoji: "\u{1F6A8} ",
|
|
2345
|
-
semverBump: "none",
|
|
2346
|
-
changelog: {
|
|
2347
|
-
title: "Testing",
|
|
2348
|
-
hidden: true
|
|
2342
|
+
"test": {
|
|
2343
|
+
"description": "Adding missing tests or correcting existing tests",
|
|
2344
|
+
"title": "Testing",
|
|
2345
|
+
"emoji": "\u{1F6A8} ",
|
|
2346
|
+
"semverBump": "none",
|
|
2347
|
+
"changelog": {
|
|
2348
|
+
"title": "Testing",
|
|
2349
|
+
"hidden": true
|
|
2349
2350
|
}
|
|
2350
2351
|
},
|
|
2351
2352
|
/* --- Not included in commitlint but included in changelog --- */
|
|
2352
|
-
deps: {
|
|
2353
|
-
description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
2354
|
-
title: "Dependencies",
|
|
2355
|
-
emoji: "\u{1F4E6} ",
|
|
2356
|
-
hidden: true,
|
|
2357
|
-
semverBump: "patch",
|
|
2358
|
-
changelog: {
|
|
2359
|
-
title: "Dependency Upgrades",
|
|
2360
|
-
hidden: false
|
|
2353
|
+
"deps": {
|
|
2354
|
+
"description": "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
2355
|
+
"title": "Dependencies",
|
|
2356
|
+
"emoji": "\u{1F4E6} ",
|
|
2357
|
+
"hidden": true,
|
|
2358
|
+
"semverBump": "patch",
|
|
2359
|
+
"changelog": {
|
|
2360
|
+
"title": "Dependency Upgrades",
|
|
2361
|
+
"hidden": false
|
|
2361
2362
|
}
|
|
2362
2363
|
},
|
|
2363
2364
|
/* --- Not included in commitlint or changelog --- */
|
|
2364
|
-
build: {
|
|
2365
|
-
description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
|
|
2366
|
-
title: "Build",
|
|
2367
|
-
emoji: "\u{1F6E0} ",
|
|
2368
|
-
hidden: true,
|
|
2369
|
-
semverBump: "none",
|
|
2370
|
-
changelog: {
|
|
2371
|
-
title: "Build",
|
|
2372
|
-
hidden: true
|
|
2365
|
+
"build": {
|
|
2366
|
+
"description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
|
|
2367
|
+
"title": "Build",
|
|
2368
|
+
"emoji": "\u{1F6E0} ",
|
|
2369
|
+
"hidden": true,
|
|
2370
|
+
"semverBump": "none",
|
|
2371
|
+
"changelog": {
|
|
2372
|
+
"title": "Build",
|
|
2373
|
+
"hidden": true
|
|
2373
2374
|
}
|
|
2374
2375
|
},
|
|
2375
|
-
release: {
|
|
2376
|
-
description: "Publishing a commit containing a newly released version",
|
|
2377
|
-
title: "Publish Release",
|
|
2378
|
-
emoji: "\u{1F680} ",
|
|
2379
|
-
hidden: true,
|
|
2380
|
-
semverBump: "none",
|
|
2381
|
-
changelog: {
|
|
2382
|
-
title: "Publish Release",
|
|
2383
|
-
hidden: true
|
|
2376
|
+
"release": {
|
|
2377
|
+
"description": "Publishing a commit containing a newly released version",
|
|
2378
|
+
"title": "Publish Release",
|
|
2379
|
+
"emoji": "\u{1F680} ",
|
|
2380
|
+
"hidden": true,
|
|
2381
|
+
"semverBump": "none",
|
|
2382
|
+
"changelog": {
|
|
2383
|
+
"title": "Publish Release",
|
|
2384
|
+
"hidden": true
|
|
2384
2385
|
}
|
|
2385
2386
|
}
|
|
2386
2387
|
};
|
|
@@ -2389,10 +2390,10 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
2389
2390
|
type: "select",
|
|
2390
2391
|
title: "Commit Type",
|
|
2391
2392
|
description: "Select the commit type that best describes your changes",
|
|
2392
|
-
enum: Object.keys(
|
|
2393
|
-
(type) =>
|
|
2393
|
+
enum: Object.keys(COMMIT_TYPES).filter(
|
|
2394
|
+
(type) => COMMIT_TYPES[type].hidden !== true
|
|
2394
2395
|
).reduce((ret, type) => {
|
|
2395
|
-
ret[type] =
|
|
2396
|
+
ret[type] = COMMIT_TYPES[type];
|
|
2396
2397
|
return ret;
|
|
2397
2398
|
}, {}),
|
|
2398
2399
|
defaultValue: "chore",
|