@storm-software/terraform-tools 0.66.37 → 0.66.39
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 +21 -0
- package/README.md +1 -1
- package/dist/{chunk-5HO53HJ3.mjs → chunk-FWAF6R4A.mjs} +1 -1
- package/dist/{chunk-7AZE3K4P.mjs → chunk-IIPUZ5AE.mjs} +1 -1
- package/dist/{chunk-6RZAGMSF.js → chunk-K7JZ7UTB.js} +2 -2
- package/dist/{chunk-R4ETDLP6.mjs → chunk-KZEHOWK5.mjs} +1 -1
- package/dist/{chunk-ZISYG6C7.js → chunk-L3ZTPXFN.js} +2 -2
- package/dist/{chunk-E5FMZKGS.js → chunk-L6VCKURS.js} +157 -157
- package/dist/{chunk-6P6B7BLA.js → chunk-MAPY5NQO.js} +2 -2
- package/dist/{chunk-GKAXLY2M.js → chunk-NQXYKE2V.js} +2 -2
- package/dist/{chunk-3V5IPCSZ.mjs → chunk-QTC663BL.mjs} +1 -1
- package/dist/{chunk-MKG63IZW.js → chunk-SJYVO5AC.js} +5 -5
- package/dist/{chunk-KRBXYR4N.js → chunk-UUYANZ3H.js} +2 -2
- package/dist/{chunk-X5B77W3R.mjs → chunk-WP424HWU.mjs} +1 -1
- package/dist/{chunk-LBBKR3H3.mjs → chunk-WQZF2VNK.mjs} +1 -1
- package/dist/{chunk-ER7HCQXR.mjs → chunk-X756M2WJ.mjs} +5 -5
- 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 +5 -5
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkSJYVO5ACjs = require('./chunk-SJYVO5AC.js');
|
|
24
24
|
|
|
25
25
|
// src/generators/init/init.ts
|
|
26
26
|
var _devkit = require('@nx/devkit');
|
|
@@ -147,7 +147,7 @@ async function cargoBuildExecutor(options, context) {
|
|
|
147
147
|
const command = buildCargoCommand("build", options, context);
|
|
148
148
|
return await cargoCommand(context.root, ...command);
|
|
149
149
|
}
|
|
150
|
-
var executor_default =
|
|
150
|
+
var executor_default = _chunkSJYVO5ACjs.withRunExecutor.call(void 0,
|
|
151
151
|
"Cargo - Build",
|
|
152
152
|
cargoBuildExecutor,
|
|
153
153
|
{
|
|
@@ -167,7 +167,7 @@ async function cargoCheckExecutor(options, context) {
|
|
|
167
167
|
const command = buildCargoCommand("check", options, context);
|
|
168
168
|
return await cargoCommand(context.root, ...command);
|
|
169
169
|
}
|
|
170
|
-
var executor_default2 =
|
|
170
|
+
var executor_default2 = _chunkSJYVO5ACjs.withRunExecutor.call(void 0,
|
|
171
171
|
"Cargo - Check",
|
|
172
172
|
cargoCheckExecutor,
|
|
173
173
|
{
|
|
@@ -186,7 +186,7 @@ async function cargoClippyExecutor(options, context) {
|
|
|
186
186
|
const command = buildCargoCommand("clippy", options, context);
|
|
187
187
|
return await cargoCommand(context.root, ...command);
|
|
188
188
|
}
|
|
189
|
-
var executor_default3 =
|
|
189
|
+
var executor_default3 = _chunkSJYVO5ACjs.withRunExecutor.call(void 0,
|
|
190
190
|
"Cargo - Clippy",
|
|
191
191
|
cargoClippyExecutor,
|
|
192
192
|
{
|
|
@@ -209,7 +209,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
209
209
|
const command = buildCargoCommand("doc", options, context);
|
|
210
210
|
return await cargoCommand(context.root, ...command);
|
|
211
211
|
}
|
|
212
|
-
var executor_default4 =
|
|
212
|
+
var executor_default4 = _chunkSJYVO5ACjs.withRunExecutor.call(void 0,
|
|
213
213
|
"Cargo - Doc",
|
|
214
214
|
cargoDocExecutor,
|
|
215
215
|
{
|
|
@@ -235,7 +235,7 @@ async function cargoFormatExecutor(options, context) {
|
|
|
235
235
|
const command = buildCargoCommand("fmt", options, context);
|
|
236
236
|
return await cargoCommand(context.root, ...command);
|
|
237
237
|
}
|
|
238
|
-
var executor_default5 =
|
|
238
|
+
var executor_default5 = _chunkSJYVO5ACjs.withRunExecutor.call(void 0,
|
|
239
239
|
"Cargo - Format",
|
|
240
240
|
cargoFormatExecutor,
|
|
241
241
|
{
|
|
@@ -311,9 +311,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
311
311
|
output: "src/"
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
|
-
|
|
314
|
+
_chunkSJYVO5ACjs.writeTrace.call(void 0,
|
|
315
315
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
316
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
316
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkSJYVO5ACjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
317
317
|
config
|
|
318
318
|
);
|
|
319
319
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -323,20 +323,20 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
323
323
|
assets: pendingAssets
|
|
324
324
|
});
|
|
325
325
|
await assetHandler.processAllAssetsOnce();
|
|
326
|
-
|
|
326
|
+
_chunkSJYVO5ACjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
327
327
|
if (includeSrc === true) {
|
|
328
|
-
|
|
329
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
328
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0,
|
|
329
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkSJYVO5ACjs.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
|
+
_chunkSJYVO5ACjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
337
|
+
_chunkSJYVO5ACjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
338
|
+
_chunkSJYVO5ACjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
339
|
+
_chunkSJYVO5ACjs.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 (workspaceRoot2, projectRoot, projectName, pa
|
|
|
391
391
|
)) {
|
|
392
392
|
const projectNode = project.node;
|
|
393
393
|
if (projectNode.data.root) {
|
|
394
|
-
const projectPackageJsonPath =
|
|
394
|
+
const projectPackageJsonPath = _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
395
395
|
workspaceRoot2,
|
|
396
396
|
projectNode.data.root,
|
|
397
397
|
"package.json"
|
|
@@ -409,11 +409,11 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
if (localPackages.length > 0) {
|
|
412
|
-
|
|
412
|
+
_chunkSJYVO5ACjs.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
|
+
_chunkSJYVO5ACjs.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 (workspaceRoot2, 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 = _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
430
430
|
workspaceRoot2,
|
|
431
431
|
projectConfigurations.projects[dep].root,
|
|
432
432
|
"package.json"
|
|
@@ -457,14 +457,14 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
457
457
|
return ret;
|
|
458
458
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
459
459
|
} else {
|
|
460
|
-
|
|
460
|
+
_chunkSJYVO5ACjs.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 workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
465
|
+
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkSJYVO5ACjs.findWorkspaceRoot.call(void 0, );
|
|
466
466
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
467
|
-
|
|
467
|
+
_chunkSJYVO5ACjs.joinPaths.call(void 0, workspaceRoot2, "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 ??= `${_chunkSJYVO5ACjs.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 : _chunkSJYVO5ACjs.joinPaths.call(void 0, "packages", projectName);
|
|
504
504
|
return packageJson;
|
|
505
505
|
};
|
|
506
506
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -554,11 +554,11 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
554
554
|
// ../esbuild/src/assets.ts
|
|
555
555
|
async function copyBuildAssets(context) {
|
|
556
556
|
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])) {
|
|
557
|
-
|
|
557
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0,
|
|
558
558
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
559
559
|
context.workspaceConfig
|
|
560
560
|
);
|
|
561
|
-
const stopwatch =
|
|
561
|
+
const stopwatch = _chunkSJYVO5ACjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
562
562
|
await copyAssets(
|
|
563
563
|
context.workspaceConfig,
|
|
564
564
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
@@ -639,15 +639,15 @@ async function resolveContext(userOptions) {
|
|
|
639
639
|
if (!workspaceRoot2) {
|
|
640
640
|
throw new Error("Cannot find Nx workspace root");
|
|
641
641
|
}
|
|
642
|
-
const workspaceConfig = await
|
|
642
|
+
const workspaceConfig = await _chunkSJYVO5ACjs.getWorkspaceConfig.call(void 0, true, {
|
|
643
643
|
workspaceRoot: workspaceRoot2.dir
|
|
644
644
|
});
|
|
645
|
-
|
|
646
|
-
const stopwatch =
|
|
645
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
646
|
+
const stopwatch = _chunkSJYVO5ACjs.getStopwatch.call(void 0, "Build options resolution");
|
|
647
647
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
648
648
|
exitOnError: true
|
|
649
649
|
});
|
|
650
|
-
const projectJsonPath =
|
|
650
|
+
const projectJsonPath = _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
651
651
|
workspaceRoot2.dir,
|
|
652
652
|
projectRoot,
|
|
653
653
|
"project.json"
|
|
@@ -666,7 +666,7 @@ async function resolveContext(userOptions) {
|
|
|
666
666
|
}
|
|
667
667
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
668
668
|
options.name ??= projectName;
|
|
669
|
-
const packageJsonPath =
|
|
669
|
+
const packageJsonPath = _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
670
670
|
workspaceRoot2.dir,
|
|
671
671
|
options.projectRoot,
|
|
672
672
|
"package.json"
|
|
@@ -678,7 +678,7 @@ async function resolveContext(userOptions) {
|
|
|
678
678
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
679
679
|
const resolvedOptions = {
|
|
680
680
|
...options,
|
|
681
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
681
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkSJYVO5ACjs.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
682
682
|
metafile: userOptions.mode === "development",
|
|
683
683
|
clean: false,
|
|
684
684
|
env,
|
|
@@ -703,8 +703,8 @@ async function resolveContext(userOptions) {
|
|
|
703
703
|
projectConfigurations,
|
|
704
704
|
projectName,
|
|
705
705
|
projectGraph,
|
|
706
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
707
|
-
outputPath: resolvedOptions.outputPath ||
|
|
706
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkSJYVO5ACjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
707
|
+
outputPath: resolvedOptions.outputPath || _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
708
708
|
workspaceConfig.workspaceRoot,
|
|
709
709
|
"dist",
|
|
710
710
|
resolvedOptions.projectRoot
|
|
@@ -713,10 +713,10 @@ async function resolveContext(userOptions) {
|
|
|
713
713
|
};
|
|
714
714
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
715
715
|
if (context.options.verbose) {
|
|
716
|
-
|
|
716
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0,
|
|
717
717
|
` \u2699\uFE0F Build options resolved:
|
|
718
718
|
|
|
719
|
-
${
|
|
719
|
+
${_chunkSJYVO5ACjs.formatLogMessage.call(void 0, context.options)}`,
|
|
720
720
|
workspaceConfig
|
|
721
721
|
);
|
|
722
722
|
}
|
|
@@ -728,10 +728,10 @@ ${_chunkMKG63IZWjs.formatLogMessage.call(void 0, context.options)}`,
|
|
|
728
728
|
|
|
729
729
|
|
|
730
730
|
async function generatePackageJson(context) {
|
|
731
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
732
|
-
|
|
733
|
-
const stopwatch =
|
|
734
|
-
const packageJsonPath =
|
|
731
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkSJYVO5ACjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
732
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
733
|
+
const stopwatch = _chunkSJYVO5ACjs.getStopwatch.call(void 0, "Write package.json file");
|
|
734
|
+
const packageJsonPath = _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
735
735
|
context.options.projectRoot,
|
|
736
736
|
"project.json"
|
|
737
737
|
);
|
|
@@ -739,7 +739,7 @@ async function generatePackageJson(context) {
|
|
|
739
739
|
throw new Error("Cannot find package.json configuration");
|
|
740
740
|
}
|
|
741
741
|
const packageJsonFile = await _promises2.default.readFile(
|
|
742
|
-
|
|
742
|
+
_chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
743
743
|
context.workspaceConfig.workspaceRoot,
|
|
744
744
|
context.options.projectRoot,
|
|
745
745
|
"package.json"
|
|
@@ -845,7 +845,7 @@ async function generatePackageJson(context) {
|
|
|
845
845
|
}
|
|
846
846
|
}
|
|
847
847
|
await _devkit.writeJsonFile.call(void 0,
|
|
848
|
-
|
|
848
|
+
_chunkSJYVO5ACjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
849
849
|
packageJson
|
|
850
850
|
);
|
|
851
851
|
stopwatch();
|
|
@@ -857,12 +857,12 @@ async function generatePackageJson(context) {
|
|
|
857
857
|
var _tsup = require('tsup');
|
|
858
858
|
async function build(options) {
|
|
859
859
|
if (!options.silent) {
|
|
860
|
-
|
|
860
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0,
|
|
861
861
|
` \u{1F680} Running ${options.name || "tsup"} build`,
|
|
862
862
|
options.workspaceConfig
|
|
863
863
|
);
|
|
864
864
|
}
|
|
865
|
-
const stopwatch =
|
|
865
|
+
const stopwatch = _chunkSJYVO5ACjs.getStopwatch.call(void 0, `${options.name || "tsup"} build`);
|
|
866
866
|
await _tsup.build.call(void 0, options);
|
|
867
867
|
if (!options.silent) {
|
|
868
868
|
stopwatch();
|
|
@@ -871,14 +871,14 @@ async function build(options) {
|
|
|
871
871
|
|
|
872
872
|
// ../esbuild/src/tsup.ts
|
|
873
873
|
async function executeTsup(context) {
|
|
874
|
-
|
|
874
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0,
|
|
875
875
|
` \u{1F680} Running ${context.options.name} build`,
|
|
876
876
|
context.workspaceConfig
|
|
877
877
|
);
|
|
878
|
-
const stopwatch =
|
|
878
|
+
const stopwatch = _chunkSJYVO5ACjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
879
879
|
await build({
|
|
880
880
|
...context.options,
|
|
881
|
-
outDir: context.options.distDir ?
|
|
881
|
+
outDir: context.options.distDir ? _chunkSJYVO5ACjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
882
882
|
workspaceConfig: context.workspaceConfig
|
|
883
883
|
});
|
|
884
884
|
stopwatch();
|
|
@@ -889,17 +889,17 @@ async function executeTsup(context) {
|
|
|
889
889
|
async function reportResults(context) {
|
|
890
890
|
if (_optionalChain([context, 'access', _36 => _36.result, 'optionalAccess', _37 => _37.errors, 'access', _38 => _38.length]) === 0) {
|
|
891
891
|
if (context.result.warnings.length > 0) {
|
|
892
|
-
|
|
892
|
+
_chunkSJYVO5ACjs.writeWarning.call(void 0,
|
|
893
893
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
894
894
|
context.workspaceConfig
|
|
895
895
|
);
|
|
896
896
|
}
|
|
897
|
-
|
|
897
|
+
_chunkSJYVO5ACjs.writeSuccess.call(void 0,
|
|
898
898
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
899
899
|
context.workspaceConfig
|
|
900
900
|
);
|
|
901
901
|
} 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) {
|
|
902
|
-
|
|
902
|
+
_chunkSJYVO5ACjs.writeError.call(void 0,
|
|
903
903
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
904
904
|
context.workspaceConfig
|
|
905
905
|
);
|
|
@@ -910,19 +910,19 @@ async function reportResults(context) {
|
|
|
910
910
|
}
|
|
911
911
|
async function cleanOutputPath(context) {
|
|
912
912
|
if (context.clean !== false && context.outputPath) {
|
|
913
|
-
|
|
913
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0,
|
|
914
914
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
915
915
|
context.workspaceConfig
|
|
916
916
|
);
|
|
917
|
-
const stopwatch =
|
|
917
|
+
const stopwatch = _chunkSJYVO5ACjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
918
918
|
await cleanDirectories(context.outputPath);
|
|
919
919
|
stopwatch();
|
|
920
920
|
}
|
|
921
921
|
return context;
|
|
922
922
|
}
|
|
923
923
|
async function build2(options) {
|
|
924
|
-
|
|
925
|
-
const stopwatch =
|
|
924
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
925
|
+
const stopwatch = _chunkSJYVO5ACjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
926
926
|
try {
|
|
927
927
|
const opts = Array.isArray(options) ? options : [options];
|
|
928
928
|
if (opts.length === 0) {
|
|
@@ -937,9 +937,9 @@ async function build2(options) {
|
|
|
937
937
|
executeTsup(context)
|
|
938
938
|
]);
|
|
939
939
|
await reportResults(context);
|
|
940
|
-
|
|
940
|
+
_chunkSJYVO5ACjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
941
941
|
} catch (error) {
|
|
942
|
-
|
|
942
|
+
_chunkSJYVO5ACjs.writeFatal.call(void 0,
|
|
943
943
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
944
944
|
);
|
|
945
945
|
throw error;
|
|
@@ -950,7 +950,7 @@ async function build2(options) {
|
|
|
950
950
|
|
|
951
951
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
952
952
|
async function esbuildExecutorFn(options, context, config) {
|
|
953
|
-
|
|
953
|
+
_chunkSJYVO5ACjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
954
954
|
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])) {
|
|
955
955
|
throw new Error(
|
|
956
956
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -971,7 +971,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
971
971
|
success: true
|
|
972
972
|
};
|
|
973
973
|
}
|
|
974
|
-
var executor_default6 =
|
|
974
|
+
var executor_default6 = _chunkSJYVO5ACjs.withRunExecutor.call(void 0,
|
|
975
975
|
"Storm ESBuild build",
|
|
976
976
|
esbuildExecutorFn,
|
|
977
977
|
{
|
|
@@ -992,7 +992,7 @@ var _jiti = require('jiti');
|
|
|
992
992
|
var _fileutils = require('nx/src/utils/fileutils');
|
|
993
993
|
async function napiExecutor(options, context, config) {
|
|
994
994
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
995
|
-
fsCache: config.skipCache ? false :
|
|
995
|
+
fsCache: config.skipCache ? false : _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
996
996
|
config.workspaceRoot,
|
|
997
997
|
config.directories.cache || "node_modules/.cache/storm",
|
|
998
998
|
"jiti"
|
|
@@ -1008,53 +1008,53 @@ async function napiExecutor(options, context, config) {
|
|
|
1008
1008
|
);
|
|
1009
1009
|
}
|
|
1010
1010
|
const projectRoot = _optionalChain([context, 'access', _61 => _61.projectGraph, 'optionalAccess', _62 => _62.nodes, 'access', _63 => _63[_nullishCoalesce(context.projectName, () => ( ""))], 'access', _64 => _64.data, 'access', _65 => _65.root]);
|
|
1011
|
-
const packageJson =
|
|
1011
|
+
const packageJson = _chunkSJYVO5ACjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
1012
1012
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
1013
1013
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
1014
1014
|
}
|
|
1015
1015
|
const napi = new NapiCli();
|
|
1016
1016
|
const normalizedOptions = { ...options };
|
|
1017
1017
|
const metadata = cargoMetadata();
|
|
1018
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _66 => _66.target_directory]) ||
|
|
1018
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _66 => _66.target_directory]) || _chunkSJYVO5ACjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
1019
1019
|
normalizedOptions.outputDir = options.outputPath;
|
|
1020
1020
|
normalizedOptions.packageJsonPath = options.packageJsonPath || packageJson;
|
|
1021
1021
|
if (options.cwd) {
|
|
1022
|
-
normalizedOptions.cwd =
|
|
1022
|
+
normalizedOptions.cwd = _chunkSJYVO5ACjs.correctPaths.call(void 0, options.cwd);
|
|
1023
1023
|
} else {
|
|
1024
|
-
normalizedOptions.cwd =
|
|
1025
|
-
const absoluteProjectRoot =
|
|
1024
|
+
normalizedOptions.cwd = _chunkSJYVO5ACjs.correctPaths.call(void 0, projectRoot);
|
|
1025
|
+
const absoluteProjectRoot = _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
1026
1026
|
config.workspaceRoot,
|
|
1027
1027
|
projectRoot || "."
|
|
1028
1028
|
);
|
|
1029
1029
|
if (normalizedOptions.outputDir) {
|
|
1030
|
-
normalizedOptions.outputDir =
|
|
1030
|
+
normalizedOptions.outputDir = _chunkSJYVO5ACjs.relative.call(void 0,
|
|
1031
1031
|
absoluteProjectRoot,
|
|
1032
|
-
|
|
1033
|
-
|
|
1032
|
+
_chunkSJYVO5ACjs.correctPaths.call(void 0,
|
|
1033
|
+
_chunkSJYVO5ACjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkSJYVO5ACjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
1034
1034
|
)
|
|
1035
1035
|
);
|
|
1036
1036
|
}
|
|
1037
1037
|
if (normalizedOptions.packageJsonPath) {
|
|
1038
|
-
normalizedOptions.packageJsonPath =
|
|
1038
|
+
normalizedOptions.packageJsonPath = _chunkSJYVO5ACjs.relative.call(void 0,
|
|
1039
1039
|
absoluteProjectRoot,
|
|
1040
|
-
|
|
1041
|
-
|
|
1040
|
+
_chunkSJYVO5ACjs.correctPaths.call(void 0,
|
|
1041
|
+
_chunkSJYVO5ACjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkSJYVO5ACjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
1042
1042
|
)
|
|
1043
1043
|
);
|
|
1044
1044
|
}
|
|
1045
1045
|
if (normalizedOptions.configPath) {
|
|
1046
|
-
normalizedOptions.configPath =
|
|
1046
|
+
normalizedOptions.configPath = _chunkSJYVO5ACjs.relative.call(void 0,
|
|
1047
1047
|
absoluteProjectRoot,
|
|
1048
|
-
|
|
1049
|
-
|
|
1048
|
+
_chunkSJYVO5ACjs.correctPaths.call(void 0,
|
|
1049
|
+
_chunkSJYVO5ACjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkSJYVO5ACjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
1050
1050
|
)
|
|
1051
1051
|
);
|
|
1052
1052
|
}
|
|
1053
1053
|
if (normalizedOptions.manifestPath) {
|
|
1054
|
-
normalizedOptions.manifestPath =
|
|
1054
|
+
normalizedOptions.manifestPath = _chunkSJYVO5ACjs.relative.call(void 0,
|
|
1055
1055
|
absoluteProjectRoot,
|
|
1056
|
-
|
|
1057
|
-
|
|
1056
|
+
_chunkSJYVO5ACjs.correctPaths.call(void 0,
|
|
1057
|
+
_chunkSJYVO5ACjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkSJYVO5ACjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
1058
1058
|
)
|
|
1059
1059
|
);
|
|
1060
1060
|
}
|
|
@@ -1065,7 +1065,7 @@ async function napiExecutor(options, context, config) {
|
|
|
1065
1065
|
const { task } = await napi.build(normalizedOptions);
|
|
1066
1066
|
return { success: true, terminalOutput: await task };
|
|
1067
1067
|
}
|
|
1068
|
-
var executor_default7 =
|
|
1068
|
+
var executor_default7 = _chunkSJYVO5ACjs.withRunExecutor.call(void 0,
|
|
1069
1069
|
"Napi - Build Bindings",
|
|
1070
1070
|
napiExecutor,
|
|
1071
1071
|
{
|
|
@@ -1200,14 +1200,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1200
1200
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
1201
1201
|
);
|
|
1202
1202
|
}
|
|
1203
|
-
|
|
1203
|
+
_chunkSJYVO5ACjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
1204
1204
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
1205
1205
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _70 => _70.projectsConfigurations, 'access', _71 => _71.projects, 'access', _72 => _72[context.projectName], 'optionalAccess', _73 => _73.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
1206
1206
|
_nullishCoalesce(_optionalChain([context, 'access', _74 => _74.projectsConfigurations, 'access', _75 => _75.projects, 'access', _76 => _76[context.projectName], 'optionalAccess', _77 => _77.root]), () => ( "./")),
|
|
1207
1207
|
"src"
|
|
1208
1208
|
)))
|
|
1209
1209
|
}).then((result) => {
|
|
1210
|
-
|
|
1210
|
+
_chunkSJYVO5ACjs.writeInfo.call(void 0,
|
|
1211
1211
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
1212
1212
|
config
|
|
1213
1213
|
);
|
|
@@ -1216,7 +1216,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1216
1216
|
success: true
|
|
1217
1217
|
};
|
|
1218
1218
|
}
|
|
1219
|
-
var executor_default8 =
|
|
1219
|
+
var executor_default8 = _chunkSJYVO5ACjs.withRunExecutor.call(void 0,
|
|
1220
1220
|
"Size-Limit Performance Test Executor",
|
|
1221
1221
|
sizeLimitExecutorFn,
|
|
1222
1222
|
{
|
|
@@ -1277,19 +1277,19 @@ function toTSDownFormat(format4) {
|
|
|
1277
1277
|
// ../tsdown/src/build.ts
|
|
1278
1278
|
var resolveOptions = async (userOptions) => {
|
|
1279
1279
|
const options = getDefaultOptions(userOptions);
|
|
1280
|
-
const workspaceRoot2 =
|
|
1280
|
+
const workspaceRoot2 = _chunkSJYVO5ACjs.findWorkspaceRoot.call(void 0, options.projectRoot);
|
|
1281
1281
|
if (!workspaceRoot2) {
|
|
1282
1282
|
throw new Error("Cannot find Nx workspace root");
|
|
1283
1283
|
}
|
|
1284
|
-
const workspaceConfig = await
|
|
1284
|
+
const workspaceConfig = await _chunkSJYVO5ACjs.getWorkspaceConfig.call(void 0, options.debug === true, {
|
|
1285
1285
|
workspaceRoot: workspaceRoot2
|
|
1286
1286
|
});
|
|
1287
|
-
|
|
1288
|
-
const stopwatch =
|
|
1287
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
1288
|
+
const stopwatch = _chunkSJYVO5ACjs.getStopwatch.call(void 0, "Build options resolution");
|
|
1289
1289
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
1290
1290
|
exitOnError: true
|
|
1291
1291
|
});
|
|
1292
|
-
const projectJsonPath =
|
|
1292
|
+
const projectJsonPath = _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
1293
1293
|
workspaceRoot2,
|
|
1294
1294
|
options.projectRoot,
|
|
1295
1295
|
"project.json"
|
|
@@ -1306,7 +1306,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
1306
1306
|
"The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
|
|
1307
1307
|
);
|
|
1308
1308
|
}
|
|
1309
|
-
const packageJsonPath =
|
|
1309
|
+
const packageJsonPath = _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
1310
1310
|
workspaceRoot2,
|
|
1311
1311
|
options.projectRoot,
|
|
1312
1312
|
"package.json"
|
|
@@ -1315,13 +1315,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
1315
1315
|
throw new Error("Cannot find package.json configuration");
|
|
1316
1316
|
}
|
|
1317
1317
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
1318
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
1318
|
+
const sourceRoot = projectJson.sourceRoot || _chunkSJYVO5ACjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
1319
1319
|
const result = {
|
|
1320
1320
|
name: projectName,
|
|
1321
1321
|
mode: "production",
|
|
1322
1322
|
target: DEFAULT_TARGET,
|
|
1323
1323
|
generatePackageJson: true,
|
|
1324
|
-
outDir:
|
|
1324
|
+
outDir: _chunkSJYVO5ACjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
1325
1325
|
minify: !debug,
|
|
1326
1326
|
plugins: [],
|
|
1327
1327
|
assets: [],
|
|
@@ -1333,12 +1333,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
1333
1333
|
clean: false,
|
|
1334
1334
|
fixedExtension: true,
|
|
1335
1335
|
nodeProtocol: true,
|
|
1336
|
-
tsconfig:
|
|
1336
|
+
tsconfig: _chunkSJYVO5ACjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
1337
1337
|
debug,
|
|
1338
1338
|
sourceRoot,
|
|
1339
1339
|
cwd: workspaceConfig.workspaceRoot,
|
|
1340
1340
|
entry: {
|
|
1341
|
-
["index"]:
|
|
1341
|
+
["index"]: _chunkSJYVO5ACjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
1342
1342
|
},
|
|
1343
1343
|
workspace: true,
|
|
1344
1344
|
...options,
|
|
@@ -1357,15 +1357,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
1357
1357
|
return result;
|
|
1358
1358
|
};
|
|
1359
1359
|
async function generatePackageJson2(options) {
|
|
1360
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
1361
|
-
|
|
1362
|
-
const stopwatch =
|
|
1363
|
-
const packageJsonPath =
|
|
1360
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkSJYVO5ACjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
1361
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
1362
|
+
const stopwatch = _chunkSJYVO5ACjs.getStopwatch.call(void 0, "Write package.json file");
|
|
1363
|
+
const packageJsonPath = _chunkSJYVO5ACjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
1364
1364
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1365
1365
|
throw new Error("Cannot find package.json configuration");
|
|
1366
1366
|
}
|
|
1367
1367
|
const packageJsonFile = await _promises2.default.readFile(
|
|
1368
|
-
|
|
1368
|
+
_chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
1369
1369
|
options.workspaceConfig.workspaceRoot,
|
|
1370
1370
|
options.projectRoot,
|
|
1371
1371
|
"package.json"
|
|
@@ -1427,14 +1427,14 @@ async function generatePackageJson2(options) {
|
|
|
1427
1427
|
},
|
|
1428
1428
|
packageJson.exports
|
|
1429
1429
|
);
|
|
1430
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1430
|
+
await _devkit.writeJsonFile.call(void 0, _chunkSJYVO5ACjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
1431
1431
|
stopwatch();
|
|
1432
1432
|
}
|
|
1433
1433
|
return options;
|
|
1434
1434
|
}
|
|
1435
1435
|
async function executeTSDown(options) {
|
|
1436
|
-
|
|
1437
|
-
const stopwatch =
|
|
1436
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
|
|
1437
|
+
const stopwatch = _chunkSJYVO5ACjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
1438
1438
|
await _tsdown.build.call(void 0, {
|
|
1439
1439
|
...options,
|
|
1440
1440
|
entry: options.entry,
|
|
@@ -1444,11 +1444,11 @@ async function executeTSDown(options) {
|
|
|
1444
1444
|
return options;
|
|
1445
1445
|
}
|
|
1446
1446
|
async function copyBuildAssets2(options) {
|
|
1447
|
-
|
|
1447
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0,
|
|
1448
1448
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
1449
1449
|
options.workspaceConfig
|
|
1450
1450
|
);
|
|
1451
|
-
const stopwatch =
|
|
1451
|
+
const stopwatch = _chunkSJYVO5ACjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
1452
1452
|
await copyAssets(
|
|
1453
1453
|
options.workspaceConfig,
|
|
1454
1454
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
@@ -1462,18 +1462,18 @@ async function copyBuildAssets2(options) {
|
|
|
1462
1462
|
return options;
|
|
1463
1463
|
}
|
|
1464
1464
|
async function reportResults2(options) {
|
|
1465
|
-
|
|
1465
|
+
_chunkSJYVO5ACjs.writeSuccess.call(void 0,
|
|
1466
1466
|
` \u{1F4E6} The ${options.name} build completed successfully`,
|
|
1467
1467
|
options.workspaceConfig
|
|
1468
1468
|
);
|
|
1469
1469
|
}
|
|
1470
1470
|
async function cleanOutputPath2(options) {
|
|
1471
1471
|
if (options.clean !== false && options.workspaceConfig) {
|
|
1472
|
-
|
|
1472
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0,
|
|
1473
1473
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
|
|
1474
1474
|
options.workspaceConfig
|
|
1475
1475
|
);
|
|
1476
|
-
const stopwatch =
|
|
1476
|
+
const stopwatch = _chunkSJYVO5ACjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
1477
1477
|
await cleanDirectories2(
|
|
1478
1478
|
options.name,
|
|
1479
1479
|
options.outDir,
|
|
@@ -1484,8 +1484,8 @@ async function cleanOutputPath2(options) {
|
|
|
1484
1484
|
return options;
|
|
1485
1485
|
}
|
|
1486
1486
|
async function build3(options) {
|
|
1487
|
-
|
|
1488
|
-
const stopwatch =
|
|
1487
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
1488
|
+
const stopwatch = _chunkSJYVO5ACjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
1489
1489
|
try {
|
|
1490
1490
|
const opts = Array.isArray(options) ? options : [options];
|
|
1491
1491
|
if (opts.length === 0) {
|
|
@@ -1505,13 +1505,13 @@ async function build3(options) {
|
|
|
1505
1505
|
})
|
|
1506
1506
|
);
|
|
1507
1507
|
} else {
|
|
1508
|
-
|
|
1508
|
+
_chunkSJYVO5ACjs.writeWarning.call(void 0,
|
|
1509
1509
|
" \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
|
|
1510
1510
|
);
|
|
1511
1511
|
}
|
|
1512
|
-
|
|
1512
|
+
_chunkSJYVO5ACjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
1513
1513
|
} catch (error) {
|
|
1514
|
-
|
|
1514
|
+
_chunkSJYVO5ACjs.writeFatal.call(void 0,
|
|
1515
1515
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
1516
1516
|
);
|
|
1517
1517
|
throw error;
|
|
@@ -1522,7 +1522,7 @@ async function build3(options) {
|
|
|
1522
1522
|
|
|
1523
1523
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
1524
1524
|
async function tsdownExecutorFn(options, context, config) {
|
|
1525
|
-
|
|
1525
|
+
_chunkSJYVO5ACjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
1526
1526
|
if (!_optionalChain([context, 'access', _80 => _80.projectsConfigurations, 'optionalAccess', _81 => _81.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _82 => _82.projectsConfigurations, 'access', _83 => _83.projects, 'access', _84 => _84[context.projectName], 'optionalAccess', _85 => _85.root])) {
|
|
1527
1527
|
throw new Error(
|
|
1528
1528
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -1543,7 +1543,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
1543
1543
|
success: true
|
|
1544
1544
|
};
|
|
1545
1545
|
}
|
|
1546
|
-
var executor_default9 =
|
|
1546
|
+
var executor_default9 = _chunkSJYVO5ACjs.withRunExecutor.call(void 0,
|
|
1547
1547
|
"Storm TSDown build",
|
|
1548
1548
|
tsdownExecutorFn,
|
|
1549
1549
|
{
|
|
@@ -1564,12 +1564,12 @@ var _fsextra = require('fs-extra');
|
|
|
1564
1564
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1565
1565
|
async function typiaExecutorFn(options, _, config) {
|
|
1566
1566
|
if (options.clean !== false) {
|
|
1567
|
-
|
|
1567
|
+
_chunkSJYVO5ACjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
1568
1568
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1569
1569
|
}
|
|
1570
1570
|
await Promise.all(
|
|
1571
1571
|
options.entry.map((entry) => {
|
|
1572
|
-
|
|
1572
|
+
_chunkSJYVO5ACjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
1573
1573
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1574
1574
|
input: entry,
|
|
1575
1575
|
output: options.outputPath,
|
|
@@ -1581,7 +1581,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
1581
1581
|
success: true
|
|
1582
1582
|
};
|
|
1583
1583
|
}
|
|
1584
|
-
var executor_default10 =
|
|
1584
|
+
var executor_default10 = _chunkSJYVO5ACjs.withRunExecutor.call(void 0,
|
|
1585
1585
|
"Typia runtime validation generator",
|
|
1586
1586
|
typiaExecutorFn,
|
|
1587
1587
|
{
|
|
@@ -1602,7 +1602,7 @@ var executor_default10 = _chunkMKG63IZWjs.withRunExecutor.call(void 0,
|
|
|
1602
1602
|
|
|
1603
1603
|
|
|
1604
1604
|
async function unbuildExecutorFn(options, context, config) {
|
|
1605
|
-
|
|
1605
|
+
_chunkSJYVO5ACjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1606
1606
|
if (!_optionalChain([context, 'access', _94 => _94.projectsConfigurations, 'optionalAccess', _95 => _95.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1607
1607
|
throw new Error(
|
|
1608
1608
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -1619,7 +1619,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1619
1619
|
);
|
|
1620
1620
|
}
|
|
1621
1621
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1622
|
-
fsCache: config.skipCache ? false :
|
|
1622
|
+
fsCache: config.skipCache ? false : _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
1623
1623
|
config.workspaceRoot,
|
|
1624
1624
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1625
1625
|
"jiti"
|
|
@@ -1641,7 +1641,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1641
1641
|
{
|
|
1642
1642
|
stubOptions: {
|
|
1643
1643
|
jiti: {
|
|
1644
|
-
fsCache: config.skipCache ? false :
|
|
1644
|
+
fsCache: config.skipCache ? false : _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
1645
1645
|
config.workspaceRoot,
|
|
1646
1646
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1647
1647
|
"jiti"
|
|
@@ -1670,7 +1670,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1670
1670
|
success: true
|
|
1671
1671
|
};
|
|
1672
1672
|
}
|
|
1673
|
-
var executor_default11 =
|
|
1673
|
+
var executor_default11 = _chunkSJYVO5ACjs.withRunExecutor.call(void 0,
|
|
1674
1674
|
"TypeScript Unbuild build",
|
|
1675
1675
|
unbuildExecutorFn,
|
|
1676
1676
|
{
|
|
@@ -1701,45 +1701,45 @@ var executor_default11 = _chunkMKG63IZWjs.withRunExecutor.call(void 0,
|
|
|
1701
1701
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
1702
1702
|
skipReadingConfig: false
|
|
1703
1703
|
}) => async (tree, _options) => {
|
|
1704
|
-
const stopwatch =
|
|
1704
|
+
const stopwatch = _chunkSJYVO5ACjs.getStopwatch.call(void 0, name);
|
|
1705
1705
|
let options = _options;
|
|
1706
1706
|
let config;
|
|
1707
1707
|
try {
|
|
1708
|
-
|
|
1708
|
+
_chunkSJYVO5ACjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1709
1709
|
|
|
1710
1710
|
`, config);
|
|
1711
|
-
const workspaceRoot2 =
|
|
1711
|
+
const workspaceRoot2 = _chunkSJYVO5ACjs.findWorkspaceRoot.call(void 0, );
|
|
1712
1712
|
if (!generatorOptions.skipReadingConfig) {
|
|
1713
|
-
|
|
1713
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0,
|
|
1714
1714
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1715
1715
|
- workspaceRoot: ${workspaceRoot2}`,
|
|
1716
1716
|
config
|
|
1717
1717
|
);
|
|
1718
|
-
config = await
|
|
1718
|
+
config = await _chunkSJYVO5ACjs.getConfig.call(void 0, workspaceRoot2);
|
|
1719
1719
|
}
|
|
1720
1720
|
if (_optionalChain([generatorOptions, 'optionalAccess', _96 => _96.hooks, 'optionalAccess', _97 => _97.applyDefaultOptions])) {
|
|
1721
|
-
|
|
1721
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1722
1722
|
options = await Promise.resolve(
|
|
1723
1723
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
1724
1724
|
);
|
|
1725
|
-
|
|
1725
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
1726
1726
|
}
|
|
1727
|
-
|
|
1727
|
+
_chunkSJYVO5ACjs.writeTrace.call(void 0,
|
|
1728
1728
|
`Generator schema options \u2699\uFE0F
|
|
1729
1729
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
1730
1730
|
config
|
|
1731
1731
|
);
|
|
1732
|
-
const tokenized = await
|
|
1732
|
+
const tokenized = await _chunkSJYVO5ACjs.applyWorkspaceTokens.call(void 0,
|
|
1733
1733
|
options,
|
|
1734
1734
|
{ workspaceRoot: tree.root, config },
|
|
1735
|
-
|
|
1735
|
+
_chunkSJYVO5ACjs.applyWorkspaceBaseTokens
|
|
1736
1736
|
);
|
|
1737
1737
|
if (_optionalChain([generatorOptions, 'optionalAccess', _98 => _98.hooks, 'optionalAccess', _99 => _99.preProcess])) {
|
|
1738
|
-
|
|
1738
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1739
1739
|
await Promise.resolve(
|
|
1740
1740
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
1741
1741
|
);
|
|
1742
|
-
|
|
1742
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1743
1743
|
}
|
|
1744
1744
|
const result = await Promise.resolve(
|
|
1745
1745
|
generatorFn(tree, tokenized, config)
|
|
@@ -1754,21 +1754,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
1756
|
if (_optionalChain([generatorOptions, 'optionalAccess', _109 => _109.hooks, 'optionalAccess', _110 => _110.postProcess])) {
|
|
1757
|
-
|
|
1757
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1758
1758
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1759
|
-
|
|
1759
|
+
_chunkSJYVO5ACjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
1760
1760
|
}
|
|
1761
1761
|
return () => {
|
|
1762
|
-
|
|
1762
|
+
_chunkSJYVO5ACjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
1763
1763
|
`, config);
|
|
1764
1764
|
};
|
|
1765
1765
|
} catch (error) {
|
|
1766
1766
|
return () => {
|
|
1767
|
-
|
|
1767
|
+
_chunkSJYVO5ACjs.writeFatal.call(void 0,
|
|
1768
1768
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
1769
1769
|
config
|
|
1770
1770
|
);
|
|
1771
|
-
|
|
1771
|
+
_chunkSJYVO5ACjs.writeError.call(void 0,
|
|
1772
1772
|
`An exception was thrown in the generator's process
|
|
1773
1773
|
- Details: ${error.message}
|
|
1774
1774
|
- Stacktrace: ${error.stack}`,
|
|
@@ -1834,16 +1834,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1834
1834
|
const projectConfig = {
|
|
1835
1835
|
root: normalized.directory,
|
|
1836
1836
|
projectType: "library",
|
|
1837
|
-
sourceRoot:
|
|
1837
|
+
sourceRoot: _chunkSJYVO5ACjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
1838
1838
|
targets: {
|
|
1839
1839
|
build: {
|
|
1840
1840
|
executor: options.buildExecutor,
|
|
1841
1841
|
outputs: ["{options.outputPath}"],
|
|
1842
1842
|
options: {
|
|
1843
|
-
entry: [
|
|
1843
|
+
entry: [_chunkSJYVO5ACjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
1844
1844
|
outputPath: getOutputPath(normalized),
|
|
1845
|
-
tsconfig:
|
|
1846
|
-
project:
|
|
1845
|
+
tsconfig: _chunkSJYVO5ACjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
1846
|
+
project: _chunkSJYVO5ACjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
1847
1847
|
defaultConfiguration: "production",
|
|
1848
1848
|
platform: "neutral",
|
|
1849
1849
|
assets: [
|
|
@@ -1900,7 +1900,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1900
1900
|
if (!normalized.importPath) {
|
|
1901
1901
|
normalized.importPath = normalized.name;
|
|
1902
1902
|
}
|
|
1903
|
-
const packageJsonPath =
|
|
1903
|
+
const packageJsonPath = _chunkSJYVO5ACjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
1904
1904
|
if (tree.exists(packageJsonPath)) {
|
|
1905
1905
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
1906
1906
|
if (!normalized.importPath) {
|
|
@@ -1957,14 +1957,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1957
1957
|
}));
|
|
1958
1958
|
}
|
|
1959
1959
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
1960
|
-
|
|
1960
|
+
_chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
1961
1961
|
normalized.projectRoot,
|
|
1962
1962
|
"./src",
|
|
1963
1963
|
`index.${normalized.js ? "js" : "ts"}`
|
|
1964
1964
|
)
|
|
1965
1965
|
]);
|
|
1966
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
1967
|
-
|
|
1966
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkSJYVO5ACjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
1967
|
+
_chunkSJYVO5ACjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
1968
1968
|
]);
|
|
1969
1969
|
if (tree.exists("package.json")) {
|
|
1970
1970
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -1975,7 +1975,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1975
1975
|
description = packageJson.description;
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
|
-
const tsconfigPath =
|
|
1978
|
+
const tsconfigPath = _chunkSJYVO5ACjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
1979
1979
|
if (tree.exists(tsconfigPath)) {
|
|
1980
1980
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
1981
1981
|
json.composite ??= true;
|
|
@@ -2003,7 +2003,7 @@ function getOutputPath(options) {
|
|
|
2003
2003
|
} else {
|
|
2004
2004
|
parts.push(options.projectRoot);
|
|
2005
2005
|
}
|
|
2006
|
-
return
|
|
2006
|
+
return _chunkSJYVO5ACjs.joinPaths.call(void 0, ...parts);
|
|
2007
2007
|
}
|
|
2008
2008
|
function createProjectTsConfigJson(tree, options) {
|
|
2009
2009
|
const tsconfig = {
|
|
@@ -2011,7 +2011,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2011
2011
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _125 => _125.tsconfigOptions]), () => ( {})),
|
|
2012
2012
|
compilerOptions: {
|
|
2013
2013
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2014
|
-
outDir:
|
|
2014
|
+
outDir: _chunkSJYVO5ACjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2015
2015
|
noEmit: true,
|
|
2016
2016
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _126 => _126.tsconfigOptions, 'optionalAccess', _127 => _127.compilerOptions]), () => ( {}))
|
|
2017
2017
|
},
|
|
@@ -2029,7 +2029,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2029
2029
|
"src/**/*.test.ts"
|
|
2030
2030
|
]
|
|
2031
2031
|
};
|
|
2032
|
-
_devkit.writeJson.call(void 0, tree,
|
|
2032
|
+
_devkit.writeJson.call(void 0, tree, _chunkSJYVO5ACjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
2033
2033
|
}
|
|
2034
2034
|
async function normalizeOptions(tree, options, config) {
|
|
2035
2035
|
let importPath = options.importPath;
|
|
@@ -2094,7 +2094,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
2094
2094
|
|
|
2095
2095
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
2096
2096
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
2097
|
-
const filesDir =
|
|
2097
|
+
const filesDir = _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
2098
2098
|
__dirname,
|
|
2099
2099
|
"src",
|
|
2100
2100
|
"generators",
|
|
@@ -2177,38 +2177,38 @@ var generator_default = withRunGenerator(
|
|
|
2177
2177
|
|
|
2178
2178
|
var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
|
|
2179
2179
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
2180
|
-
|
|
2180
|
+
_chunkSJYVO5ACjs.writeInfo.call(void 0,
|
|
2181
2181
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
2182
2182
|
config
|
|
2183
2183
|
);
|
|
2184
|
-
|
|
2184
|
+
_chunkSJYVO5ACjs.writeTrace.call(void 0,
|
|
2185
2185
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
2186
2186
|
config
|
|
2187
2187
|
);
|
|
2188
|
-
const jsonSchema = z.toJSONSchema(
|
|
2188
|
+
const jsonSchema = z.toJSONSchema(_chunkSJYVO5ACjs.workspaceConfigSchema, {
|
|
2189
2189
|
target: "draft-7",
|
|
2190
|
-
metadata:
|
|
2190
|
+
metadata: _chunkSJYVO5ACjs.schemaRegistry
|
|
2191
2191
|
});
|
|
2192
2192
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
2193
2193
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
2194
2194
|
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.";
|
|
2195
|
-
|
|
2195
|
+
_chunkSJYVO5ACjs.writeTrace.call(void 0, jsonSchema, config);
|
|
2196
2196
|
if (!options.outputFile) {
|
|
2197
2197
|
throw new Error(
|
|
2198
2198
|
"The `outputFile` option is required. Please specify the output file path."
|
|
2199
2199
|
);
|
|
2200
2200
|
}
|
|
2201
2201
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
2202
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _136 => _136.workspaceRoot]), () => (
|
|
2202
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _136 => _136.workspaceRoot]), () => ( _chunkSJYVO5ACjs.findWorkspaceRoot.call(void 0, ))),
|
|
2203
2203
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
2204
2204
|
);
|
|
2205
|
-
|
|
2205
|
+
_chunkSJYVO5ACjs.writeTrace.call(void 0,
|
|
2206
2206
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
2207
2207
|
config
|
|
2208
2208
|
);
|
|
2209
2209
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
2210
2210
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2211
|
-
|
|
2211
|
+
_chunkSJYVO5ACjs.writeSuccess.call(void 0,
|
|
2212
2212
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
2213
2213
|
config
|
|
2214
2214
|
);
|
|
@@ -2264,7 +2264,7 @@ async function initGenerator(tree, schema) {
|
|
|
2264
2264
|
|
|
2265
2265
|
|
|
2266
2266
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
2267
|
-
const filesDir =
|
|
2267
|
+
const filesDir = _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
2268
2268
|
__dirname,
|
|
2269
2269
|
"src",
|
|
2270
2270
|
"generators",
|
|
@@ -2323,7 +2323,7 @@ var generator_default3 = withRunGenerator(
|
|
|
2323
2323
|
|
|
2324
2324
|
|
|
2325
2325
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
2326
|
-
const filesDir =
|
|
2326
|
+
const filesDir = _chunkSJYVO5ACjs.joinPaths.call(void 0,
|
|
2327
2327
|
__dirname,
|
|
2328
2328
|
"src",
|
|
2329
2329
|
"generators",
|