@storm-software/workspace-tools 1.294.37 → 1.294.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/{chunk-XZPUEPKK.mjs → chunk-27MUZNN2.mjs} +1 -1
- package/dist/{chunk-CK3BPORZ.js → chunk-2DEV7MTD.js} +21 -21
- package/dist/{chunk-3UVFXL7I.js → chunk-2VO5LA3U.js} +10 -10
- package/dist/{chunk-YHO3SOGJ.mjs → chunk-37K47MPA.mjs} +4 -4
- package/dist/{chunk-NTM7F6SO.js → chunk-3ZTDN4LM.js} +2 -2
- package/dist/{chunk-35BFW2YQ.mjs → chunk-42TEYLHF.mjs} +1 -1
- package/dist/{chunk-ZTCV7FTK.js → chunk-4HKJAOZE.js} +2 -2
- package/dist/{chunk-BA7S3VQ3.mjs → chunk-4KPUUE5X.mjs} +2 -2
- package/dist/{chunk-LQZIZT3Y.js → chunk-4U2NLOJ4.js} +2 -2
- package/dist/{chunk-57NKESY4.js → chunk-4XFAGKVY.js} +2 -2
- package/dist/{chunk-CHKLDARN.mjs → chunk-5KJYQ2A4.mjs} +1 -1
- package/dist/{chunk-UK6TAD3O.mjs → chunk-6KULJXXR.mjs} +6 -6
- package/dist/{chunk-6ES3P2CK.js → chunk-6TQ2ZIQQ.js} +12 -12
- package/dist/{chunk-IQ7NS4OX.mjs → chunk-6ZC47WFT.mjs} +3 -3
- package/dist/{chunk-J6VRN6FY.mjs → chunk-7KSP37MJ.mjs} +1 -1
- package/dist/{chunk-HLZG5AEE.mjs → chunk-CDEOZ2LA.mjs} +2 -2
- package/dist/{chunk-SPYERBWG.mjs → chunk-CEC4FZYL.mjs} +1 -1
- package/dist/{chunk-R2GSNVL2.mjs → chunk-CEM3HM3B.mjs} +1 -1
- package/dist/{chunk-NZX54HXX.mjs → chunk-CN3UL6AL.mjs} +2 -2
- package/dist/{chunk-2KJIK2JG.mjs → chunk-E4M7JXF6.mjs} +1 -1
- package/dist/{chunk-DJMMAL4W.mjs → chunk-E7FF7KFZ.mjs} +1 -1
- package/dist/{chunk-VFLEWVYZ.js → chunk-EE24BJX6.js} +34 -34
- package/dist/{chunk-6CO2XOFR.js → chunk-EE66SW3C.js} +4 -4
- package/dist/{chunk-GAOMOIRS.js → chunk-GKKPBHC2.js} +6 -6
- package/dist/{chunk-QY6ZMQ6I.js → chunk-GYSWO4MZ.js} +4 -4
- package/dist/{chunk-PKU6ZJTS.js → chunk-H3IKVCIQ.js} +5 -5
- package/dist/{chunk-VHXO4KB2.js → chunk-HBEU4BAA.js} +2 -2
- package/dist/{chunk-Y6FERKSJ.js → chunk-HRBUI3FP.js} +2 -2
- package/dist/{chunk-DCNARLNN.mjs → chunk-I6M6W65L.mjs} +1 -1
- package/dist/{chunk-MRG3BU6W.mjs → chunk-IE6KPWWN.mjs} +2 -2
- package/dist/{chunk-BU2S2BSO.mjs → chunk-ISKPL45K.mjs} +1 -1
- package/dist/{chunk-5LORK24T.mjs → chunk-JTAXUWUB.mjs} +1 -1
- package/dist/{chunk-MZDT5BZH.js → chunk-JWDJFIY2.js} +5 -5
- package/dist/{chunk-HUZNI7UG.mjs → chunk-JYOKROZO.mjs} +1 -1
- package/dist/{chunk-YRI7JSHF.js → chunk-K2HA4BJN.js} +2 -2
- package/dist/{chunk-QVC3FWV5.js → chunk-LIV5KBYE.js} +2 -2
- package/dist/{chunk-UWQQYG23.mjs → chunk-M7NAHAMC.mjs} +1 -1
- package/dist/{chunk-PBN7PKGE.js → chunk-MS4BPPPO.js} +17 -17
- package/dist/{chunk-QPBVOQFM.js → chunk-MTLWFXXL.js} +2 -2
- package/dist/{chunk-EYFYABBG.mjs → chunk-MYOUONF2.mjs} +4 -4
- package/dist/{chunk-AA5UBL6W.js → chunk-MZGQ4TDY.js} +11 -11
- package/dist/{chunk-TIJ5S5SL.mjs → chunk-NDH64REY.mjs} +1 -1
- package/dist/{chunk-2KU2SYND.js → chunk-OBA5LSVN.js} +2 -2
- package/dist/{chunk-J3V2XDUI.mjs → chunk-OPKOW7IE.mjs} +6 -5
- package/dist/{chunk-R3374L7Q.mjs → chunk-PGNIX7OK.mjs} +3 -3
- package/dist/{chunk-OS24C67P.js → chunk-QEZ37HVM.js} +6 -5
- package/dist/{chunk-CJHDSYRB.js → chunk-RDCGNHHG.js} +2 -2
- package/dist/{chunk-6DW3XFYQ.js → chunk-RXZNL5UA.js} +30 -30
- package/dist/{chunk-2LSF54ZF.mjs → chunk-S3RWO7R6.mjs} +2 -2
- package/dist/{chunk-PK3VAEVW.js → chunk-TJQO23VQ.js} +2 -2
- package/dist/{chunk-R4VLMWSB.mjs → chunk-ULDXNDLD.mjs} +1 -1
- package/dist/{chunk-5ERD4NKM.js → chunk-V3AKBG6K.js} +8 -8
- package/dist/{chunk-ZNRCZ3UF.js → chunk-YG23JJML.js} +2 -2
- package/dist/{chunk-Q5LQOLXC.mjs → chunk-ZMKOMKU4.mjs} +2 -2
- package/dist/executors.js +20 -20
- package/dist/executors.mjs +23 -23
- package/dist/generators.js +10 -10
- package/dist/generators.mjs +10 -10
- package/dist/index.js +29 -29
- package/dist/index.mjs +33 -33
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-generator.js +4 -4
- package/dist/src/base/base-generator.mjs +3 -3
- package/dist/src/base/index.js +5 -5
- package/dist/src/base/index.mjs +4 -4
- package/dist/src/executors/cargo-build/executor.js +5 -5
- package/dist/src/executors/cargo-build/executor.mjs +4 -4
- package/dist/src/executors/cargo-check/executor.js +5 -5
- package/dist/src/executors/cargo-check/executor.mjs +4 -4
- package/dist/src/executors/cargo-clippy/executor.js +5 -5
- package/dist/src/executors/cargo-clippy/executor.mjs +4 -4
- package/dist/src/executors/cargo-doc/executor.js +5 -5
- package/dist/src/executors/cargo-doc/executor.mjs +4 -4
- package/dist/src/executors/cargo-format/executor.js +5 -5
- package/dist/src/executors/cargo-format/executor.mjs +4 -4
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- package/dist/src/executors/esbuild/executor.js +6 -6
- package/dist/src/executors/esbuild/executor.mjs +5 -5
- package/dist/src/executors/napi/executor.js +5 -5
- package/dist/src/executors/napi/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/executor.js +6 -6
- package/dist/src/executors/npm-publish/executor.mjs +5 -5
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/tsdown/executor.js +6 -6
- package/dist/src/executors/tsdown/executor.mjs +5 -5
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +4 -4
- package/dist/src/executors/unbuild/executor.js +5 -5
- package/dist/src/executors/unbuild/executor.mjs +4 -4
- package/dist/src/generators/browser-library/generator.js +5 -5
- package/dist/src/generators/browser-library/generator.mjs +4 -4
- package/dist/src/generators/config-schema/generator.js +5 -5
- package/dist/src/generators/config-schema/generator.mjs +4 -4
- package/dist/src/generators/neutral-library/generator.js +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +4 -4
- package/dist/src/generators/node-library/generator.js +5 -5
- package/dist/src/generators/node-library/generator.mjs +4 -4
- package/dist/src/generators/preset/generator.js +5 -5
- package/dist/src/generators/preset/generator.mjs +4 -4
- package/dist/src/release/index.js +6 -6
- package/dist/src/release/index.mjs +5 -5
- package/dist/src/release/js-version-actions.js +4 -4
- package/dist/src/release/js-version-actions.mjs +3 -3
- package/dist/src/release/rust-version-actions.js +5 -5
- package/dist/src/release/rust-version-actions.mjs +4 -4
- package/dist/src/utils/index.js +4 -4
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/package-helpers.js +4 -4
- package/dist/src/utils/package-helpers.mjs +3 -3
- package/package.json +9 -9
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGKKPBHC2js = require('./chunk-GKKPBHC2.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk2DEV7MTDjs = require('./chunk-2DEV7MTD.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk2VO5LA3Ujs = require('./chunk-2VO5LA3U.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -22,7 +22,7 @@ var _chunk3UVFXL7Ijs = require('./chunk-3UVFXL7I.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkQEZ37HVMjs = require('./chunk-QEZ37HVM.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -30,12 +30,12 @@ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
|
30
30
|
// ../esbuild/src/assets.ts
|
|
31
31
|
async function copyBuildAssets(context) {
|
|
32
32
|
if (!_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) && _optionalChain([context, 'access', _4 => _4.options, 'access', _5 => _5.assets, 'optionalAccess', _6 => _6.length])) {
|
|
33
|
-
|
|
33
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0,
|
|
34
34
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
35
35
|
context.workspaceConfig
|
|
36
36
|
);
|
|
37
|
-
const stopwatch =
|
|
38
|
-
await
|
|
37
|
+
const stopwatch = _chunkQEZ37HVMjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
38
|
+
await _chunkGKKPBHC2js.copyAssets.call(void 0,
|
|
39
39
|
context.workspaceConfig,
|
|
40
40
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
41
41
|
context.outputPath,
|
|
@@ -103,8 +103,8 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
103
103
|
".woff2": "file"
|
|
104
104
|
},
|
|
105
105
|
banner: {
|
|
106
|
-
js:
|
|
107
|
-
css:
|
|
106
|
+
js: _chunkGKKPBHC2js.DEFAULT_JS_BANNER,
|
|
107
|
+
css: _chunkGKKPBHC2js.DEFAULT_CSS_BANNER
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
|
|
@@ -115,11 +115,11 @@ async function resolveContext(userOptions) {
|
|
|
115
115
|
if (!workspaceRoot) {
|
|
116
116
|
throw new Error("Cannot find Nx workspace root");
|
|
117
117
|
}
|
|
118
|
-
const workspaceConfig = await
|
|
118
|
+
const workspaceConfig = await _chunk2VO5LA3Ujs.getWorkspaceConfig.call(void 0, true, {
|
|
119
119
|
workspaceRoot: workspaceRoot.dir
|
|
120
120
|
});
|
|
121
|
-
|
|
122
|
-
const stopwatch =
|
|
121
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
122
|
+
const stopwatch = _chunkQEZ37HVMjs.getStopwatch.call(void 0, "Build options resolution");
|
|
123
123
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
124
124
|
exitOnError: true
|
|
125
125
|
});
|
|
@@ -150,7 +150,7 @@ async function resolveContext(userOptions) {
|
|
|
150
150
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
151
151
|
throw new Error("Cannot find package.json configuration");
|
|
152
152
|
}
|
|
153
|
-
const env =
|
|
153
|
+
const env = _chunkGKKPBHC2js.getEnv.call(void 0, "esbuild", options);
|
|
154
154
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
155
155
|
const resolvedOptions = {
|
|
156
156
|
...options,
|
|
@@ -189,10 +189,10 @@ async function resolveContext(userOptions) {
|
|
|
189
189
|
};
|
|
190
190
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
191
191
|
if (context.options.verbose) {
|
|
192
|
-
|
|
192
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0,
|
|
193
193
|
` \u2699\uFE0F Build options resolved:
|
|
194
194
|
|
|
195
|
-
${
|
|
195
|
+
${_chunkQEZ37HVMjs.formatLogMessage.call(void 0, context.options)}`,
|
|
196
196
|
workspaceConfig
|
|
197
197
|
);
|
|
198
198
|
}
|
|
@@ -205,8 +205,8 @@ ${_chunkOS24C67Pjs.formatLogMessage.call(void 0, context.options)}`,
|
|
|
205
205
|
|
|
206
206
|
async function generatePackageJson(context) {
|
|
207
207
|
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
208
|
-
|
|
209
|
-
const stopwatch =
|
|
208
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
209
|
+
const stopwatch = _chunkQEZ37HVMjs.getStopwatch.call(void 0, "Write package.json file");
|
|
210
210
|
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
211
211
|
context.options.projectRoot,
|
|
212
212
|
"project.json"
|
|
@@ -226,13 +226,13 @@ async function generatePackageJson(context) {
|
|
|
226
226
|
if (!packageJson) {
|
|
227
227
|
throw new Error("Cannot find package.json configuration file");
|
|
228
228
|
}
|
|
229
|
-
packageJson = await
|
|
229
|
+
packageJson = await _chunkGKKPBHC2js.addPackageDependencies.call(void 0,
|
|
230
230
|
context.workspaceConfig.workspaceRoot,
|
|
231
231
|
context.options.projectRoot,
|
|
232
232
|
context.projectName,
|
|
233
233
|
packageJson
|
|
234
234
|
);
|
|
235
|
-
packageJson = await
|
|
235
|
+
packageJson = await _chunkGKKPBHC2js.addWorkspacePackageJsonFields.call(void 0,
|
|
236
236
|
context.workspaceConfig,
|
|
237
237
|
context.options.projectRoot,
|
|
238
238
|
context.sourceRoot,
|
|
@@ -333,12 +333,12 @@ async function generatePackageJson(context) {
|
|
|
333
333
|
var _tsup = require('tsup');
|
|
334
334
|
async function build(options) {
|
|
335
335
|
if (!options.silent) {
|
|
336
|
-
|
|
336
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0,
|
|
337
337
|
` \u{1F680} Running ${options.name || "tsup"} build`,
|
|
338
338
|
options.workspaceConfig
|
|
339
339
|
);
|
|
340
340
|
}
|
|
341
|
-
const stopwatch =
|
|
341
|
+
const stopwatch = _chunkQEZ37HVMjs.getStopwatch.call(void 0, `${options.name || "tsup"} build`);
|
|
342
342
|
await _tsup.build.call(void 0, options);
|
|
343
343
|
if (!options.silent) {
|
|
344
344
|
stopwatch();
|
|
@@ -347,11 +347,11 @@ async function build(options) {
|
|
|
347
347
|
|
|
348
348
|
// ../esbuild/src/tsup.ts
|
|
349
349
|
async function executeTsup(context) {
|
|
350
|
-
|
|
350
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0,
|
|
351
351
|
` \u{1F680} Running ${context.options.name} build`,
|
|
352
352
|
context.workspaceConfig
|
|
353
353
|
);
|
|
354
|
-
const stopwatch =
|
|
354
|
+
const stopwatch = _chunkQEZ37HVMjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
355
355
|
await build({
|
|
356
356
|
...context.options,
|
|
357
357
|
outDir: context.options.distDir ? _chunkCQDBLKPFjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
@@ -365,17 +365,17 @@ async function executeTsup(context) {
|
|
|
365
365
|
async function reportResults(context) {
|
|
366
366
|
if (_optionalChain([context, 'access', _9 => _9.result, 'optionalAccess', _10 => _10.errors, 'access', _11 => _11.length]) === 0) {
|
|
367
367
|
if (context.result.warnings.length > 0) {
|
|
368
|
-
|
|
368
|
+
_chunkQEZ37HVMjs.writeWarning.call(void 0,
|
|
369
369
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
370
370
|
context.workspaceConfig
|
|
371
371
|
);
|
|
372
372
|
}
|
|
373
|
-
|
|
373
|
+
_chunkQEZ37HVMjs.writeSuccess.call(void 0,
|
|
374
374
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
375
375
|
context.workspaceConfig
|
|
376
376
|
);
|
|
377
377
|
} else if (_optionalChain([context, 'access', _12 => _12.result, 'optionalAccess', _13 => _13.errors]) && _optionalChain([context, 'access', _14 => _14.result, 'optionalAccess', _15 => _15.errors, 'access', _16 => _16.length]) > 0) {
|
|
378
|
-
|
|
378
|
+
_chunkQEZ37HVMjs.writeError.call(void 0,
|
|
379
379
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
380
380
|
context.workspaceConfig
|
|
381
381
|
);
|
|
@@ -386,19 +386,19 @@ async function reportResults(context) {
|
|
|
386
386
|
}
|
|
387
387
|
async function cleanOutputPath(context) {
|
|
388
388
|
if (context.clean !== false && context.outputPath) {
|
|
389
|
-
|
|
389
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0,
|
|
390
390
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
391
391
|
context.workspaceConfig
|
|
392
392
|
);
|
|
393
|
-
const stopwatch =
|
|
393
|
+
const stopwatch = _chunkQEZ37HVMjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
394
394
|
await cleanDirectories(context.outputPath);
|
|
395
395
|
stopwatch();
|
|
396
396
|
}
|
|
397
397
|
return context;
|
|
398
398
|
}
|
|
399
399
|
async function build2(options) {
|
|
400
|
-
|
|
401
|
-
const stopwatch =
|
|
400
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0, ` ${_chunkQEZ37HVMjs.brandIcon.call(void 0, )} Executing Storm ESBuild pipeline`);
|
|
401
|
+
const stopwatch = _chunkQEZ37HVMjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
402
402
|
try {
|
|
403
403
|
const opts = Array.isArray(options) ? options : [options];
|
|
404
404
|
if (opts.length === 0) {
|
|
@@ -413,9 +413,9 @@ async function build2(options) {
|
|
|
413
413
|
executeTsup(context)
|
|
414
414
|
]);
|
|
415
415
|
await reportResults(context);
|
|
416
|
-
|
|
416
|
+
_chunkQEZ37HVMjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
417
417
|
} catch (error) {
|
|
418
|
-
|
|
418
|
+
_chunkQEZ37HVMjs.writeFatal.call(void 0,
|
|
419
419
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
420
420
|
);
|
|
421
421
|
throw error;
|
|
@@ -426,7 +426,7 @@ async function build2(options) {
|
|
|
426
426
|
|
|
427
427
|
// src/executors/esbuild/executor.ts
|
|
428
428
|
async function esbuildExecutorFn(options, context, config) {
|
|
429
|
-
|
|
429
|
+
_chunkQEZ37HVMjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
430
430
|
if (!_optionalChain([context, 'access', _17 => _17.projectsConfigurations, 'optionalAccess', _18 => _18.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _19 => _19.projectsConfigurations, 'access', _20 => _20.projects, 'access', _21 => _21[context.projectName], 'optionalAccess', _22 => _22.root])) {
|
|
431
431
|
throw new Error(
|
|
432
432
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -447,7 +447,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
447
447
|
success: true
|
|
448
448
|
};
|
|
449
449
|
}
|
|
450
|
-
var executor_default =
|
|
450
|
+
var executor_default = _chunk2DEV7MTDjs.withRunExecutor.call(void 0,
|
|
451
451
|
"Storm ESBuild build",
|
|
452
452
|
esbuildExecutorFn,
|
|
453
453
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2DEV7MTDjs = require('./chunk-2DEV7MTD.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQEZ37HVMjs = require('./chunk-QEZ37HVM.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -12,7 +12,7 @@ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
|
12
12
|
var _defu = require('defu');
|
|
13
13
|
var _jiti = require('jiti');
|
|
14
14
|
async function unbuildExecutorFn(options, context, config) {
|
|
15
|
-
|
|
15
|
+
_chunkQEZ37HVMjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
16
16
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
17
17
|
throw new Error(
|
|
18
18
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -80,7 +80,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
80
80
|
success: true
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
var executor_default =
|
|
83
|
+
var executor_default = _chunk2DEV7MTDjs.withRunExecutor.call(void 0,
|
|
84
84
|
"TypeScript Unbuild build",
|
|
85
85
|
unbuildExecutorFn,
|
|
86
86
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkQEZ37HVMjs = require('./chunk-QEZ37HVM.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -54,7 +54,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
54
54
|
output: "src/"
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
_chunkQEZ37HVMjs.writeTrace.call(void 0,
|
|
58
58
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
59
59
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkCQDBLKPFjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
60
60
|
config
|
|
@@ -66,9 +66,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
66
66
|
assets: pendingAssets
|
|
67
67
|
});
|
|
68
68
|
await assetHandler.processAllAssetsOnce();
|
|
69
|
-
|
|
69
|
+
_chunkQEZ37HVMjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
70
70
|
if (includeSrc === true) {
|
|
71
|
-
|
|
71
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0,
|
|
72
72
|
`\u{1F4DD} Adding banner and writing source files: ${_chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
73
73
|
outputPath,
|
|
74
74
|
"src"
|
|
@@ -152,7 +152,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
if (localPackages.length > 0) {
|
|
155
|
-
|
|
155
|
+
_chunkQEZ37HVMjs.writeTrace.call(void 0,
|
|
156
156
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
157
157
|
);
|
|
158
158
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -200,7 +200,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
200
200
|
return ret;
|
|
201
201
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
202
202
|
} else {
|
|
203
|
-
|
|
203
|
+
_chunkQEZ37HVMjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
204
204
|
}
|
|
205
205
|
return packageJson;
|
|
206
206
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkK2HA4BJNjs = require('./chunk-K2HA4BJN.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ var getPackageInfo = (project) => {
|
|
|
31
31
|
) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))) {
|
|
32
32
|
return {
|
|
33
33
|
type: "Cargo.toml",
|
|
34
|
-
content:
|
|
34
|
+
content: _chunkK2HA4BJNjs.parseCargoToml.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
|
|
35
35
|
};
|
|
36
36
|
} else if (_chunkUHTWNVEZjs.isEqualProjectTag.call(void 0,
|
|
37
37
|
project,
|
|
@@ -69,7 +69,7 @@ async function addPackageJsonGitHead(packageRoot) {
|
|
|
69
69
|
packageJsonPath,
|
|
70
70
|
await _prettier.format.call(void 0, JSON.stringify(packageJsonValue), {
|
|
71
71
|
parser: "json",
|
|
72
|
-
proseWrap: "
|
|
72
|
+
proseWrap: "preserve",
|
|
73
73
|
trailingComma: "none",
|
|
74
74
|
tabWidth: 2,
|
|
75
75
|
semi: true,
|
|
@@ -81,7 +81,7 @@ async function addPackageJsonGitHead(packageRoot) {
|
|
|
81
81
|
bracketSpacing: true,
|
|
82
82
|
arrowParens: "avoid",
|
|
83
83
|
endOfLine: "lf",
|
|
84
|
-
plugins: ["prettier-plugin-
|
|
84
|
+
plugins: ["prettier-plugin-packagejson"]
|
|
85
85
|
})
|
|
86
86
|
);
|
|
87
87
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2DEV7MTDjs = require('./chunk-2DEV7MTD.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQEZ37HVMjs = require('./chunk-QEZ37HVM.js');
|
|
7
7
|
|
|
8
8
|
// src/executors/size-limit/executor.ts
|
|
9
9
|
var _devkit = require('@nx/devkit');
|
|
@@ -17,14 +17,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
17
17
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
_chunkQEZ37HVMjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
21
21
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
22
22
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
23
23
|
_nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")),
|
|
24
24
|
"src"
|
|
25
25
|
)))
|
|
26
26
|
}).then((result) => {
|
|
27
|
-
|
|
27
|
+
_chunkQEZ37HVMjs.writeInfo.call(void 0,
|
|
28
28
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
29
29
|
config
|
|
30
30
|
);
|
|
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
33
33
|
success: true
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunk2DEV7MTDjs.withRunExecutor.call(void 0,
|
|
37
37
|
"Size-Limit Performance Test Executor",
|
|
38
38
|
sizeLimitExecutorFn,
|
|
39
39
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkBZMYB75Mjs = require('./chunk-BZMYB75M.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkMS4BPPPOjs = require('./chunk-MS4BPPPO.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -54,7 +54,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
54
54
|
await _devkit.formatFiles.call(void 0, tree);
|
|
55
55
|
return null;
|
|
56
56
|
}
|
|
57
|
-
var generator_default =
|
|
57
|
+
var generator_default = _chunkMS4BPPPOjs.withRunGenerator.call(void 0,
|
|
58
58
|
"TypeScript Library Creator (Neutral Platform)",
|
|
59
59
|
neutralLibraryGeneratorFn,
|
|
60
60
|
{
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2DEV7MTDjs = require('./chunk-2DEV7MTD.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-check/executor.ts
|
|
10
10
|
async function cargoCheckExecutor(options, context) {
|
|
11
11
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "check", options, context);
|
|
12
12
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunk2DEV7MTDjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Check",
|
|
16
16
|
cargoCheckExecutor,
|
|
17
17
|
{
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2DEV7MTDjs = require('./chunk-2DEV7MTD.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQEZ37HVMjs = require('./chunk-QEZ37HVM.js');
|
|
7
7
|
|
|
8
8
|
// src/executors/typia/executor.ts
|
|
9
9
|
var _fsextra = require('fs-extra');
|
|
10
10
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
11
11
|
async function typiaExecutorFn(options, _, config) {
|
|
12
12
|
if (options.clean !== false) {
|
|
13
|
-
|
|
13
|
+
_chunkQEZ37HVMjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
14
14
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
15
15
|
}
|
|
16
16
|
await Promise.all(
|
|
17
17
|
options.entry.map((entry) => {
|
|
18
|
-
|
|
18
|
+
_chunkQEZ37HVMjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
19
19
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
20
20
|
input: entry,
|
|
21
21
|
output: options.outputPath,
|
|
@@ -27,7 +27,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
27
27
|
success: true
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
var executor_default =
|
|
30
|
+
var executor_default = _chunk2DEV7MTDjs.withRunExecutor.call(void 0,
|
|
31
31
|
"Typia runtime validation generator",
|
|
32
32
|
typiaExecutorFn,
|
|
33
33
|
{
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQEZ37HVMjs = require('./chunk-QEZ37HVM.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/toml.ts
|
|
6
6
|
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
7
7
|
function parseCargoTomlWithTree(tree, projectRoot, projectName) {
|
|
8
8
|
const cargoTomlString = _optionalChain([tree, 'access', _ => _.read, 'call', _2 => _2(`${projectRoot}/Cargo.toml`), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
9
9
|
if (!cargoTomlString) {
|
|
10
|
-
|
|
10
|
+
_chunkQEZ37HVMjs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
|
|
11
11
|
throw new Error();
|
|
12
12
|
}
|
|
13
13
|
return parseCargoToml(cargoTomlString);
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2DEV7MTDjs = require('./chunk-2DEV7MTD.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-format/executor.ts
|
|
10
10
|
async function cargoFormatExecutor(options, context) {
|
|
11
11
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "fmt", options, context);
|
|
12
12
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunk2DEV7MTDjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Format",
|
|
16
16
|
cargoFormatExecutor,
|
|
17
17
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHXQRGLIIjs = require('./chunk-HXQRGLII.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2VO5LA3Ujs = require('./chunk-2VO5LA3U.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ var _chunk3UVFXL7Ijs = require('./chunk-3UVFXL7I.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkQEZ37HVMjs = require('./chunk-QEZ37HVM.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -23,33 +23,33 @@ var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
|
23
23
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
24
24
|
skipReadingConfig: false
|
|
25
25
|
}) => async (tree, _options) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkQEZ37HVMjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config;
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
`${
|
|
30
|
+
_chunkQEZ37HVMjs.writeInfo.call(void 0,
|
|
31
|
+
`${_chunkQEZ37HVMjs.brandIcon.call(void 0, config)} Running the ${name} generator...
|
|
32
32
|
|
|
33
33
|
`,
|
|
34
34
|
config
|
|
35
35
|
);
|
|
36
36
|
const workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, );
|
|
37
37
|
if (!generatorOptions.skipReadingConfig) {
|
|
38
|
-
|
|
38
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0,
|
|
39
39
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
40
40
|
- workspaceRoot: ${workspaceRoot}`,
|
|
41
41
|
config
|
|
42
42
|
);
|
|
43
|
-
config = await
|
|
43
|
+
config = await _chunk2VO5LA3Ujs.getConfig.call(void 0, workspaceRoot);
|
|
44
44
|
}
|
|
45
45
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
46
|
-
|
|
46
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
47
47
|
options = await Promise.resolve(
|
|
48
48
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
49
49
|
);
|
|
50
|
-
|
|
50
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
_chunkQEZ37HVMjs.writeTrace.call(void 0,
|
|
53
53
|
`Generator schema options \u2699\uFE0F
|
|
54
54
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
55
55
|
config
|
|
@@ -60,11 +60,11 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
60
60
|
_chunkHXQRGLIIjs.applyWorkspaceBaseTokens
|
|
61
61
|
);
|
|
62
62
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
63
|
-
|
|
63
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
64
64
|
await Promise.resolve(
|
|
65
65
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
66
66
|
);
|
|
67
|
-
|
|
67
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
68
68
|
}
|
|
69
69
|
const result = await Promise.resolve(
|
|
70
70
|
generatorFn(tree, tokenized, config)
|
|
@@ -79,21 +79,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
82
|
-
|
|
82
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
83
83
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
84
|
-
|
|
84
|
+
_chunkQEZ37HVMjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
85
85
|
}
|
|
86
86
|
return () => {
|
|
87
|
-
|
|
87
|
+
_chunkQEZ37HVMjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
88
88
|
`, config);
|
|
89
89
|
};
|
|
90
90
|
} catch (error) {
|
|
91
91
|
return () => {
|
|
92
|
-
|
|
92
|
+
_chunkQEZ37HVMjs.writeFatal.call(void 0,
|
|
93
93
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
94
94
|
config
|
|
95
95
|
);
|
|
96
|
-
|
|
96
|
+
_chunkQEZ37HVMjs.writeError.call(void 0,
|
|
97
97
|
`An exception was thrown in the generator's process
|
|
98
98
|
- Details: ${error.message}
|
|
99
99
|
- Stacktrace: ${error.stack}`,
|