@storm-software/terraform-tools 0.66.30 → 0.66.32
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 +42 -0
- package/README.md +1 -2
- package/dist/{chunk-XS5BAACH.mjs → chunk-35RIR32U.mjs} +62 -9
- package/dist/{chunk-2DMNEOTY.mjs → chunk-3V5IPCSZ.mjs} +1 -1
- package/dist/{chunk-RJHUDWTG.mjs → chunk-5HO53HJ3.mjs} +1 -1
- package/dist/{chunk-OJPLIJFJ.js → chunk-6P6B7BLA.js} +2 -2
- package/dist/{chunk-4KZE37RJ.js → chunk-6RZAGMSF.js} +2 -2
- package/dist/{chunk-CDTJAYLJ.mjs → chunk-ER7HCQXR.mjs} +44 -0
- package/dist/{chunk-CLOQAFSP.js → chunk-GKAXLY2M.js} +2 -2
- package/dist/{chunk-UTU6JZAG.js → chunk-KRBXYR4N.js} +2 -2
- package/dist/{chunk-MLCA6E37.mjs → chunk-LBBKR3H3.mjs} +1 -1
- package/dist/{chunk-YDAVIV5R.js → chunk-MKG63IZW.js} +45 -1
- package/dist/{chunk-5WM6Y5TA.mjs → chunk-R4ETDLP6.mjs} +1 -1
- package/dist/{chunk-D645XPQQ.js → chunk-RGAUPWPC.js} +200 -147
- package/dist/{chunk-IGSKGEFE.mjs → chunk-X5B77W3R.mjs} +1 -1
- package/dist/{chunk-Y4UTAL3Q.js → chunk-ZISYG6C7.js} +2 -2
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +6 -6
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +2 -2
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +3 -3
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +3 -3
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +3 -3
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +3 -3
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +2 -2
- package/package.json +5 -5
|
@@ -17,7 +17,10 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
var _chunkMKG63IZWjs = require('./chunk-MKG63IZW.js');
|
|
21
24
|
|
|
22
25
|
// src/generators/init/init.ts
|
|
23
26
|
var _devkit = require('@nx/devkit');
|
|
@@ -144,7 +147,7 @@ async function cargoBuildExecutor(options, context) {
|
|
|
144
147
|
const command = buildCargoCommand("build", options, context);
|
|
145
148
|
return await cargoCommand(context.root, ...command);
|
|
146
149
|
}
|
|
147
|
-
var executor_default =
|
|
150
|
+
var executor_default = _chunkMKG63IZWjs.withRunExecutor.call(void 0,
|
|
148
151
|
"Cargo - Build",
|
|
149
152
|
cargoBuildExecutor,
|
|
150
153
|
{
|
|
@@ -164,7 +167,7 @@ async function cargoCheckExecutor(options, context) {
|
|
|
164
167
|
const command = buildCargoCommand("check", options, context);
|
|
165
168
|
return await cargoCommand(context.root, ...command);
|
|
166
169
|
}
|
|
167
|
-
var executor_default2 =
|
|
170
|
+
var executor_default2 = _chunkMKG63IZWjs.withRunExecutor.call(void 0,
|
|
168
171
|
"Cargo - Check",
|
|
169
172
|
cargoCheckExecutor,
|
|
170
173
|
{
|
|
@@ -183,7 +186,7 @@ async function cargoClippyExecutor(options, context) {
|
|
|
183
186
|
const command = buildCargoCommand("clippy", options, context);
|
|
184
187
|
return await cargoCommand(context.root, ...command);
|
|
185
188
|
}
|
|
186
|
-
var executor_default3 =
|
|
189
|
+
var executor_default3 = _chunkMKG63IZWjs.withRunExecutor.call(void 0,
|
|
187
190
|
"Cargo - Clippy",
|
|
188
191
|
cargoClippyExecutor,
|
|
189
192
|
{
|
|
@@ -206,7 +209,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
206
209
|
const command = buildCargoCommand("doc", options, context);
|
|
207
210
|
return await cargoCommand(context.root, ...command);
|
|
208
211
|
}
|
|
209
|
-
var executor_default4 =
|
|
212
|
+
var executor_default4 = _chunkMKG63IZWjs.withRunExecutor.call(void 0,
|
|
210
213
|
"Cargo - Doc",
|
|
211
214
|
cargoDocExecutor,
|
|
212
215
|
{
|
|
@@ -232,7 +235,7 @@ async function cargoFormatExecutor(options, context) {
|
|
|
232
235
|
const command = buildCargoCommand("fmt", options, context);
|
|
233
236
|
return await cargoCommand(context.root, ...command);
|
|
234
237
|
}
|
|
235
|
-
var executor_default5 =
|
|
238
|
+
var executor_default5 = _chunkMKG63IZWjs.withRunExecutor.call(void 0,
|
|
236
239
|
"Cargo - Format",
|
|
237
240
|
cargoFormatExecutor,
|
|
238
241
|
{
|
|
@@ -308,9 +311,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
308
311
|
output: "src/"
|
|
309
312
|
});
|
|
310
313
|
}
|
|
311
|
-
|
|
314
|
+
_chunkMKG63IZWjs.writeTrace.call(void 0,
|
|
312
315
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
313
|
-
${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} -> ${_chunkMKG63IZWjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
314
317
|
config
|
|
315
318
|
);
|
|
316
319
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -320,20 +323,20 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
320
323
|
assets: pendingAssets
|
|
321
324
|
});
|
|
322
325
|
await assetHandler.processAllAssetsOnce();
|
|
323
|
-
|
|
326
|
+
_chunkMKG63IZWjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
324
327
|
if (includeSrc === true) {
|
|
325
|
-
|
|
326
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
328
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0,
|
|
329
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
327
330
|
outputPath,
|
|
328
331
|
"src"
|
|
329
332
|
)}`,
|
|
330
333
|
config
|
|
331
334
|
);
|
|
332
335
|
const files = await _glob.glob.call(void 0, [
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
336
|
+
_chunkMKG63IZWjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
337
|
+
_chunkMKG63IZWjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
338
|
+
_chunkMKG63IZWjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
339
|
+
_chunkMKG63IZWjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
337
340
|
]);
|
|
338
341
|
await Promise.allSettled(
|
|
339
342
|
files.map(
|
|
@@ -388,7 +391,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
388
391
|
)) {
|
|
389
392
|
const projectNode = project.node;
|
|
390
393
|
if (projectNode.data.root) {
|
|
391
|
-
const projectPackageJsonPath =
|
|
394
|
+
const projectPackageJsonPath = _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
392
395
|
workspaceRoot2,
|
|
393
396
|
projectNode.data.root,
|
|
394
397
|
"package.json"
|
|
@@ -406,11 +409,11 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
406
409
|
}
|
|
407
410
|
}
|
|
408
411
|
if (localPackages.length > 0) {
|
|
409
|
-
|
|
412
|
+
_chunkMKG63IZWjs.writeTrace.call(void 0,
|
|
410
413
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
411
414
|
);
|
|
412
415
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
413
|
-
|
|
416
|
+
_chunkMKG63IZWjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
414
417
|
"utf8"
|
|
415
418
|
);
|
|
416
419
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -423,7 +426,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
423
426
|
}
|
|
424
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) => {
|
|
425
428
|
if (_optionalChain([projectConfigurations, 'access', _18 => _18.projects, 'optionalAccess', _19 => _19[dep]])) {
|
|
426
|
-
const depPackageJsonPath =
|
|
429
|
+
const depPackageJsonPath = _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
427
430
|
workspaceRoot2,
|
|
428
431
|
projectConfigurations.projects[dep].root,
|
|
429
432
|
"package.json"
|
|
@@ -454,14 +457,14 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
454
457
|
return ret;
|
|
455
458
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
456
459
|
} else {
|
|
457
|
-
|
|
460
|
+
_chunkMKG63IZWjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
458
461
|
}
|
|
459
462
|
return packageJson;
|
|
460
463
|
};
|
|
461
464
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
462
|
-
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
465
|
+
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkMKG63IZWjs.findWorkspaceRoot.call(void 0, );
|
|
463
466
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
464
|
-
|
|
467
|
+
_chunkMKG63IZWjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
465
468
|
"utf8"
|
|
466
469
|
);
|
|
467
470
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -472,7 +475,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
472
475
|
if (distSrc.startsWith("/")) {
|
|
473
476
|
distSrc = distSrc.substring(1);
|
|
474
477
|
}
|
|
475
|
-
packageJson.source ??= `${
|
|
478
|
+
packageJson.source ??= `${_chunkMKG63IZWjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
476
479
|
}
|
|
477
480
|
packageJson.files ??= ["dist/**/*"];
|
|
478
481
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -497,7 +500,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
497
500
|
packageJson.contributors = [packageJson.author];
|
|
498
501
|
}
|
|
499
502
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
500
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
503
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkMKG63IZWjs.joinPaths.call(void 0, "packages", projectName);
|
|
501
504
|
return packageJson;
|
|
502
505
|
};
|
|
503
506
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -551,11 +554,11 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
551
554
|
// ../esbuild/src/assets.ts
|
|
552
555
|
async function copyBuildAssets(context) {
|
|
553
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])) {
|
|
554
|
-
|
|
557
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0,
|
|
555
558
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
556
559
|
context.workspaceConfig
|
|
557
560
|
);
|
|
558
|
-
const stopwatch =
|
|
561
|
+
const stopwatch = _chunkMKG63IZWjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
559
562
|
await copyAssets(
|
|
560
563
|
context.workspaceConfig,
|
|
561
564
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
@@ -636,15 +639,15 @@ async function resolveContext(userOptions) {
|
|
|
636
639
|
if (!workspaceRoot2) {
|
|
637
640
|
throw new Error("Cannot find Nx workspace root");
|
|
638
641
|
}
|
|
639
|
-
const workspaceConfig = await
|
|
642
|
+
const workspaceConfig = await _chunkMKG63IZWjs.getWorkspaceConfig.call(void 0, true, {
|
|
640
643
|
workspaceRoot: workspaceRoot2.dir
|
|
641
644
|
});
|
|
642
|
-
|
|
643
|
-
const stopwatch =
|
|
645
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
646
|
+
const stopwatch = _chunkMKG63IZWjs.getStopwatch.call(void 0, "Build options resolution");
|
|
644
647
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
645
648
|
exitOnError: true
|
|
646
649
|
});
|
|
647
|
-
const projectJsonPath =
|
|
650
|
+
const projectJsonPath = _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
648
651
|
workspaceRoot2.dir,
|
|
649
652
|
projectRoot,
|
|
650
653
|
"project.json"
|
|
@@ -663,7 +666,7 @@ async function resolveContext(userOptions) {
|
|
|
663
666
|
}
|
|
664
667
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
665
668
|
options.name ??= projectName;
|
|
666
|
-
const packageJsonPath =
|
|
669
|
+
const packageJsonPath = _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
667
670
|
workspaceRoot2.dir,
|
|
668
671
|
options.projectRoot,
|
|
669
672
|
"package.json"
|
|
@@ -675,7 +678,7 @@ async function resolveContext(userOptions) {
|
|
|
675
678
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
676
679
|
const resolvedOptions = {
|
|
677
680
|
...options,
|
|
678
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
681
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkMKG63IZWjs.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
679
682
|
metafile: userOptions.mode === "development",
|
|
680
683
|
clean: false,
|
|
681
684
|
env,
|
|
@@ -700,8 +703,8 @@ async function resolveContext(userOptions) {
|
|
|
700
703
|
projectConfigurations,
|
|
701
704
|
projectName,
|
|
702
705
|
projectGraph,
|
|
703
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
704
|
-
outputPath: resolvedOptions.outputPath ||
|
|
706
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkMKG63IZWjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
707
|
+
outputPath: resolvedOptions.outputPath || _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
705
708
|
workspaceConfig.workspaceRoot,
|
|
706
709
|
"dist",
|
|
707
710
|
resolvedOptions.projectRoot
|
|
@@ -710,10 +713,10 @@ async function resolveContext(userOptions) {
|
|
|
710
713
|
};
|
|
711
714
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
712
715
|
if (context.options.verbose) {
|
|
713
|
-
|
|
716
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0,
|
|
714
717
|
` \u2699\uFE0F Build options resolved:
|
|
715
718
|
|
|
716
|
-
${
|
|
719
|
+
${_chunkMKG63IZWjs.formatLogMessage.call(void 0, context.options)}`,
|
|
717
720
|
workspaceConfig
|
|
718
721
|
);
|
|
719
722
|
}
|
|
@@ -725,10 +728,10 @@ ${_chunkYDAVIV5Rjs.formatLogMessage.call(void 0, context.options)}`,
|
|
|
725
728
|
|
|
726
729
|
|
|
727
730
|
async function generatePackageJson(context) {
|
|
728
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
729
|
-
|
|
730
|
-
const stopwatch =
|
|
731
|
-
const packageJsonPath =
|
|
731
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkMKG63IZWjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
732
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
733
|
+
const stopwatch = _chunkMKG63IZWjs.getStopwatch.call(void 0, "Write package.json file");
|
|
734
|
+
const packageJsonPath = _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
732
735
|
context.options.projectRoot,
|
|
733
736
|
"project.json"
|
|
734
737
|
);
|
|
@@ -736,7 +739,7 @@ async function generatePackageJson(context) {
|
|
|
736
739
|
throw new Error("Cannot find package.json configuration");
|
|
737
740
|
}
|
|
738
741
|
const packageJsonFile = await _promises2.default.readFile(
|
|
739
|
-
|
|
742
|
+
_chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
740
743
|
context.workspaceConfig.workspaceRoot,
|
|
741
744
|
context.options.projectRoot,
|
|
742
745
|
"package.json"
|
|
@@ -842,7 +845,7 @@ async function generatePackageJson(context) {
|
|
|
842
845
|
}
|
|
843
846
|
}
|
|
844
847
|
await _devkit.writeJsonFile.call(void 0,
|
|
845
|
-
|
|
848
|
+
_chunkMKG63IZWjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
846
849
|
packageJson
|
|
847
850
|
);
|
|
848
851
|
stopwatch();
|
|
@@ -854,12 +857,12 @@ async function generatePackageJson(context) {
|
|
|
854
857
|
var _tsup = require('tsup');
|
|
855
858
|
async function build(options) {
|
|
856
859
|
if (!options.silent) {
|
|
857
|
-
|
|
860
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0,
|
|
858
861
|
` \u{1F680} Running ${options.name || "tsup"} build`,
|
|
859
862
|
options.workspaceConfig
|
|
860
863
|
);
|
|
861
864
|
}
|
|
862
|
-
const stopwatch =
|
|
865
|
+
const stopwatch = _chunkMKG63IZWjs.getStopwatch.call(void 0, `${options.name || "tsup"} build`);
|
|
863
866
|
await _tsup.build.call(void 0, options);
|
|
864
867
|
if (!options.silent) {
|
|
865
868
|
stopwatch();
|
|
@@ -868,14 +871,14 @@ async function build(options) {
|
|
|
868
871
|
|
|
869
872
|
// ../esbuild/src/tsup.ts
|
|
870
873
|
async function executeTsup(context) {
|
|
871
|
-
|
|
874
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0,
|
|
872
875
|
` \u{1F680} Running ${context.options.name} build`,
|
|
873
876
|
context.workspaceConfig
|
|
874
877
|
);
|
|
875
|
-
const stopwatch =
|
|
878
|
+
const stopwatch = _chunkMKG63IZWjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
876
879
|
await build({
|
|
877
880
|
...context.options,
|
|
878
|
-
outDir: context.options.distDir ?
|
|
881
|
+
outDir: context.options.distDir ? _chunkMKG63IZWjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
879
882
|
workspaceConfig: context.workspaceConfig
|
|
880
883
|
});
|
|
881
884
|
stopwatch();
|
|
@@ -886,17 +889,17 @@ async function executeTsup(context) {
|
|
|
886
889
|
async function reportResults(context) {
|
|
887
890
|
if (_optionalChain([context, 'access', _36 => _36.result, 'optionalAccess', _37 => _37.errors, 'access', _38 => _38.length]) === 0) {
|
|
888
891
|
if (context.result.warnings.length > 0) {
|
|
889
|
-
|
|
892
|
+
_chunkMKG63IZWjs.writeWarning.call(void 0,
|
|
890
893
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
891
894
|
context.workspaceConfig
|
|
892
895
|
);
|
|
893
896
|
}
|
|
894
|
-
|
|
897
|
+
_chunkMKG63IZWjs.writeSuccess.call(void 0,
|
|
895
898
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
896
899
|
context.workspaceConfig
|
|
897
900
|
);
|
|
898
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) {
|
|
899
|
-
|
|
902
|
+
_chunkMKG63IZWjs.writeError.call(void 0,
|
|
900
903
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
901
904
|
context.workspaceConfig
|
|
902
905
|
);
|
|
@@ -907,19 +910,19 @@ async function reportResults(context) {
|
|
|
907
910
|
}
|
|
908
911
|
async function cleanOutputPath(context) {
|
|
909
912
|
if (context.clean !== false && context.outputPath) {
|
|
910
|
-
|
|
913
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0,
|
|
911
914
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
912
915
|
context.workspaceConfig
|
|
913
916
|
);
|
|
914
|
-
const stopwatch =
|
|
917
|
+
const stopwatch = _chunkMKG63IZWjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
915
918
|
await cleanDirectories(context.outputPath);
|
|
916
919
|
stopwatch();
|
|
917
920
|
}
|
|
918
921
|
return context;
|
|
919
922
|
}
|
|
920
923
|
async function build2(options) {
|
|
921
|
-
|
|
922
|
-
const stopwatch =
|
|
924
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
925
|
+
const stopwatch = _chunkMKG63IZWjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
923
926
|
try {
|
|
924
927
|
const opts = Array.isArray(options) ? options : [options];
|
|
925
928
|
if (opts.length === 0) {
|
|
@@ -934,9 +937,9 @@ async function build2(options) {
|
|
|
934
937
|
executeTsup(context)
|
|
935
938
|
]);
|
|
936
939
|
await reportResults(context);
|
|
937
|
-
|
|
940
|
+
_chunkMKG63IZWjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
938
941
|
} catch (error) {
|
|
939
|
-
|
|
942
|
+
_chunkMKG63IZWjs.writeFatal.call(void 0,
|
|
940
943
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
941
944
|
);
|
|
942
945
|
throw error;
|
|
@@ -947,7 +950,7 @@ async function build2(options) {
|
|
|
947
950
|
|
|
948
951
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
949
952
|
async function esbuildExecutorFn(options, context, config) {
|
|
950
|
-
|
|
953
|
+
_chunkMKG63IZWjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
951
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])) {
|
|
952
955
|
throw new Error(
|
|
953
956
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -968,7 +971,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
968
971
|
success: true
|
|
969
972
|
};
|
|
970
973
|
}
|
|
971
|
-
var executor_default6 =
|
|
974
|
+
var executor_default6 = _chunkMKG63IZWjs.withRunExecutor.call(void 0,
|
|
972
975
|
"Storm ESBuild build",
|
|
973
976
|
esbuildExecutorFn,
|
|
974
977
|
{
|
|
@@ -989,7 +992,7 @@ var _jiti = require('jiti');
|
|
|
989
992
|
var _fileutils = require('nx/src/utils/fileutils');
|
|
990
993
|
async function napiExecutor(options, context, config) {
|
|
991
994
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
992
|
-
fsCache: config.skipCache ? false :
|
|
995
|
+
fsCache: config.skipCache ? false : _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
993
996
|
config.workspaceRoot,
|
|
994
997
|
config.directories.cache || "node_modules/.cache/storm",
|
|
995
998
|
"jiti"
|
|
@@ -1005,34 +1008,84 @@ async function napiExecutor(options, context, config) {
|
|
|
1005
1008
|
);
|
|
1006
1009
|
}
|
|
1007
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]);
|
|
1008
|
-
const packageJson =
|
|
1011
|
+
const packageJson = _chunkMKG63IZWjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
1009
1012
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
1010
1013
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
1011
1014
|
}
|
|
1012
1015
|
const napi = new NapiCli();
|
|
1013
|
-
const
|
|
1016
|
+
const normalizedOptions = { ...options };
|
|
1014
1017
|
const metadata = cargoMetadata();
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _66 => _66.target_directory]) || _chunkMKG63IZWjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
1019
|
+
normalizedOptions.outputDir = options.outputPath;
|
|
1020
|
+
normalizedOptions.packageJsonPath = options.packageJsonPath || packageJson;
|
|
1021
|
+
if (options.cwd) {
|
|
1022
|
+
normalizedOptions.cwd = _chunkMKG63IZWjs.correctPaths.call(void 0, options.cwd);
|
|
1023
|
+
} else {
|
|
1024
|
+
normalizedOptions.cwd = _chunkMKG63IZWjs.correctPaths.call(void 0, projectRoot);
|
|
1025
|
+
const absoluteProjectRoot = _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
1026
|
+
config.workspaceRoot,
|
|
1027
|
+
projectRoot || "."
|
|
1028
|
+
);
|
|
1029
|
+
if (normalizedOptions.outputDir) {
|
|
1030
|
+
normalizedOptions.outputDir = _chunkMKG63IZWjs.relative.call(void 0,
|
|
1031
|
+
absoluteProjectRoot,
|
|
1032
|
+
_chunkMKG63IZWjs.correctPaths.call(void 0,
|
|
1033
|
+
_chunkMKG63IZWjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkMKG63IZWjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
1034
|
+
)
|
|
1035
|
+
);
|
|
1036
|
+
}
|
|
1037
|
+
if (normalizedOptions.packageJsonPath) {
|
|
1038
|
+
normalizedOptions.packageJsonPath = _chunkMKG63IZWjs.relative.call(void 0,
|
|
1039
|
+
absoluteProjectRoot,
|
|
1040
|
+
_chunkMKG63IZWjs.correctPaths.call(void 0,
|
|
1041
|
+
_chunkMKG63IZWjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkMKG63IZWjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
1042
|
+
)
|
|
1043
|
+
);
|
|
1044
|
+
}
|
|
1045
|
+
if (normalizedOptions.targetDir) {
|
|
1046
|
+
normalizedOptions.targetDir = _chunkMKG63IZWjs.relative.call(void 0,
|
|
1047
|
+
absoluteProjectRoot,
|
|
1048
|
+
_chunkMKG63IZWjs.correctPaths.call(void 0,
|
|
1049
|
+
_chunkMKG63IZWjs.isAbsolute.call(void 0, normalizedOptions.targetDir) ? normalizedOptions.targetDir : _chunkMKG63IZWjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.targetDir)
|
|
1050
|
+
)
|
|
1051
|
+
);
|
|
1052
|
+
}
|
|
1053
|
+
if (normalizedOptions.configPath) {
|
|
1054
|
+
normalizedOptions.configPath = _chunkMKG63IZWjs.relative.call(void 0,
|
|
1055
|
+
absoluteProjectRoot,
|
|
1056
|
+
_chunkMKG63IZWjs.correctPaths.call(void 0,
|
|
1057
|
+
_chunkMKG63IZWjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkMKG63IZWjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
1058
|
+
)
|
|
1059
|
+
);
|
|
1060
|
+
}
|
|
1061
|
+
if (normalizedOptions.manifestPath) {
|
|
1062
|
+
normalizedOptions.manifestPath = _chunkMKG63IZWjs.relative.call(void 0,
|
|
1063
|
+
absoluteProjectRoot,
|
|
1064
|
+
_chunkMKG63IZWjs.correctPaths.call(void 0,
|
|
1065
|
+
_chunkMKG63IZWjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkMKG63IZWjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
1066
|
+
)
|
|
1067
|
+
);
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1018
1070
|
if (process.env.VERCEL) {
|
|
1019
1071
|
return { success: true };
|
|
1020
1072
|
}
|
|
1021
|
-
const { task } = await napi.build(
|
|
1073
|
+
const { task } = await napi.build(normalizedOptions);
|
|
1022
1074
|
return { success: true, terminalOutput: await task };
|
|
1023
1075
|
}
|
|
1024
|
-
var executor_default7 =
|
|
1076
|
+
var executor_default7 = _chunkMKG63IZWjs.withRunExecutor.call(void 0,
|
|
1025
1077
|
"Napi - Build Bindings",
|
|
1026
1078
|
napiExecutor,
|
|
1027
1079
|
{
|
|
1028
1080
|
skipReadingConfig: false,
|
|
1029
1081
|
hooks: {
|
|
1030
1082
|
applyDefaultOptions: (options) => {
|
|
1031
|
-
options.outputPath ??= "
|
|
1083
|
+
options.outputPath ??= "{sourceRoot}";
|
|
1032
1084
|
options.toolchain ??= "stable";
|
|
1033
1085
|
options.dtsCache ??= true;
|
|
1034
1086
|
options.platform ??= true;
|
|
1035
1087
|
options.constEnum ??= false;
|
|
1088
|
+
options.verbose ??= false;
|
|
1036
1089
|
options.jsBinding ??= "binding.js";
|
|
1037
1090
|
options.dts ??= "binding.d.ts";
|
|
1038
1091
|
return options;
|
|
@@ -1155,14 +1208,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1155
1208
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
1156
1209
|
);
|
|
1157
1210
|
}
|
|
1158
|
-
|
|
1211
|
+
_chunkMKG63IZWjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
1159
1212
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
1160
1213
|
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,
|
|
1161
1214
|
_nullishCoalesce(_optionalChain([context, 'access', _74 => _74.projectsConfigurations, 'access', _75 => _75.projects, 'access', _76 => _76[context.projectName], 'optionalAccess', _77 => _77.root]), () => ( "./")),
|
|
1162
1215
|
"src"
|
|
1163
1216
|
)))
|
|
1164
1217
|
}).then((result) => {
|
|
1165
|
-
|
|
1218
|
+
_chunkMKG63IZWjs.writeInfo.call(void 0,
|
|
1166
1219
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
1167
1220
|
config
|
|
1168
1221
|
);
|
|
@@ -1171,7 +1224,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1171
1224
|
success: true
|
|
1172
1225
|
};
|
|
1173
1226
|
}
|
|
1174
|
-
var executor_default8 =
|
|
1227
|
+
var executor_default8 = _chunkMKG63IZWjs.withRunExecutor.call(void 0,
|
|
1175
1228
|
"Size-Limit Performance Test Executor",
|
|
1176
1229
|
sizeLimitExecutorFn,
|
|
1177
1230
|
{
|
|
@@ -1232,19 +1285,19 @@ function toTSDownFormat(format4) {
|
|
|
1232
1285
|
// ../tsdown/src/build.ts
|
|
1233
1286
|
var resolveOptions = async (userOptions) => {
|
|
1234
1287
|
const options = getDefaultOptions(userOptions);
|
|
1235
|
-
const workspaceRoot2 =
|
|
1288
|
+
const workspaceRoot2 = _chunkMKG63IZWjs.findWorkspaceRoot.call(void 0, options.projectRoot);
|
|
1236
1289
|
if (!workspaceRoot2) {
|
|
1237
1290
|
throw new Error("Cannot find Nx workspace root");
|
|
1238
1291
|
}
|
|
1239
|
-
const workspaceConfig = await
|
|
1292
|
+
const workspaceConfig = await _chunkMKG63IZWjs.getWorkspaceConfig.call(void 0, options.debug === true, {
|
|
1240
1293
|
workspaceRoot: workspaceRoot2
|
|
1241
1294
|
});
|
|
1242
|
-
|
|
1243
|
-
const stopwatch =
|
|
1295
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
1296
|
+
const stopwatch = _chunkMKG63IZWjs.getStopwatch.call(void 0, "Build options resolution");
|
|
1244
1297
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
1245
1298
|
exitOnError: true
|
|
1246
1299
|
});
|
|
1247
|
-
const projectJsonPath =
|
|
1300
|
+
const projectJsonPath = _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
1248
1301
|
workspaceRoot2,
|
|
1249
1302
|
options.projectRoot,
|
|
1250
1303
|
"project.json"
|
|
@@ -1261,7 +1314,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
1261
1314
|
"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."
|
|
1262
1315
|
);
|
|
1263
1316
|
}
|
|
1264
|
-
const packageJsonPath =
|
|
1317
|
+
const packageJsonPath = _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
1265
1318
|
workspaceRoot2,
|
|
1266
1319
|
options.projectRoot,
|
|
1267
1320
|
"package.json"
|
|
@@ -1270,13 +1323,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
1270
1323
|
throw new Error("Cannot find package.json configuration");
|
|
1271
1324
|
}
|
|
1272
1325
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
1273
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
1326
|
+
const sourceRoot = projectJson.sourceRoot || _chunkMKG63IZWjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
1274
1327
|
const result = {
|
|
1275
1328
|
name: projectName,
|
|
1276
1329
|
mode: "production",
|
|
1277
1330
|
target: DEFAULT_TARGET,
|
|
1278
1331
|
generatePackageJson: true,
|
|
1279
|
-
outDir:
|
|
1332
|
+
outDir: _chunkMKG63IZWjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
1280
1333
|
minify: !debug,
|
|
1281
1334
|
plugins: [],
|
|
1282
1335
|
assets: [],
|
|
@@ -1288,12 +1341,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
1288
1341
|
clean: false,
|
|
1289
1342
|
fixedExtension: true,
|
|
1290
1343
|
nodeProtocol: true,
|
|
1291
|
-
tsconfig:
|
|
1344
|
+
tsconfig: _chunkMKG63IZWjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
1292
1345
|
debug,
|
|
1293
1346
|
sourceRoot,
|
|
1294
1347
|
cwd: workspaceConfig.workspaceRoot,
|
|
1295
1348
|
entry: {
|
|
1296
|
-
["index"]:
|
|
1349
|
+
["index"]: _chunkMKG63IZWjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
1297
1350
|
},
|
|
1298
1351
|
workspace: true,
|
|
1299
1352
|
...options,
|
|
@@ -1312,15 +1365,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
1312
1365
|
return result;
|
|
1313
1366
|
};
|
|
1314
1367
|
async function generatePackageJson2(options) {
|
|
1315
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
1316
|
-
|
|
1317
|
-
const stopwatch =
|
|
1318
|
-
const packageJsonPath =
|
|
1368
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkMKG63IZWjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
1369
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
1370
|
+
const stopwatch = _chunkMKG63IZWjs.getStopwatch.call(void 0, "Write package.json file");
|
|
1371
|
+
const packageJsonPath = _chunkMKG63IZWjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
1319
1372
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1320
1373
|
throw new Error("Cannot find package.json configuration");
|
|
1321
1374
|
}
|
|
1322
1375
|
const packageJsonFile = await _promises2.default.readFile(
|
|
1323
|
-
|
|
1376
|
+
_chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
1324
1377
|
options.workspaceConfig.workspaceRoot,
|
|
1325
1378
|
options.projectRoot,
|
|
1326
1379
|
"package.json"
|
|
@@ -1382,14 +1435,14 @@ async function generatePackageJson2(options) {
|
|
|
1382
1435
|
},
|
|
1383
1436
|
packageJson.exports
|
|
1384
1437
|
);
|
|
1385
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1438
|
+
await _devkit.writeJsonFile.call(void 0, _chunkMKG63IZWjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
1386
1439
|
stopwatch();
|
|
1387
1440
|
}
|
|
1388
1441
|
return options;
|
|
1389
1442
|
}
|
|
1390
1443
|
async function executeTSDown(options) {
|
|
1391
|
-
|
|
1392
|
-
const stopwatch =
|
|
1444
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
|
|
1445
|
+
const stopwatch = _chunkMKG63IZWjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
1393
1446
|
await _tsdown.build.call(void 0, {
|
|
1394
1447
|
...options,
|
|
1395
1448
|
entry: options.entry,
|
|
@@ -1399,11 +1452,11 @@ async function executeTSDown(options) {
|
|
|
1399
1452
|
return options;
|
|
1400
1453
|
}
|
|
1401
1454
|
async function copyBuildAssets2(options) {
|
|
1402
|
-
|
|
1455
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0,
|
|
1403
1456
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
1404
1457
|
options.workspaceConfig
|
|
1405
1458
|
);
|
|
1406
|
-
const stopwatch =
|
|
1459
|
+
const stopwatch = _chunkMKG63IZWjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
1407
1460
|
await copyAssets(
|
|
1408
1461
|
options.workspaceConfig,
|
|
1409
1462
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
@@ -1417,18 +1470,18 @@ async function copyBuildAssets2(options) {
|
|
|
1417
1470
|
return options;
|
|
1418
1471
|
}
|
|
1419
1472
|
async function reportResults2(options) {
|
|
1420
|
-
|
|
1473
|
+
_chunkMKG63IZWjs.writeSuccess.call(void 0,
|
|
1421
1474
|
` \u{1F4E6} The ${options.name} build completed successfully`,
|
|
1422
1475
|
options.workspaceConfig
|
|
1423
1476
|
);
|
|
1424
1477
|
}
|
|
1425
1478
|
async function cleanOutputPath2(options) {
|
|
1426
1479
|
if (options.clean !== false && options.workspaceConfig) {
|
|
1427
|
-
|
|
1480
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0,
|
|
1428
1481
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
|
|
1429
1482
|
options.workspaceConfig
|
|
1430
1483
|
);
|
|
1431
|
-
const stopwatch =
|
|
1484
|
+
const stopwatch = _chunkMKG63IZWjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
1432
1485
|
await cleanDirectories2(
|
|
1433
1486
|
options.name,
|
|
1434
1487
|
options.outDir,
|
|
@@ -1439,8 +1492,8 @@ async function cleanOutputPath2(options) {
|
|
|
1439
1492
|
return options;
|
|
1440
1493
|
}
|
|
1441
1494
|
async function build3(options) {
|
|
1442
|
-
|
|
1443
|
-
const stopwatch =
|
|
1495
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
1496
|
+
const stopwatch = _chunkMKG63IZWjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
1444
1497
|
try {
|
|
1445
1498
|
const opts = Array.isArray(options) ? options : [options];
|
|
1446
1499
|
if (opts.length === 0) {
|
|
@@ -1460,13 +1513,13 @@ async function build3(options) {
|
|
|
1460
1513
|
})
|
|
1461
1514
|
);
|
|
1462
1515
|
} else {
|
|
1463
|
-
|
|
1516
|
+
_chunkMKG63IZWjs.writeWarning.call(void 0,
|
|
1464
1517
|
" \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
|
|
1465
1518
|
);
|
|
1466
1519
|
}
|
|
1467
|
-
|
|
1520
|
+
_chunkMKG63IZWjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
1468
1521
|
} catch (error) {
|
|
1469
|
-
|
|
1522
|
+
_chunkMKG63IZWjs.writeFatal.call(void 0,
|
|
1470
1523
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
1471
1524
|
);
|
|
1472
1525
|
throw error;
|
|
@@ -1477,7 +1530,7 @@ async function build3(options) {
|
|
|
1477
1530
|
|
|
1478
1531
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
1479
1532
|
async function tsdownExecutorFn(options, context, config) {
|
|
1480
|
-
|
|
1533
|
+
_chunkMKG63IZWjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
1481
1534
|
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])) {
|
|
1482
1535
|
throw new Error(
|
|
1483
1536
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -1498,7 +1551,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
1498
1551
|
success: true
|
|
1499
1552
|
};
|
|
1500
1553
|
}
|
|
1501
|
-
var executor_default9 =
|
|
1554
|
+
var executor_default9 = _chunkMKG63IZWjs.withRunExecutor.call(void 0,
|
|
1502
1555
|
"Storm TSDown build",
|
|
1503
1556
|
tsdownExecutorFn,
|
|
1504
1557
|
{
|
|
@@ -1519,12 +1572,12 @@ var _fsextra = require('fs-extra');
|
|
|
1519
1572
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1520
1573
|
async function typiaExecutorFn(options, _, config) {
|
|
1521
1574
|
if (options.clean !== false) {
|
|
1522
|
-
|
|
1575
|
+
_chunkMKG63IZWjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
1523
1576
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1524
1577
|
}
|
|
1525
1578
|
await Promise.all(
|
|
1526
1579
|
options.entry.map((entry) => {
|
|
1527
|
-
|
|
1580
|
+
_chunkMKG63IZWjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
1528
1581
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1529
1582
|
input: entry,
|
|
1530
1583
|
output: options.outputPath,
|
|
@@ -1536,7 +1589,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
1536
1589
|
success: true
|
|
1537
1590
|
};
|
|
1538
1591
|
}
|
|
1539
|
-
var executor_default10 =
|
|
1592
|
+
var executor_default10 = _chunkMKG63IZWjs.withRunExecutor.call(void 0,
|
|
1540
1593
|
"Typia runtime validation generator",
|
|
1541
1594
|
typiaExecutorFn,
|
|
1542
1595
|
{
|
|
@@ -1557,7 +1610,7 @@ var executor_default10 = _chunkYDAVIV5Rjs.withRunExecutor.call(void 0,
|
|
|
1557
1610
|
|
|
1558
1611
|
|
|
1559
1612
|
async function unbuildExecutorFn(options, context, config) {
|
|
1560
|
-
|
|
1613
|
+
_chunkMKG63IZWjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1561
1614
|
if (!_optionalChain([context, 'access', _94 => _94.projectsConfigurations, 'optionalAccess', _95 => _95.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1562
1615
|
throw new Error(
|
|
1563
1616
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -1574,7 +1627,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1574
1627
|
);
|
|
1575
1628
|
}
|
|
1576
1629
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1577
|
-
fsCache: config.skipCache ? false :
|
|
1630
|
+
fsCache: config.skipCache ? false : _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
1578
1631
|
config.workspaceRoot,
|
|
1579
1632
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1580
1633
|
"jiti"
|
|
@@ -1596,7 +1649,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1596
1649
|
{
|
|
1597
1650
|
stubOptions: {
|
|
1598
1651
|
jiti: {
|
|
1599
|
-
fsCache: config.skipCache ? false :
|
|
1652
|
+
fsCache: config.skipCache ? false : _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
1600
1653
|
config.workspaceRoot,
|
|
1601
1654
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1602
1655
|
"jiti"
|
|
@@ -1625,7 +1678,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1625
1678
|
success: true
|
|
1626
1679
|
};
|
|
1627
1680
|
}
|
|
1628
|
-
var executor_default11 =
|
|
1681
|
+
var executor_default11 = _chunkMKG63IZWjs.withRunExecutor.call(void 0,
|
|
1629
1682
|
"TypeScript Unbuild build",
|
|
1630
1683
|
unbuildExecutorFn,
|
|
1631
1684
|
{
|
|
@@ -1656,45 +1709,45 @@ var executor_default11 = _chunkYDAVIV5Rjs.withRunExecutor.call(void 0,
|
|
|
1656
1709
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
1657
1710
|
skipReadingConfig: false
|
|
1658
1711
|
}) => async (tree, _options) => {
|
|
1659
|
-
const stopwatch =
|
|
1712
|
+
const stopwatch = _chunkMKG63IZWjs.getStopwatch.call(void 0, name);
|
|
1660
1713
|
let options = _options;
|
|
1661
1714
|
let config;
|
|
1662
1715
|
try {
|
|
1663
|
-
|
|
1716
|
+
_chunkMKG63IZWjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1664
1717
|
|
|
1665
1718
|
`, config);
|
|
1666
|
-
const workspaceRoot2 =
|
|
1719
|
+
const workspaceRoot2 = _chunkMKG63IZWjs.findWorkspaceRoot.call(void 0, );
|
|
1667
1720
|
if (!generatorOptions.skipReadingConfig) {
|
|
1668
|
-
|
|
1721
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0,
|
|
1669
1722
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1670
1723
|
- workspaceRoot: ${workspaceRoot2}`,
|
|
1671
1724
|
config
|
|
1672
1725
|
);
|
|
1673
|
-
config = await
|
|
1726
|
+
config = await _chunkMKG63IZWjs.getConfig.call(void 0, workspaceRoot2);
|
|
1674
1727
|
}
|
|
1675
1728
|
if (_optionalChain([generatorOptions, 'optionalAccess', _96 => _96.hooks, 'optionalAccess', _97 => _97.applyDefaultOptions])) {
|
|
1676
|
-
|
|
1729
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1677
1730
|
options = await Promise.resolve(
|
|
1678
1731
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
1679
1732
|
);
|
|
1680
|
-
|
|
1733
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
1681
1734
|
}
|
|
1682
|
-
|
|
1735
|
+
_chunkMKG63IZWjs.writeTrace.call(void 0,
|
|
1683
1736
|
`Generator schema options \u2699\uFE0F
|
|
1684
1737
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
1685
1738
|
config
|
|
1686
1739
|
);
|
|
1687
|
-
const tokenized = await
|
|
1740
|
+
const tokenized = await _chunkMKG63IZWjs.applyWorkspaceTokens.call(void 0,
|
|
1688
1741
|
options,
|
|
1689
1742
|
{ workspaceRoot: tree.root, config },
|
|
1690
|
-
|
|
1743
|
+
_chunkMKG63IZWjs.applyWorkspaceBaseTokens
|
|
1691
1744
|
);
|
|
1692
1745
|
if (_optionalChain([generatorOptions, 'optionalAccess', _98 => _98.hooks, 'optionalAccess', _99 => _99.preProcess])) {
|
|
1693
|
-
|
|
1746
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1694
1747
|
await Promise.resolve(
|
|
1695
1748
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
1696
1749
|
);
|
|
1697
|
-
|
|
1750
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1698
1751
|
}
|
|
1699
1752
|
const result = await Promise.resolve(
|
|
1700
1753
|
generatorFn(tree, tokenized, config)
|
|
@@ -1709,21 +1762,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1709
1762
|
}
|
|
1710
1763
|
}
|
|
1711
1764
|
if (_optionalChain([generatorOptions, 'optionalAccess', _109 => _109.hooks, 'optionalAccess', _110 => _110.postProcess])) {
|
|
1712
|
-
|
|
1765
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1713
1766
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1714
|
-
|
|
1767
|
+
_chunkMKG63IZWjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
1715
1768
|
}
|
|
1716
1769
|
return () => {
|
|
1717
|
-
|
|
1770
|
+
_chunkMKG63IZWjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
1718
1771
|
`, config);
|
|
1719
1772
|
};
|
|
1720
1773
|
} catch (error) {
|
|
1721
1774
|
return () => {
|
|
1722
|
-
|
|
1775
|
+
_chunkMKG63IZWjs.writeFatal.call(void 0,
|
|
1723
1776
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
1724
1777
|
config
|
|
1725
1778
|
);
|
|
1726
|
-
|
|
1779
|
+
_chunkMKG63IZWjs.writeError.call(void 0,
|
|
1727
1780
|
`An exception was thrown in the generator's process
|
|
1728
1781
|
- Details: ${error.message}
|
|
1729
1782
|
- Stacktrace: ${error.stack}`,
|
|
@@ -1789,16 +1842,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1789
1842
|
const projectConfig = {
|
|
1790
1843
|
root: normalized.directory,
|
|
1791
1844
|
projectType: "library",
|
|
1792
|
-
sourceRoot:
|
|
1845
|
+
sourceRoot: _chunkMKG63IZWjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
1793
1846
|
targets: {
|
|
1794
1847
|
build: {
|
|
1795
1848
|
executor: options.buildExecutor,
|
|
1796
1849
|
outputs: ["{options.outputPath}"],
|
|
1797
1850
|
options: {
|
|
1798
|
-
entry: [
|
|
1851
|
+
entry: [_chunkMKG63IZWjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
1799
1852
|
outputPath: getOutputPath(normalized),
|
|
1800
|
-
tsconfig:
|
|
1801
|
-
project:
|
|
1853
|
+
tsconfig: _chunkMKG63IZWjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
1854
|
+
project: _chunkMKG63IZWjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
1802
1855
|
defaultConfiguration: "production",
|
|
1803
1856
|
platform: "neutral",
|
|
1804
1857
|
assets: [
|
|
@@ -1855,7 +1908,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1855
1908
|
if (!normalized.importPath) {
|
|
1856
1909
|
normalized.importPath = normalized.name;
|
|
1857
1910
|
}
|
|
1858
|
-
const packageJsonPath =
|
|
1911
|
+
const packageJsonPath = _chunkMKG63IZWjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
1859
1912
|
if (tree.exists(packageJsonPath)) {
|
|
1860
1913
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
1861
1914
|
if (!normalized.importPath) {
|
|
@@ -1912,14 +1965,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1912
1965
|
}));
|
|
1913
1966
|
}
|
|
1914
1967
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
1915
|
-
|
|
1968
|
+
_chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
1916
1969
|
normalized.projectRoot,
|
|
1917
1970
|
"./src",
|
|
1918
1971
|
`index.${normalized.js ? "js" : "ts"}`
|
|
1919
1972
|
)
|
|
1920
1973
|
]);
|
|
1921
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
1922
|
-
|
|
1974
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkMKG63IZWjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
1975
|
+
_chunkMKG63IZWjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
1923
1976
|
]);
|
|
1924
1977
|
if (tree.exists("package.json")) {
|
|
1925
1978
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -1930,7 +1983,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1930
1983
|
description = packageJson.description;
|
|
1931
1984
|
}
|
|
1932
1985
|
}
|
|
1933
|
-
const tsconfigPath =
|
|
1986
|
+
const tsconfigPath = _chunkMKG63IZWjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
1934
1987
|
if (tree.exists(tsconfigPath)) {
|
|
1935
1988
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
1936
1989
|
json.composite ??= true;
|
|
@@ -1958,7 +2011,7 @@ function getOutputPath(options) {
|
|
|
1958
2011
|
} else {
|
|
1959
2012
|
parts.push(options.projectRoot);
|
|
1960
2013
|
}
|
|
1961
|
-
return
|
|
2014
|
+
return _chunkMKG63IZWjs.joinPaths.call(void 0, ...parts);
|
|
1962
2015
|
}
|
|
1963
2016
|
function createProjectTsConfigJson(tree, options) {
|
|
1964
2017
|
const tsconfig = {
|
|
@@ -1966,7 +2019,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
1966
2019
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _125 => _125.tsconfigOptions]), () => ( {})),
|
|
1967
2020
|
compilerOptions: {
|
|
1968
2021
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
1969
|
-
outDir:
|
|
2022
|
+
outDir: _chunkMKG63IZWjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
1970
2023
|
noEmit: true,
|
|
1971
2024
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _126 => _126.tsconfigOptions, 'optionalAccess', _127 => _127.compilerOptions]), () => ( {}))
|
|
1972
2025
|
},
|
|
@@ -1984,7 +2037,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
1984
2037
|
"src/**/*.test.ts"
|
|
1985
2038
|
]
|
|
1986
2039
|
};
|
|
1987
|
-
_devkit.writeJson.call(void 0, tree,
|
|
2040
|
+
_devkit.writeJson.call(void 0, tree, _chunkMKG63IZWjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
1988
2041
|
}
|
|
1989
2042
|
async function normalizeOptions(tree, options, config) {
|
|
1990
2043
|
let importPath = options.importPath;
|
|
@@ -2049,7 +2102,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
2049
2102
|
|
|
2050
2103
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
2051
2104
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
2052
|
-
const filesDir =
|
|
2105
|
+
const filesDir = _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
2053
2106
|
__dirname,
|
|
2054
2107
|
"src",
|
|
2055
2108
|
"generators",
|
|
@@ -2132,38 +2185,38 @@ var generator_default = withRunGenerator(
|
|
|
2132
2185
|
|
|
2133
2186
|
var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
|
|
2134
2187
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
2135
|
-
|
|
2188
|
+
_chunkMKG63IZWjs.writeInfo.call(void 0,
|
|
2136
2189
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
2137
2190
|
config
|
|
2138
2191
|
);
|
|
2139
|
-
|
|
2192
|
+
_chunkMKG63IZWjs.writeTrace.call(void 0,
|
|
2140
2193
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
2141
2194
|
config
|
|
2142
2195
|
);
|
|
2143
|
-
const jsonSchema = z.toJSONSchema(
|
|
2196
|
+
const jsonSchema = z.toJSONSchema(_chunkMKG63IZWjs.workspaceConfigSchema, {
|
|
2144
2197
|
target: "draft-7",
|
|
2145
|
-
metadata:
|
|
2198
|
+
metadata: _chunkMKG63IZWjs.schemaRegistry
|
|
2146
2199
|
});
|
|
2147
2200
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
2148
2201
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
2149
2202
|
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.";
|
|
2150
|
-
|
|
2203
|
+
_chunkMKG63IZWjs.writeTrace.call(void 0, jsonSchema, config);
|
|
2151
2204
|
if (!options.outputFile) {
|
|
2152
2205
|
throw new Error(
|
|
2153
2206
|
"The `outputFile` option is required. Please specify the output file path."
|
|
2154
2207
|
);
|
|
2155
2208
|
}
|
|
2156
2209
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
2157
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _136 => _136.workspaceRoot]), () => (
|
|
2210
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _136 => _136.workspaceRoot]), () => ( _chunkMKG63IZWjs.findWorkspaceRoot.call(void 0, ))),
|
|
2158
2211
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
2159
2212
|
);
|
|
2160
|
-
|
|
2213
|
+
_chunkMKG63IZWjs.writeTrace.call(void 0,
|
|
2161
2214
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
2162
2215
|
config
|
|
2163
2216
|
);
|
|
2164
2217
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
2165
2218
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2166
|
-
|
|
2219
|
+
_chunkMKG63IZWjs.writeSuccess.call(void 0,
|
|
2167
2220
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
2168
2221
|
config
|
|
2169
2222
|
);
|
|
@@ -2219,7 +2272,7 @@ async function initGenerator(tree, schema) {
|
|
|
2219
2272
|
|
|
2220
2273
|
|
|
2221
2274
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
2222
|
-
const filesDir =
|
|
2275
|
+
const filesDir = _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
2223
2276
|
__dirname,
|
|
2224
2277
|
"src",
|
|
2225
2278
|
"generators",
|
|
@@ -2278,7 +2331,7 @@ var generator_default3 = withRunGenerator(
|
|
|
2278
2331
|
|
|
2279
2332
|
|
|
2280
2333
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
2281
|
-
const filesDir =
|
|
2334
|
+
const filesDir = _chunkMKG63IZWjs.joinPaths.call(void 0,
|
|
2282
2335
|
__dirname,
|
|
2283
2336
|
"src",
|
|
2284
2337
|
"generators",
|