@storm-software/terraform-tools 0.60.6 → 0.60.8
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-OV7TVEAC.js → chunk-4DRQJGE3.js} +2 -2
- package/dist/{chunk-DIXFQWYR.mjs → chunk-4QP4T44Y.mjs} +59 -17
- package/dist/{chunk-WJV4GOSN.js → chunk-55XGUC3P.js} +2 -2
- package/dist/{chunk-Q7Q5E5A6.mjs → chunk-ANYBI735.mjs} +2 -2
- package/dist/{chunk-75RE5W2I.mjs → chunk-AYJTBMXU.mjs} +1 -1
- package/dist/{chunk-ONGG25RY.mjs → chunk-BFEGWMVE.mjs} +1 -1
- package/dist/{chunk-W6SJQG4N.js → chunk-H25JD5GS.js} +104 -104
- package/dist/{chunk-AJVSFBNT.js → chunk-HHJAQU3C.js} +2 -2
- package/dist/{chunk-VNME2RIT.mjs → chunk-HKVLMETH.mjs} +1 -1
- package/dist/{chunk-A4RDGLKC.js → chunk-INVPP6KU.js} +82 -40
- package/dist/{chunk-2WTDMDFS.js → chunk-J4NMOU7J.js} +2 -2
- package/dist/{chunk-5TXZ2IQ6.mjs → chunk-MOSLDSLC.mjs} +1 -1
- package/dist/{chunk-7GH4VDRM.mjs → chunk-NYFXF3YV.mjs} +1 -1
- package/dist/{chunk-ZLPOE4VZ.js → chunk-OREQEO5N.js} +2 -2
- package/dist/{chunk-LHAZ3WPQ.mjs → chunk-VSHDXAHC.mjs} +1 -1
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +7 -7
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +3 -3
- package/dist/index.js +8 -8
- package/dist/index.mjs +8 -8
- package/dist/src/base/base-terraform-executor.untyped.mjs +1 -1
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +3 -3
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +4 -4
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +4 -4
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +4 -4
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +4 -4
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +3 -3
- package/dist/tsup.config.mjs +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkINVPP6KUjs = require('./chunk-INVPP6KU.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunk3RG5ZIWIjs = require('./chunk-3RG5ZIWI.js');
|
|
@@ -145,7 +145,7 @@ async function cargoBuildExecutor(options, context) {
|
|
|
145
145
|
const command = buildCargoCommand("build", options, context);
|
|
146
146
|
return await cargoCommand(...command);
|
|
147
147
|
}
|
|
148
|
-
var executor_default =
|
|
148
|
+
var executor_default = _chunkINVPP6KUjs.withRunExecutor.call(void 0,
|
|
149
149
|
"Cargo - Build",
|
|
150
150
|
cargoBuildExecutor,
|
|
151
151
|
{
|
|
@@ -165,7 +165,7 @@ async function cargoCheckExecutor(options, context) {
|
|
|
165
165
|
const command = buildCargoCommand("check", options, context);
|
|
166
166
|
return await cargoCommand(...command);
|
|
167
167
|
}
|
|
168
|
-
var executor_default2 =
|
|
168
|
+
var executor_default2 = _chunkINVPP6KUjs.withRunExecutor.call(void 0,
|
|
169
169
|
"Cargo - Check",
|
|
170
170
|
cargoCheckExecutor,
|
|
171
171
|
{
|
|
@@ -184,7 +184,7 @@ async function cargoClippyExecutor(options, context) {
|
|
|
184
184
|
const command = buildCargoCommand("clippy", options, context);
|
|
185
185
|
return await cargoCommand(...command);
|
|
186
186
|
}
|
|
187
|
-
var executor_default3 =
|
|
187
|
+
var executor_default3 = _chunkINVPP6KUjs.withRunExecutor.call(void 0,
|
|
188
188
|
"Cargo - Clippy",
|
|
189
189
|
cargoClippyExecutor,
|
|
190
190
|
{
|
|
@@ -207,7 +207,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
207
207
|
const command = buildCargoCommand("doc", options, context);
|
|
208
208
|
return await cargoCommand(...command);
|
|
209
209
|
}
|
|
210
|
-
var executor_default4 =
|
|
210
|
+
var executor_default4 = _chunkINVPP6KUjs.withRunExecutor.call(void 0,
|
|
211
211
|
"Cargo - Doc",
|
|
212
212
|
cargoDocExecutor,
|
|
213
213
|
{
|
|
@@ -233,7 +233,7 @@ async function cargoFormatExecutor(options, context) {
|
|
|
233
233
|
const command = buildCargoCommand("fmt", options, context);
|
|
234
234
|
return await cargoCommand(...command);
|
|
235
235
|
}
|
|
236
|
-
var executor_default5 =
|
|
236
|
+
var executor_default5 = _chunkINVPP6KUjs.withRunExecutor.call(void 0,
|
|
237
237
|
"Cargo - Format",
|
|
238
238
|
cargoFormatExecutor,
|
|
239
239
|
{
|
|
@@ -312,9 +312,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
312
312
|
output: "src/"
|
|
313
313
|
});
|
|
314
314
|
}
|
|
315
|
-
|
|
315
|
+
_chunkINVPP6KUjs.writeTrace.call(void 0,
|
|
316
316
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
317
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
317
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkINVPP6KUjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
318
318
|
config
|
|
319
319
|
);
|
|
320
320
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -325,18 +325,18 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
325
325
|
});
|
|
326
326
|
await assetHandler.processAllAssetsOnce();
|
|
327
327
|
if (includeSrc === true) {
|
|
328
|
-
|
|
329
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
328
|
+
_chunkINVPP6KUjs.writeDebug.call(void 0,
|
|
329
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkINVPP6KUjs.joinPaths.call(void 0,
|
|
330
330
|
outputPath,
|
|
331
331
|
"src"
|
|
332
332
|
)}`,
|
|
333
333
|
config
|
|
334
334
|
);
|
|
335
335
|
const files = await _glob.glob.call(void 0, [
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
336
|
+
_chunkINVPP6KUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
337
|
+
_chunkINVPP6KUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
338
|
+
_chunkINVPP6KUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
339
|
+
_chunkINVPP6KUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
340
340
|
]);
|
|
341
341
|
await Promise.allSettled(
|
|
342
342
|
files.map(
|
|
@@ -391,7 +391,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
391
391
|
)) {
|
|
392
392
|
const projectNode = project.node;
|
|
393
393
|
if (projectNode.data.root) {
|
|
394
|
-
const projectPackageJsonPath =
|
|
394
|
+
const projectPackageJsonPath = _chunkINVPP6KUjs.joinPaths.call(void 0,
|
|
395
395
|
workspaceRoot3,
|
|
396
396
|
projectNode.data.root,
|
|
397
397
|
"package.json"
|
|
@@ -409,11 +409,11 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
if (localPackages.length > 0) {
|
|
412
|
-
|
|
412
|
+
_chunkINVPP6KUjs.writeTrace.call(void 0,
|
|
413
413
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
414
414
|
);
|
|
415
415
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
416
|
-
|
|
416
|
+
_chunkINVPP6KUjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
417
417
|
"utf8"
|
|
418
418
|
);
|
|
419
419
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -426,7 +426,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
426
426
|
}
|
|
427
427
|
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) => {
|
|
428
428
|
if (_optionalChain([projectConfigurations, 'access', _18 => _18.projects, 'optionalAccess', _19 => _19[dep]])) {
|
|
429
|
-
const depPackageJsonPath =
|
|
429
|
+
const depPackageJsonPath = _chunkINVPP6KUjs.joinPaths.call(void 0,
|
|
430
430
|
workspaceRoot3,
|
|
431
431
|
projectConfigurations.projects[dep].root,
|
|
432
432
|
"package.json"
|
|
@@ -457,14 +457,14 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
457
457
|
return ret;
|
|
458
458
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
459
459
|
} else {
|
|
460
|
-
|
|
460
|
+
_chunkINVPP6KUjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
461
461
|
}
|
|
462
462
|
return packageJson;
|
|
463
463
|
};
|
|
464
464
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
465
|
-
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
465
|
+
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkINVPP6KUjs.findWorkspaceRoot.call(void 0, );
|
|
466
466
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
467
|
-
|
|
467
|
+
_chunkINVPP6KUjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
468
468
|
"utf8"
|
|
469
469
|
);
|
|
470
470
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -475,7 +475,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
475
475
|
if (distSrc.startsWith("/")) {
|
|
476
476
|
distSrc = distSrc.substring(1);
|
|
477
477
|
}
|
|
478
|
-
packageJson.source ??= `${
|
|
478
|
+
packageJson.source ??= `${_chunkINVPP6KUjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
479
479
|
}
|
|
480
480
|
packageJson.files ??= ["dist/**/*"];
|
|
481
481
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -500,7 +500,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
500
500
|
packageJson.contributors = [packageJson.author];
|
|
501
501
|
}
|
|
502
502
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
503
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
503
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkINVPP6KUjs.joinPaths.call(void 0, "packages", projectName);
|
|
504
504
|
return packageJson;
|
|
505
505
|
};
|
|
506
506
|
|
|
@@ -534,11 +534,11 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
534
534
|
// ../esbuild/src/assets.ts
|
|
535
535
|
async function copyBuildAssets(context) {
|
|
536
536
|
if (_optionalChain([context, 'access', _28 => _28.result, 'optionalAccess', _29 => _29.errors, 'access', _30 => _30.length]) === 0) {
|
|
537
|
-
|
|
537
|
+
_chunkINVPP6KUjs.writeDebug.call(void 0,
|
|
538
538
|
` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`,
|
|
539
539
|
context.workspaceConfig
|
|
540
540
|
);
|
|
541
|
-
const stopwatch =
|
|
541
|
+
const stopwatch = _chunkINVPP6KUjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
542
542
|
await copyAssets(
|
|
543
543
|
context.workspaceConfig,
|
|
544
544
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
@@ -621,15 +621,15 @@ async function resolveContext(userOptions) {
|
|
|
621
621
|
if (!workspaceRoot3) {
|
|
622
622
|
throw new Error("Cannot find Nx workspace root");
|
|
623
623
|
}
|
|
624
|
-
const workspaceConfig = await
|
|
624
|
+
const workspaceConfig = await _chunkINVPP6KUjs.getWorkspaceConfig.call(void 0, true, {
|
|
625
625
|
workspaceRoot: workspaceRoot3.dir
|
|
626
626
|
});
|
|
627
|
-
|
|
628
|
-
const stopwatch =
|
|
627
|
+
_chunkINVPP6KUjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
628
|
+
const stopwatch = _chunkINVPP6KUjs.getStopwatch.call(void 0, "Build options resolution");
|
|
629
629
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
630
630
|
exitOnError: true
|
|
631
631
|
});
|
|
632
|
-
const projectJsonPath =
|
|
632
|
+
const projectJsonPath = _chunkINVPP6KUjs.joinPaths.call(void 0,
|
|
633
633
|
workspaceRoot3.dir,
|
|
634
634
|
projectRoot,
|
|
635
635
|
"project.json"
|
|
@@ -648,7 +648,7 @@ async function resolveContext(userOptions) {
|
|
|
648
648
|
}
|
|
649
649
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
650
650
|
options.name ??= projectName;
|
|
651
|
-
const packageJsonPath =
|
|
651
|
+
const packageJsonPath = _chunkINVPP6KUjs.joinPaths.call(void 0,
|
|
652
652
|
workspaceRoot3.dir,
|
|
653
653
|
options.projectRoot,
|
|
654
654
|
"package.json"
|
|
@@ -659,7 +659,7 @@ async function resolveContext(userOptions) {
|
|
|
659
659
|
const env = getEnv("esbuild", options);
|
|
660
660
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
661
661
|
const resolvedOptions = {
|
|
662
|
-
tsconfig:
|
|
662
|
+
tsconfig: _chunkINVPP6KUjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
|
|
663
663
|
...options,
|
|
664
664
|
metafile: userOptions.mode === "development",
|
|
665
665
|
clean: false,
|
|
@@ -685,8 +685,8 @@ async function resolveContext(userOptions) {
|
|
|
685
685
|
projectConfigurations,
|
|
686
686
|
projectName,
|
|
687
687
|
projectGraph,
|
|
688
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
689
|
-
outputPath: resolvedOptions.outputPath ||
|
|
688
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkINVPP6KUjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
689
|
+
outputPath: resolvedOptions.outputPath || _chunkINVPP6KUjs.joinPaths.call(void 0,
|
|
690
690
|
workspaceConfig.workspaceRoot,
|
|
691
691
|
"dist",
|
|
692
692
|
resolvedOptions.projectRoot
|
|
@@ -702,10 +702,10 @@ async function resolveContext(userOptions) {
|
|
|
702
702
|
|
|
703
703
|
|
|
704
704
|
async function generatePackageJson(context) {
|
|
705
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
706
|
-
|
|
707
|
-
const stopwatch =
|
|
708
|
-
const packageJsonPath =
|
|
705
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkINVPP6KUjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
706
|
+
_chunkINVPP6KUjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
707
|
+
const stopwatch = _chunkINVPP6KUjs.getStopwatch.call(void 0, "Write package.json file");
|
|
708
|
+
const packageJsonPath = _chunkINVPP6KUjs.joinPaths.call(void 0,
|
|
709
709
|
context.options.projectRoot,
|
|
710
710
|
"project.json"
|
|
711
711
|
);
|
|
@@ -713,7 +713,7 @@ async function generatePackageJson(context) {
|
|
|
713
713
|
throw new Error("Cannot find package.json configuration");
|
|
714
714
|
}
|
|
715
715
|
const packageJsonFile = await _promises2.default.readFile(
|
|
716
|
-
|
|
716
|
+
_chunkINVPP6KUjs.joinPaths.call(void 0,
|
|
717
717
|
context.workspaceConfig.workspaceRoot,
|
|
718
718
|
context.options.projectRoot,
|
|
719
719
|
"package.json"
|
|
@@ -819,7 +819,7 @@ async function generatePackageJson(context) {
|
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
821
|
await _devkit.writeJsonFile.call(void 0,
|
|
822
|
-
|
|
822
|
+
_chunkINVPP6KUjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
823
823
|
packageJson
|
|
824
824
|
);
|
|
825
825
|
stopwatch();
|
|
@@ -894,10 +894,10 @@ var depsCheckPlugin = (bundle) => ({
|
|
|
894
894
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
895
895
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
896
896
|
});
|
|
897
|
-
|
|
897
|
+
_chunkINVPP6KUjs.writeWarning.call(void 0,
|
|
898
898
|
`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
|
|
899
899
|
);
|
|
900
|
-
|
|
900
|
+
_chunkINVPP6KUjs.writeError.call(void 0,
|
|
901
901
|
`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
|
|
902
902
|
);
|
|
903
903
|
if (filteredMissingDeps.length > 0) {
|
|
@@ -912,14 +912,14 @@ ${JSON.stringify(filteredMissingDeps)}
|
|
|
912
912
|
// ../esbuild/src/tsup.ts
|
|
913
913
|
var _tsup = require('tsup');
|
|
914
914
|
async function executeTsup(context) {
|
|
915
|
-
|
|
915
|
+
_chunkINVPP6KUjs.writeDebug.call(void 0,
|
|
916
916
|
` \u{1F680} Running ${context.options.name} build`,
|
|
917
917
|
context.workspaceConfig
|
|
918
918
|
);
|
|
919
|
-
const stopwatch =
|
|
919
|
+
const stopwatch = _chunkINVPP6KUjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
920
920
|
await _tsup.build.call(void 0, {
|
|
921
921
|
...context.options,
|
|
922
|
-
outDir: context.options.distDir ?
|
|
922
|
+
outDir: context.options.distDir ? _chunkINVPP6KUjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
923
923
|
workspaceConfig: context.workspaceConfig
|
|
924
924
|
});
|
|
925
925
|
stopwatch();
|
|
@@ -930,17 +930,17 @@ async function executeTsup(context) {
|
|
|
930
930
|
async function reportResults(context) {
|
|
931
931
|
if (_optionalChain([context, 'access', _33 => _33.result, 'optionalAccess', _34 => _34.errors, 'access', _35 => _35.length]) === 0) {
|
|
932
932
|
if (context.result.warnings.length > 0) {
|
|
933
|
-
|
|
933
|
+
_chunkINVPP6KUjs.writeWarning.call(void 0,
|
|
934
934
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
935
935
|
context.workspaceConfig
|
|
936
936
|
);
|
|
937
937
|
}
|
|
938
|
-
|
|
938
|
+
_chunkINVPP6KUjs.writeSuccess.call(void 0,
|
|
939
939
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
940
940
|
context.workspaceConfig
|
|
941
941
|
);
|
|
942
942
|
} else if (_optionalChain([context, 'access', _36 => _36.result, 'optionalAccess', _37 => _37.errors]) && _optionalChain([context, 'access', _38 => _38.result, 'optionalAccess', _39 => _39.errors, 'access', _40 => _40.length]) > 0) {
|
|
943
|
-
|
|
943
|
+
_chunkINVPP6KUjs.writeError.call(void 0,
|
|
944
944
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
945
945
|
context.workspaceConfig
|
|
946
946
|
);
|
|
@@ -977,19 +977,19 @@ async function dependencyCheck(options) {
|
|
|
977
977
|
}
|
|
978
978
|
async function cleanOutputPath(context) {
|
|
979
979
|
if (context.clean !== false && context.outputPath) {
|
|
980
|
-
|
|
980
|
+
_chunkINVPP6KUjs.writeDebug.call(void 0,
|
|
981
981
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
982
982
|
context.workspaceConfig
|
|
983
983
|
);
|
|
984
|
-
const stopwatch =
|
|
984
|
+
const stopwatch = _chunkINVPP6KUjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
985
985
|
await cleanDirectories(context.outputPath);
|
|
986
986
|
stopwatch();
|
|
987
987
|
}
|
|
988
988
|
return context;
|
|
989
989
|
}
|
|
990
990
|
async function build2(options) {
|
|
991
|
-
|
|
992
|
-
const stopwatch =
|
|
991
|
+
_chunkINVPP6KUjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
992
|
+
const stopwatch = _chunkINVPP6KUjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
993
993
|
try {
|
|
994
994
|
const opts = Array.isArray(options) ? options : [options];
|
|
995
995
|
if (opts.length === 0) {
|
|
@@ -1004,9 +1004,9 @@ async function build2(options) {
|
|
|
1004
1004
|
executeTsup(context)
|
|
1005
1005
|
]);
|
|
1006
1006
|
await reportResults(context);
|
|
1007
|
-
|
|
1007
|
+
_chunkINVPP6KUjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1008
1008
|
} catch (error) {
|
|
1009
|
-
|
|
1009
|
+
_chunkINVPP6KUjs.writeFatal.call(void 0,
|
|
1010
1010
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
1011
1011
|
);
|
|
1012
1012
|
throw error;
|
|
@@ -1017,7 +1017,7 @@ async function build2(options) {
|
|
|
1017
1017
|
|
|
1018
1018
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1019
1019
|
async function esbuildExecutorFn(options, context, config) {
|
|
1020
|
-
|
|
1020
|
+
_chunkINVPP6KUjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1021
1021
|
if (!_optionalChain([context, 'access', _41 => _41.projectsConfigurations, 'optionalAccess', _42 => _42.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _43 => _43.projectsConfigurations, 'access', _44 => _44.projects, 'access', _45 => _45[context.projectName], 'optionalAccess', _46 => _46.root])) {
|
|
1022
1022
|
throw new Error(
|
|
1023
1023
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -1035,7 +1035,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
1035
1035
|
success: true
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
|
-
var executor_default6 =
|
|
1038
|
+
var executor_default6 = _chunkINVPP6KUjs.withRunExecutor.call(void 0,
|
|
1039
1039
|
"Storm ESBuild build",
|
|
1040
1040
|
esbuildExecutorFn,
|
|
1041
1041
|
{
|
|
@@ -1081,14 +1081,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1081
1081
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
1082
1082
|
);
|
|
1083
1083
|
}
|
|
1084
|
-
|
|
1084
|
+
_chunkINVPP6KUjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
1085
1085
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild3.default, _esbuildwhy2.default], {
|
|
1086
1086
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _58 => _58.projectsConfigurations, 'access', _59 => _59.projects, 'access', _60 => _60[context.projectName], 'optionalAccess', _61 => _61.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
1087
1087
|
_nullishCoalesce(_optionalChain([context, 'access', _62 => _62.projectsConfigurations, 'access', _63 => _63.projects, 'access', _64 => _64[context.projectName], 'optionalAccess', _65 => _65.root]), () => ( "./")),
|
|
1088
1088
|
"src"
|
|
1089
1089
|
)))
|
|
1090
1090
|
}).then((result) => {
|
|
1091
|
-
|
|
1091
|
+
_chunkINVPP6KUjs.writeInfo.call(void 0,
|
|
1092
1092
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
1093
1093
|
config
|
|
1094
1094
|
);
|
|
@@ -1097,7 +1097,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1097
1097
|
success: true
|
|
1098
1098
|
};
|
|
1099
1099
|
}
|
|
1100
|
-
var executor_default7 =
|
|
1100
|
+
var executor_default7 = _chunkINVPP6KUjs.withRunExecutor.call(void 0,
|
|
1101
1101
|
"Size-Limit Performance Test Executor",
|
|
1102
1102
|
sizeLimitExecutorFn,
|
|
1103
1103
|
{
|
|
@@ -1115,12 +1115,12 @@ var _fsextra = require('fs-extra');
|
|
|
1115
1115
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1116
1116
|
async function typiaExecutorFn(options, _, config) {
|
|
1117
1117
|
if (options.clean !== false) {
|
|
1118
|
-
|
|
1118
|
+
_chunkINVPP6KUjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
1119
1119
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1120
1120
|
}
|
|
1121
1121
|
await Promise.all(
|
|
1122
1122
|
options.entry.map((entry) => {
|
|
1123
|
-
|
|
1123
|
+
_chunkINVPP6KUjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
1124
1124
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1125
1125
|
input: entry,
|
|
1126
1126
|
output: options.outputPath,
|
|
@@ -1132,7 +1132,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
1132
1132
|
success: true
|
|
1133
1133
|
};
|
|
1134
1134
|
}
|
|
1135
|
-
var executor_default8 =
|
|
1135
|
+
var executor_default8 = _chunkINVPP6KUjs.withRunExecutor.call(void 0,
|
|
1136
1136
|
"Typia runtime validation generator",
|
|
1137
1137
|
typiaExecutorFn,
|
|
1138
1138
|
{
|
|
@@ -1153,7 +1153,7 @@ var executor_default8 = _chunkA4RDGLKCjs.withRunExecutor.call(void 0,
|
|
|
1153
1153
|
|
|
1154
1154
|
var _jiti = require('jiti');
|
|
1155
1155
|
async function unbuildExecutorFn(options, context, config) {
|
|
1156
|
-
|
|
1156
|
+
_chunkINVPP6KUjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1157
1157
|
if (!_optionalChain([context, 'access', _66 => _66.projectsConfigurations, 'optionalAccess', _67 => _67.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1158
1158
|
throw new Error(
|
|
1159
1159
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -1170,7 +1170,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1170
1170
|
);
|
|
1171
1171
|
}
|
|
1172
1172
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1173
|
-
fsCache: config.skipCache ? false :
|
|
1173
|
+
fsCache: config.skipCache ? false : _chunkINVPP6KUjs.joinPaths.call(void 0,
|
|
1174
1174
|
config.workspaceRoot,
|
|
1175
1175
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1176
1176
|
"jiti"
|
|
@@ -1192,7 +1192,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1192
1192
|
{
|
|
1193
1193
|
stubOptions: {
|
|
1194
1194
|
jiti: {
|
|
1195
|
-
fsCache: config.skipCache ? false :
|
|
1195
|
+
fsCache: config.skipCache ? false : _chunkINVPP6KUjs.joinPaths.call(void 0,
|
|
1196
1196
|
config.workspaceRoot,
|
|
1197
1197
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1198
1198
|
"jiti"
|
|
@@ -1221,7 +1221,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1221
1221
|
success: true
|
|
1222
1222
|
};
|
|
1223
1223
|
}
|
|
1224
|
-
var executor_default9 =
|
|
1224
|
+
var executor_default9 = _chunkINVPP6KUjs.withRunExecutor.call(void 0,
|
|
1225
1225
|
"TypeScript Unbuild build",
|
|
1226
1226
|
unbuildExecutorFn,
|
|
1227
1227
|
{
|
|
@@ -1252,45 +1252,45 @@ var executor_default9 = _chunkA4RDGLKCjs.withRunExecutor.call(void 0,
|
|
|
1252
1252
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
1253
1253
|
skipReadingConfig: false
|
|
1254
1254
|
}) => async (tree, _options) => {
|
|
1255
|
-
const stopwatch =
|
|
1255
|
+
const stopwatch = _chunkINVPP6KUjs.getStopwatch.call(void 0, name);
|
|
1256
1256
|
let options = _options;
|
|
1257
1257
|
let config;
|
|
1258
1258
|
try {
|
|
1259
|
-
|
|
1259
|
+
_chunkINVPP6KUjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1260
1260
|
|
|
1261
1261
|
`, config);
|
|
1262
|
-
const workspaceRoot3 =
|
|
1262
|
+
const workspaceRoot3 = _chunkINVPP6KUjs.findWorkspaceRoot.call(void 0, );
|
|
1263
1263
|
if (!generatorOptions.skipReadingConfig) {
|
|
1264
|
-
|
|
1264
|
+
_chunkINVPP6KUjs.writeDebug.call(void 0,
|
|
1265
1265
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1266
1266
|
- workspaceRoot: ${workspaceRoot3}`,
|
|
1267
1267
|
config
|
|
1268
1268
|
);
|
|
1269
|
-
config = await
|
|
1269
|
+
config = await _chunkINVPP6KUjs.getConfig.call(void 0, workspaceRoot3);
|
|
1270
1270
|
}
|
|
1271
1271
|
if (_optionalChain([generatorOptions, 'optionalAccess', _68 => _68.hooks, 'optionalAccess', _69 => _69.applyDefaultOptions])) {
|
|
1272
|
-
|
|
1272
|
+
_chunkINVPP6KUjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1273
1273
|
options = await Promise.resolve(
|
|
1274
1274
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
1275
1275
|
);
|
|
1276
|
-
|
|
1276
|
+
_chunkINVPP6KUjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
1277
1277
|
}
|
|
1278
|
-
|
|
1278
|
+
_chunkINVPP6KUjs.writeTrace.call(void 0,
|
|
1279
1279
|
`Generator schema options \u2699\uFE0F
|
|
1280
1280
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
1281
1281
|
config
|
|
1282
1282
|
);
|
|
1283
|
-
const tokenized = await
|
|
1283
|
+
const tokenized = await _chunkINVPP6KUjs.applyWorkspaceTokens.call(void 0,
|
|
1284
1284
|
options,
|
|
1285
1285
|
{ workspaceRoot: tree.root, config },
|
|
1286
|
-
|
|
1286
|
+
_chunkINVPP6KUjs.applyWorkspaceBaseTokens
|
|
1287
1287
|
);
|
|
1288
1288
|
if (_optionalChain([generatorOptions, 'optionalAccess', _70 => _70.hooks, 'optionalAccess', _71 => _71.preProcess])) {
|
|
1289
|
-
|
|
1289
|
+
_chunkINVPP6KUjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1290
1290
|
await Promise.resolve(
|
|
1291
1291
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
1292
1292
|
);
|
|
1293
|
-
|
|
1293
|
+
_chunkINVPP6KUjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1294
1294
|
}
|
|
1295
1295
|
const result = await Promise.resolve(
|
|
1296
1296
|
generatorFn(tree, tokenized, config)
|
|
@@ -1305,21 +1305,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
1307
|
if (_optionalChain([generatorOptions, 'optionalAccess', _81 => _81.hooks, 'optionalAccess', _82 => _82.postProcess])) {
|
|
1308
|
-
|
|
1308
|
+
_chunkINVPP6KUjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1309
1309
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1310
|
-
|
|
1310
|
+
_chunkINVPP6KUjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
1311
1311
|
}
|
|
1312
1312
|
return () => {
|
|
1313
|
-
|
|
1313
|
+
_chunkINVPP6KUjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
1314
1314
|
`, config);
|
|
1315
1315
|
};
|
|
1316
1316
|
} catch (error) {
|
|
1317
1317
|
return () => {
|
|
1318
|
-
|
|
1318
|
+
_chunkINVPP6KUjs.writeFatal.call(void 0,
|
|
1319
1319
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
1320
1320
|
config
|
|
1321
1321
|
);
|
|
1322
|
-
|
|
1322
|
+
_chunkINVPP6KUjs.writeError.call(void 0,
|
|
1323
1323
|
`An exception was thrown in the generator's process
|
|
1324
1324
|
- Details: ${error.message}
|
|
1325
1325
|
- Stacktrace: ${error.stack}`,
|
|
@@ -1445,16 +1445,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1445
1445
|
const projectConfig = {
|
|
1446
1446
|
root: normalized.directory,
|
|
1447
1447
|
projectType: "library",
|
|
1448
|
-
sourceRoot:
|
|
1448
|
+
sourceRoot: _chunkINVPP6KUjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
1449
1449
|
targets: {
|
|
1450
1450
|
build: {
|
|
1451
1451
|
executor: options.buildExecutor,
|
|
1452
1452
|
outputs: ["{options.outputPath}"],
|
|
1453
1453
|
options: {
|
|
1454
|
-
entry: [
|
|
1454
|
+
entry: [_chunkINVPP6KUjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
1455
1455
|
outputPath: getOutputPath(normalized),
|
|
1456
|
-
tsconfig:
|
|
1457
|
-
project:
|
|
1456
|
+
tsconfig: _chunkINVPP6KUjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
1457
|
+
project: _chunkINVPP6KUjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
1458
1458
|
defaultConfiguration: "production",
|
|
1459
1459
|
platform: "neutral",
|
|
1460
1460
|
assets: [
|
|
@@ -1511,7 +1511,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1511
1511
|
if (!normalized.importPath) {
|
|
1512
1512
|
normalized.importPath = normalized.name;
|
|
1513
1513
|
}
|
|
1514
|
-
const packageJsonPath =
|
|
1514
|
+
const packageJsonPath = _chunkINVPP6KUjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
1515
1515
|
if (tree.exists(packageJsonPath)) {
|
|
1516
1516
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
1517
1517
|
if (!normalized.importPath) {
|
|
@@ -1568,14 +1568,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1568
1568
|
}));
|
|
1569
1569
|
}
|
|
1570
1570
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
1571
|
-
|
|
1571
|
+
_chunkINVPP6KUjs.joinPaths.call(void 0,
|
|
1572
1572
|
normalized.projectRoot,
|
|
1573
1573
|
"./src",
|
|
1574
1574
|
`index.${normalized.js ? "js" : "ts"}`
|
|
1575
1575
|
)
|
|
1576
1576
|
]);
|
|
1577
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
1578
|
-
|
|
1577
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkINVPP6KUjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
1578
|
+
_chunkINVPP6KUjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
1579
1579
|
]);
|
|
1580
1580
|
if (tree.exists("package.json")) {
|
|
1581
1581
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -1586,7 +1586,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1586
1586
|
description = packageJson.description;
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
|
-
const tsconfigPath =
|
|
1589
|
+
const tsconfigPath = _chunkINVPP6KUjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
1590
1590
|
if (tree.exists(tsconfigPath)) {
|
|
1591
1591
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
1592
1592
|
json.composite ??= true;
|
|
@@ -1614,7 +1614,7 @@ function getOutputPath(options) {
|
|
|
1614
1614
|
} else {
|
|
1615
1615
|
parts.push(options.projectRoot);
|
|
1616
1616
|
}
|
|
1617
|
-
return
|
|
1617
|
+
return _chunkINVPP6KUjs.joinPaths.call(void 0, ...parts);
|
|
1618
1618
|
}
|
|
1619
1619
|
function createProjectTsConfigJson(tree, options) {
|
|
1620
1620
|
const tsconfig = {
|
|
@@ -1622,7 +1622,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
1622
1622
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _94 => _94.tsconfigOptions]), () => ( {})),
|
|
1623
1623
|
compilerOptions: {
|
|
1624
1624
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
1625
|
-
outDir:
|
|
1625
|
+
outDir: _chunkINVPP6KUjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
1626
1626
|
noEmit: true,
|
|
1627
1627
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _95 => _95.tsconfigOptions, 'optionalAccess', _96 => _96.compilerOptions]), () => ( {}))
|
|
1628
1628
|
},
|
|
@@ -1640,7 +1640,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
1640
1640
|
"src/**/*.test.ts"
|
|
1641
1641
|
]
|
|
1642
1642
|
};
|
|
1643
|
-
_devkit.writeJson.call(void 0, tree,
|
|
1643
|
+
_devkit.writeJson.call(void 0, tree, _chunkINVPP6KUjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
1644
1644
|
}
|
|
1645
1645
|
async function normalizeOptions(tree, options, config) {
|
|
1646
1646
|
let importPath = options.importPath;
|
|
@@ -1705,7 +1705,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
1705
1705
|
|
|
1706
1706
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
1707
1707
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
1708
|
-
const filesDir =
|
|
1708
|
+
const filesDir = _chunkINVPP6KUjs.joinPaths.call(void 0,
|
|
1709
1709
|
__dirname,
|
|
1710
1710
|
"src",
|
|
1711
1711
|
"generators",
|
|
@@ -1788,29 +1788,29 @@ var generator_default = withRunGenerator(
|
|
|
1788
1788
|
|
|
1789
1789
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
1790
1790
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
1791
|
-
|
|
1791
|
+
_chunkINVPP6KUjs.writeInfo.call(void 0,
|
|
1792
1792
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
1793
1793
|
config
|
|
1794
1794
|
);
|
|
1795
|
-
|
|
1795
|
+
_chunkINVPP6KUjs.writeTrace.call(void 0,
|
|
1796
1796
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
1797
1797
|
config
|
|
1798
1798
|
);
|
|
1799
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
1799
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkINVPP6KUjs.stormWorkspaceConfigSchema, {
|
|
1800
1800
|
name: "StormWorkspaceConfiguration"
|
|
1801
1801
|
});
|
|
1802
|
-
|
|
1802
|
+
_chunkINVPP6KUjs.writeTrace.call(void 0, jsonSchema, config);
|
|
1803
1803
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
1804
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _105 => _105.workspaceRoot]), () => (
|
|
1804
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _105 => _105.workspaceRoot]), () => ( _chunkINVPP6KUjs.findWorkspaceRoot.call(void 0, ))),
|
|
1805
1805
|
_optionalChain([options, 'access', _106 => _106.outputFile, 'optionalAccess', _107 => _107.startsWith, 'call', _108 => _108("./")]) ? "" : "./"
|
|
1806
1806
|
);
|
|
1807
|
-
|
|
1807
|
+
_chunkINVPP6KUjs.writeTrace.call(void 0,
|
|
1808
1808
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
1809
1809
|
config
|
|
1810
1810
|
);
|
|
1811
1811
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
1812
1812
|
await _devkit.formatFiles.call(void 0, tree);
|
|
1813
|
-
|
|
1813
|
+
_chunkINVPP6KUjs.writeSuccess.call(void 0,
|
|
1814
1814
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
1815
1815
|
config
|
|
1816
1816
|
);
|
|
@@ -1866,7 +1866,7 @@ async function initGenerator(tree, schema) {
|
|
|
1866
1866
|
|
|
1867
1867
|
|
|
1868
1868
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
1869
|
-
const filesDir =
|
|
1869
|
+
const filesDir = _chunkINVPP6KUjs.joinPaths.call(void 0,
|
|
1870
1870
|
__dirname,
|
|
1871
1871
|
"src",
|
|
1872
1872
|
"generators",
|
|
@@ -1925,7 +1925,7 @@ var generator_default3 = withRunGenerator(
|
|
|
1925
1925
|
|
|
1926
1926
|
|
|
1927
1927
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
1928
|
-
const filesDir =
|
|
1928
|
+
const filesDir = _chunkINVPP6KUjs.joinPaths.call(void 0,
|
|
1929
1929
|
__dirname,
|
|
1930
1930
|
"src",
|
|
1931
1931
|
"generators",
|