@storm-software/cloudflare-tools 0.68.4 → 0.69.0

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.
@@ -99,7 +99,7 @@ var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
99
99
  var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
100
100
  const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, name);
101
101
  let options = _options;
102
- let config = {};
102
+ let config5 = {};
103
103
  try {
104
104
  if (!_optionalChain([context, 'access', _5 => _5.projectsConfigurations, 'optionalAccess', _6 => _6.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
105
105
  throw new Error(
@@ -110,8 +110,8 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
110
110
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot3;
111
111
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot3;
112
112
  const projectName = context.projectName;
113
- config.workspaceRoot = workspaceRoot3;
114
- _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
113
+ config5.workspaceRoot = workspaceRoot3;
114
+ _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config5);
115
115
  if (!executorOptions.skipReadingConfig) {
116
116
  _chunk2CDSXWFAjs.writeTrace.call(void 0,
117
117
  `Loading the Storm Config from environment variables and storm.config.js file...
@@ -120,28 +120,28 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
120
120
  - sourceRoot: ${sourceRoot}
121
121
  - projectName: ${projectName}
122
122
  `,
123
- config
123
+ config5
124
124
  );
125
- config = await _chunkJT2PYCGLjs.getConfig.call(void 0, workspaceRoot3);
125
+ config5 = await _chunkJT2PYCGLjs.getConfig.call(void 0, workspaceRoot3);
126
126
  }
127
127
  if (_optionalChain([executorOptions, 'optionalAccess', _7 => _7.hooks, 'optionalAccess', _8 => _8.applyDefaultOptions])) {
128
- _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
128
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config5);
129
129
  options = await Promise.resolve(
130
- executorOptions.hooks.applyDefaultOptions(options, config)
130
+ executorOptions.hooks.applyDefaultOptions(options, config5)
131
131
  );
132
- _chunk2CDSXWFAjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
132
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config5);
133
133
  }
134
134
  _chunk2CDSXWFAjs.writeTrace.call(void 0,
135
135
  `Executor schema options \u2699\uFE0F
136
136
  ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, options)}
137
137
  `,
138
- config
138
+ config5
139
139
  );
140
140
  const tokenized = await applyWorkspaceTokens(
141
141
  options,
142
142
  _defu.defu.call(void 0,
143
- { workspaceRoot: workspaceRoot3, projectRoot, sourceRoot, projectName, config },
144
- config,
143
+ { workspaceRoot: workspaceRoot3, projectRoot, sourceRoot, projectName, config: config5 },
144
+ config5,
145
145
  context.projectsConfigurations.projects[context.projectName]
146
146
  ),
147
147
  applyWorkspaceProjectTokens
@@ -150,16 +150,16 @@ ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, options)}
150
150
  `Executor schema tokenized options \u2699\uFE0F
151
151
  ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, tokenized)}
152
152
  `,
153
- config
153
+ config5
154
154
  );
155
155
  if (_optionalChain([executorOptions, 'optionalAccess', _9 => _9.hooks, 'optionalAccess', _10 => _10.preProcess])) {
156
- _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
156
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the preProcess hook...", config5);
157
157
  await Promise.resolve(
158
- executorOptions.hooks.preProcess(tokenized, config)
158
+ executorOptions.hooks.preProcess(tokenized, config5)
159
159
  );
160
- _chunk2CDSXWFAjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
160
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, "Completed the preProcess hook", config5);
161
161
  }
162
- const ret = executorFn(tokenized, context, config);
162
+ const ret = executorFn(tokenized, context, config5);
163
163
  if (_isFunction(_optionalChain([ret, 'optionalAccess', _11 => _11.next]))) {
164
164
  const asyncGen = ret;
165
165
  for await (const iter of asyncGen) {
@@ -173,7 +173,7 @@ ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, tokenized)}
173
173
  _chunk2CDSXWFAjs.writeTrace.call(void 0,
174
174
  `Failure determined by the ${name} executor
175
175
  ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, result)}`,
176
- config
176
+ config5
177
177
  );
178
178
  console.error(result);
179
179
  throw new Error(`The ${name} executor failed to run`, {
@@ -181,25 +181,25 @@ ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, result)}`,
181
181
  });
182
182
  }
183
183
  if (_optionalChain([executorOptions, 'optionalAccess', _21 => _21.hooks, 'optionalAccess', _22 => _22.postProcess])) {
184
- _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
185
- await Promise.resolve(executorOptions.hooks.postProcess(config));
186
- _chunk2CDSXWFAjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
184
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the postProcess hook...", config5);
185
+ await Promise.resolve(executorOptions.hooks.postProcess(config5));
186
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, "Completed the postProcess hook", config5);
187
187
  }
188
188
  _chunk2CDSXWFAjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
189
- `, config);
189
+ `, config5);
190
190
  return {
191
191
  success: true
192
192
  };
193
193
  } catch (error) {
194
194
  _chunk2CDSXWFAjs.writeFatal.call(void 0,
195
195
  "A fatal error occurred while running the executor - the process was forced to terminate",
196
- config
196
+ config5
197
197
  );
198
198
  _chunk2CDSXWFAjs.writeError.call(void 0,
199
199
  `An exception was thrown in the executor's process
200
200
  - Details: ${error.message}
201
201
  - Stacktrace: ${error.stack}`,
202
- config
202
+ config5
203
203
  );
204
204
  return {
205
205
  success: false
@@ -475,7 +475,7 @@ var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_reso
475
475
  var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
476
476
  var _glob = require('glob');
477
477
  var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
478
- var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
478
+ var copyAssets = async (config5, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
479
479
  const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
480
480
  pendingAssets.push({
481
481
  input: projectRoot,
@@ -504,29 +504,29 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
504
504
  _chunk2CDSXWFAjs.writeTrace.call(void 0,
505
505
  `\u{1F4DD} Copying the following assets to the output directory:
506
506
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkJT2PYCGLjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
507
- config
507
+ config5
508
508
  );
509
509
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
510
510
  projectDir: projectRoot,
511
- rootDir: config.workspaceRoot,
511
+ rootDir: config5.workspaceRoot,
512
512
  outputDir: outputPath,
513
513
  assets: pendingAssets
514
514
  });
515
515
  await assetHandler.processAllAssetsOnce();
516
- _chunk2CDSXWFAjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
516
+ _chunk2CDSXWFAjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config5);
517
517
  if (includeSrc === true) {
518
518
  _chunk2CDSXWFAjs.writeDebug.call(void 0,
519
519
  `\u{1F4DD} Adding banner and writing source files: ${_chunkJT2PYCGLjs.joinPaths.call(void 0,
520
520
  outputPath,
521
521
  "src"
522
522
  )}`,
523
- config
523
+ config5
524
524
  );
525
525
  const files = await _glob.glob.call(void 0, [
526
- _chunkJT2PYCGLjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
527
- _chunkJT2PYCGLjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
528
- _chunkJT2PYCGLjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
529
- _chunkJT2PYCGLjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
526
+ _chunkJT2PYCGLjs.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.ts"),
527
+ _chunkJT2PYCGLjs.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.tsx"),
528
+ _chunkJT2PYCGLjs.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.js"),
529
+ _chunkJT2PYCGLjs.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.jsx")
530
530
  ]);
531
531
  await Promise.allSettled(
532
532
  files.map(
@@ -1104,8 +1104,8 @@ async function build(options) {
1104
1104
  }
1105
1105
 
1106
1106
  // ../workspace-tools/src/executors/esbuild/executor.ts
1107
- async function esbuildExecutorFn(options, context, config) {
1108
- _chunk2CDSXWFAjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1107
+ async function esbuildExecutorFn(options, context, config5) {
1108
+ _chunk2CDSXWFAjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config5);
1109
1109
  if (!_optionalChain([context, 'access', _68 => _68.projectsConfigurations, 'optionalAccess', _69 => _69.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _70 => _70.projectsConfigurations, 'access', _71 => _71.projects, 'access', _72 => _72[context.projectName], 'optionalAccess', _73 => _73.root])) {
1110
1110
  throw new Error(
1111
1111
  "The Build process failed because the context is not valid. Please run this command from a workspace."
@@ -1177,13 +1177,13 @@ var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDe
1177
1177
  var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
1178
1178
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1179
1179
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
1180
- async function sizeLimitExecutorFn(options, context, config) {
1180
+ async function sizeLimitExecutorFn(options, context, config5) {
1181
1181
  if (!_optionalChain([context, 'optionalAccess', _82 => _82.projectName]) || !_optionalChain([context, 'access', _83 => _83.projectsConfigurations, 'optionalAccess', _84 => _84.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
1182
1182
  throw new Error(
1183
1183
  "The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
1184
1184
  );
1185
1185
  }
1186
- _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
1186
+ _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config5);
1187
1187
  _sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
1188
1188
  checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _85 => _85.projectsConfigurations, 'access', _86 => _86.projects, 'access', _87 => _87[context.projectName], 'optionalAccess', _88 => _88.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
1189
1189
  _nullishCoalesce(_optionalChain([context, 'access', _89 => _89.projectsConfigurations, 'access', _90 => _90.projects, 'access', _91 => _91[context.projectName], 'optionalAccess', _92 => _92.root]), () => ( "./")),
@@ -1192,7 +1192,7 @@ async function sizeLimitExecutorFn(options, context, config) {
1192
1192
  }).then((result) => {
1193
1193
  _chunk2CDSXWFAjs.writeInfo.call(void 0,
1194
1194
  `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
1195
- config
1195
+ config5
1196
1196
  );
1197
1197
  });
1198
1198
  return {
@@ -1215,14 +1215,14 @@ var executor_default7 = withRunExecutor(
1215
1215
  // ../workspace-tools/src/executors/typia/executor.ts
1216
1216
  var _fsextra = require('fs-extra');
1217
1217
  var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
1218
- async function typiaExecutorFn(options, _, config) {
1218
+ async function typiaExecutorFn(options, _, config5) {
1219
1219
  if (options.clean !== false) {
1220
- _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
1220
+ _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config5);
1221
1221
  _fsextra.removeSync.call(void 0, options.outputPath);
1222
1222
  }
1223
1223
  await Promise.all(
1224
1224
  options.entry.map((entry) => {
1225
- _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
1225
+ _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config5);
1226
1226
  return _TypiaProgrammerjs.TypiaProgrammer.build({
1227
1227
  input: entry,
1228
1228
  output: options.outputPath,
@@ -1254,8 +1254,8 @@ var executor_default8 = withRunExecutor(
1254
1254
  // ../workspace-tools/src/executors/unbuild/executor.ts
1255
1255
 
1256
1256
  var _jiti = require('jiti');
1257
- async function unbuildExecutorFn(options, context, config) {
1258
- _chunk2CDSXWFAjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1257
+ async function unbuildExecutorFn(options, context, config5) {
1258
+ _chunk2CDSXWFAjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config5);
1259
1259
  if (!_optionalChain([context, 'access', _93 => _93.projectsConfigurations, 'optionalAccess', _94 => _94.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1260
1260
  throw new Error(
1261
1261
  "The Build process failed because the context is not valid. Please run this command from a workspace root directory."
@@ -1271,10 +1271,10 @@ async function unbuildExecutorFn(options, context, config) {
1271
1271
  "The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory."
1272
1272
  );
1273
1273
  }
1274
- const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
1275
- fsCache: config.skipCache ? false : _chunkJT2PYCGLjs.joinPaths.call(void 0,
1276
- config.workspaceRoot,
1277
- config.directories.cache || "node_modules/.cache/storm",
1274
+ const jiti = _jiti.createJiti.call(void 0, config5.workspaceRoot, {
1275
+ fsCache: config5.skipCache ? false : _chunkJT2PYCGLjs.joinPaths.call(void 0,
1276
+ config5.workspaceRoot,
1277
+ config5.directories.cache || "node_modules/.cache/storm",
1278
1278
  "jiti"
1279
1279
  ),
1280
1280
  interopDefault: true
@@ -1294,9 +1294,9 @@ async function unbuildExecutorFn(options, context, config) {
1294
1294
  {
1295
1295
  stubOptions: {
1296
1296
  jiti: {
1297
- fsCache: config.skipCache ? false : _chunkJT2PYCGLjs.joinPaths.call(void 0,
1298
- config.workspaceRoot,
1299
- config.directories.cache || "node_modules/.cache/storm",
1297
+ fsCache: config5.skipCache ? false : _chunkJT2PYCGLjs.joinPaths.call(void 0,
1298
+ config5.workspaceRoot,
1299
+ config5.directories.cache || "node_modules/.cache/storm",
1300
1300
  "jiti"
1301
1301
  )
1302
1302
  }
@@ -1329,7 +1329,7 @@ var executor_default9 = withRunExecutor(
1329
1329
  {
1330
1330
  skipReadingConfig: false,
1331
1331
  hooks: {
1332
- applyDefaultOptions: async (options, config) => {
1332
+ applyDefaultOptions: async (options, config5) => {
1333
1333
  options.debug ??= false;
1334
1334
  options.treeShaking ??= true;
1335
1335
  options.buildOnly ??= false;
@@ -1356,46 +1356,46 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
1356
1356
  }) => async (tree, _options) => {
1357
1357
  const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, name);
1358
1358
  let options = _options;
1359
- let config;
1359
+ let config5;
1360
1360
  try {
1361
1361
  _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
1362
1362
 
1363
- `, config);
1363
+ `, config5);
1364
1364
  const workspaceRoot3 = _chunkJT2PYCGLjs.findWorkspaceRoot.call(void 0, );
1365
1365
  if (!generatorOptions.skipReadingConfig) {
1366
1366
  _chunk2CDSXWFAjs.writeDebug.call(void 0,
1367
1367
  `Loading the Storm Config from environment variables and storm.config.js file...
1368
1368
  - workspaceRoot: ${workspaceRoot3}`,
1369
- config
1369
+ config5
1370
1370
  );
1371
- config = await _chunkJT2PYCGLjs.getConfig.call(void 0, workspaceRoot3);
1371
+ config5 = await _chunkJT2PYCGLjs.getConfig.call(void 0, workspaceRoot3);
1372
1372
  }
1373
1373
  if (_optionalChain([generatorOptions, 'optionalAccess', _95 => _95.hooks, 'optionalAccess', _96 => _96.applyDefaultOptions])) {
1374
- _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
1374
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config5);
1375
1375
  options = await Promise.resolve(
1376
- generatorOptions.hooks.applyDefaultOptions(options, config)
1376
+ generatorOptions.hooks.applyDefaultOptions(options, config5)
1377
1377
  );
1378
- _chunk2CDSXWFAjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
1378
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config5);
1379
1379
  }
1380
1380
  _chunk2CDSXWFAjs.writeTrace.call(void 0,
1381
1381
  `Generator schema options \u2699\uFE0F
1382
1382
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
1383
- config
1383
+ config5
1384
1384
  );
1385
1385
  const tokenized = await applyWorkspaceTokens(
1386
1386
  options,
1387
- { workspaceRoot: tree.root, config },
1387
+ { workspaceRoot: tree.root, config: config5 },
1388
1388
  applyWorkspaceBaseTokens
1389
1389
  );
1390
1390
  if (_optionalChain([generatorOptions, 'optionalAccess', _97 => _97.hooks, 'optionalAccess', _98 => _98.preProcess])) {
1391
- _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
1391
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the preProcess hook...", config5);
1392
1392
  await Promise.resolve(
1393
- generatorOptions.hooks.preProcess(tokenized, config)
1393
+ generatorOptions.hooks.preProcess(tokenized, config5)
1394
1394
  );
1395
- _chunk2CDSXWFAjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
1395
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, "Completed the preProcess hook", config5);
1396
1396
  }
1397
1397
  const result = await Promise.resolve(
1398
- generatorFn(tree, tokenized, config)
1398
+ generatorFn(tree, tokenized, config5)
1399
1399
  );
1400
1400
  if (result) {
1401
1401
  if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _99 => _99.error, 'optionalAccess', _100 => _100.message]) && typeof _optionalChain([result, 'optionalAccess', _101 => _101.error, 'optionalAccess', _102 => _102.message]) === "string" && _optionalChain([result, 'optionalAccess', _103 => _103.error, 'optionalAccess', _104 => _104.name]) && typeof _optionalChain([result, 'optionalAccess', _105 => _105.error, 'optionalAccess', _106 => _106.name]) === "string") {
@@ -1407,25 +1407,25 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1407
1407
  }
1408
1408
  }
1409
1409
  if (_optionalChain([generatorOptions, 'optionalAccess', _108 => _108.hooks, 'optionalAccess', _109 => _109.postProcess])) {
1410
- _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
1411
- await Promise.resolve(generatorOptions.hooks.postProcess(config));
1412
- _chunk2CDSXWFAjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
1410
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the postProcess hook...", config5);
1411
+ await Promise.resolve(generatorOptions.hooks.postProcess(config5));
1412
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, "Completed the postProcess hook", config5);
1413
1413
  }
1414
1414
  return () => {
1415
1415
  _chunk2CDSXWFAjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
1416
- `, config);
1416
+ `, config5);
1417
1417
  };
1418
1418
  } catch (error) {
1419
1419
  return () => {
1420
1420
  _chunk2CDSXWFAjs.writeFatal.call(void 0,
1421
1421
  "A fatal error occurred while running the generator - the process was forced to terminate",
1422
- config
1422
+ config5
1423
1423
  );
1424
1424
  _chunk2CDSXWFAjs.writeError.call(void 0,
1425
1425
  `An exception was thrown in the generator's process
1426
1426
  - Details: ${error.message}
1427
1427
  - Stacktrace: ${error.stack}`,
1428
- config
1428
+ config5
1429
1429
  );
1430
1430
  };
1431
1431
  } finally {
@@ -1461,7 +1461,7 @@ var nodeVersion = "20.11.0";
1461
1461
  var pnpmVersion = "8.10.2";
1462
1462
 
1463
1463
  // ../workspace-tools/src/base/typescript-library-generator.ts
1464
- async function typeScriptLibraryGeneratorFn(tree, options, config) {
1464
+ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
1465
1465
  const normalized = await normalizeOptions(tree, { ...options });
1466
1466
  const tasks = [];
1467
1467
  tasks.push(
@@ -1538,7 +1538,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1538
1538
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
1539
1539
  let repository = {
1540
1540
  type: "github",
1541
- url: _optionalChain([config, 'optionalAccess', _110 => _110.repository]) || `https://github.com/${(typeof _optionalChain([config, 'optionalAccess', _111 => _111.organization]) === "string" ? _optionalChain([config, 'optionalAccess', _112 => _112.organization]) : _optionalChain([config, 'optionalAccess', _113 => _113.organization, 'optionalAccess', _114 => _114.name])) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _115 => _115.namespace]) || _optionalChain([config, 'optionalAccess', _116 => _116.name]) || "repository"}.git`
1541
+ url: _optionalChain([config5, 'optionalAccess', _110 => _110.repository]) || `https://github.com/${(typeof _optionalChain([config5, 'optionalAccess', _111 => _111.organization]) === "string" ? _optionalChain([config5, 'optionalAccess', _112 => _112.organization]) : _optionalChain([config5, 'optionalAccess', _113 => _113.organization, 'optionalAccess', _114 => _114.name])) || "storm-software"}/${_optionalChain([config5, 'optionalAccess', _115 => _115.namespace]) || _optionalChain([config5, 'optionalAccess', _116 => _116.name]) || "repository"}.git`
1542
1542
  };
1543
1543
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
1544
1544
  if (tree.exists("package.json")) {
@@ -1684,10 +1684,10 @@ function createProjectTsConfigJson(tree, options) {
1684
1684
  };
1685
1685
  _devkit.writeJson.call(void 0, tree, _chunkJT2PYCGLjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
1686
1686
  }
1687
- async function normalizeOptions(tree, options, config) {
1687
+ async function normalizeOptions(tree, options, config5) {
1688
1688
  let importPath = options.importPath;
1689
- if (!importPath && _optionalChain([config, 'optionalAccess', _133 => _133.namespace])) {
1690
- importPath = `@${_optionalChain([config, 'optionalAccess', _134 => _134.namespace])}/${options.name}`;
1689
+ if (!importPath && _optionalChain([config5, 'optionalAccess', _133 => _133.namespace])) {
1690
+ importPath = `@${_optionalChain([config5, 'optionalAccess', _134 => _134.namespace])}/${options.name}`;
1691
1691
  }
1692
1692
  if (options.publishable) {
1693
1693
  if (!importPath) {
@@ -1746,7 +1746,7 @@ async function normalizeOptions(tree, options, config) {
1746
1746
  }
1747
1747
 
1748
1748
  // ../workspace-tools/src/generators/browser-library/generator.ts
1749
- async function browserLibraryGeneratorFn(tree, schema, config) {
1749
+ async function browserLibraryGeneratorFn(tree, schema, config5) {
1750
1750
  const filesDir = _chunkJT2PYCGLjs.joinPaths.call(void 0,
1751
1751
  __dirname,
1752
1752
  "src",
@@ -1808,7 +1808,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
1808
1808
  }
1809
1809
  }
1810
1810
  });
1811
- await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
1811
+ await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
1812
1812
  await _devkit.formatFiles.call(void 0, tree);
1813
1813
  return null;
1814
1814
  }
@@ -1829,14 +1829,14 @@ var generator_default = withRunGenerator(
1829
1829
  // ../workspace-tools/src/generators/config-schema/generator.ts
1830
1830
 
1831
1831
  var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
1832
- async function configSchemaGeneratorFn(tree, options, config) {
1832
+ async function configSchemaGeneratorFn(tree, options, config5) {
1833
1833
  _chunk2CDSXWFAjs.writeInfo.call(void 0,
1834
1834
  "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
1835
- config
1835
+ config5
1836
1836
  );
1837
1837
  _chunk2CDSXWFAjs.writeTrace.call(void 0,
1838
1838
  `Determining the Storm Workspace Configuration JSON Schema...`,
1839
- config
1839
+ config5
1840
1840
  );
1841
1841
  const jsonSchema = z.toJSONSchema(_chunkJT2PYCGLjs.workspaceConfigSchema, {
1842
1842
  target: "draft-7",
@@ -1845,25 +1845,25 @@ async function configSchemaGeneratorFn(tree, options, config) {
1845
1845
  jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
1846
1846
  jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
1847
1847
  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.";
1848
- _chunk2CDSXWFAjs.writeTrace.call(void 0, jsonSchema, config);
1848
+ _chunk2CDSXWFAjs.writeTrace.call(void 0, jsonSchema, config5);
1849
1849
  if (!options.outputFile) {
1850
1850
  throw new Error(
1851
1851
  "The `outputFile` option is required. Please specify the output file path."
1852
1852
  );
1853
1853
  }
1854
1854
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
1855
- _nullishCoalesce(_optionalChain([config, 'optionalAccess', _135 => _135.workspaceRoot]), () => ( _chunkJT2PYCGLjs.findWorkspaceRoot.call(void 0, ))),
1855
+ _nullishCoalesce(_optionalChain([config5, 'optionalAccess', _135 => _135.workspaceRoot]), () => ( _chunkJT2PYCGLjs.findWorkspaceRoot.call(void 0, ))),
1856
1856
  options.outputFile.startsWith("./") ? "" : "./"
1857
1857
  );
1858
1858
  _chunk2CDSXWFAjs.writeTrace.call(void 0,
1859
1859
  `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
1860
- config
1860
+ config5
1861
1861
  );
1862
1862
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
1863
1863
  await _devkit.formatFiles.call(void 0, tree);
1864
1864
  _chunk2CDSXWFAjs.writeSuccess.call(void 0,
1865
1865
  "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
1866
- config
1866
+ config5
1867
1867
  );
1868
1868
  return {
1869
1869
  success: true
@@ -1895,7 +1895,7 @@ var generator_default2 = withRunGenerator(
1895
1895
 
1896
1896
 
1897
1897
 
1898
- async function neutralLibraryGeneratorFn(tree, schema, config) {
1898
+ async function neutralLibraryGeneratorFn(tree, schema, config5) {
1899
1899
  const filesDir = _chunkJT2PYCGLjs.joinPaths.call(void 0,
1900
1900
  __dirname,
1901
1901
  "src",
@@ -1929,7 +1929,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
1929
1929
  buildable: options.bundler && options.bundler !== "none",
1930
1930
  hasUnitTestRunner: options.unitTestRunner !== "none"
1931
1931
  });
1932
- await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
1932
+ await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
1933
1933
  await _devkit.formatFiles.call(void 0, tree);
1934
1934
  return null;
1935
1935
  }
@@ -1954,7 +1954,7 @@ var generator_default3 = withRunGenerator(
1954
1954
 
1955
1955
 
1956
1956
 
1957
- async function nodeLibraryGeneratorFn(tree, schema, config) {
1957
+ async function nodeLibraryGeneratorFn(tree, schema, config5) {
1958
1958
  const filesDir = _chunkJT2PYCGLjs.joinPaths.call(void 0,
1959
1959
  __dirname,
1960
1960
  "src",
@@ -1990,7 +1990,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
1990
1990
  buildable: options.bundler && options.bundler !== "none",
1991
1991
  hasUnitTestRunner: options.unitTestRunner !== "none"
1992
1992
  });
1993
- await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
1993
+ await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
1994
1994
  await _devkit.formatFiles.call(void 0, tree);
1995
1995
  return null;
1996
1996
  }
@@ -2258,8 +2258,19 @@ var generator_default5 = withRunGenerator(
2258
2258
  var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies');
2259
2259
  var _updatelockfile = require('@nx/js/src/release/utils/update-lock-file');
2260
2260
 
2261
- // ../git-tools/dist/chunk-GRCMQK4Q.js
2262
- var COMMIT_TYPES = {
2261
+ // ../git-tools/dist/chunk-5XU2KBM6.js
2262
+ var DEFAULT_COMMIT_PROMPT_MESSAGES = {
2263
+ skip: "press enter to skip",
2264
+ max: "must be %d chars at most",
2265
+ min: "must be %d chars at least",
2266
+ emptyWarning: "can not be empty",
2267
+ upperLimitWarning: "%s is %d characters longer than the upper limit",
2268
+ lowerLimitWarning: "%s is %d characters less than the lower limit",
2269
+ closedIssueMessage: "Closes: "
2270
+ };
2271
+
2272
+ // ../git-tools/dist/chunk-3GGWHKRP.js
2273
+ var DEFAULT_COMMIT_TYPES = {
2263
2274
  /* --- Bumps version when selected --- */
2264
2275
  "chore": {
2265
2276
  "description": "Other changes that don't modify src or test files",
@@ -2388,15 +2399,148 @@ var COMMIT_TYPES = {
2388
2399
  }
2389
2400
  }
2390
2401
  };
2402
+ var CHANGELOG_COMMIT_TYPES_OBJECT = Object.freeze(
2403
+ Object.entries(DEFAULT_COMMIT_TYPES).reduce(
2404
+ (ret, [key, commitType]) => {
2405
+ ret[key] = {
2406
+ ...commitType.changelog,
2407
+ type: key,
2408
+ section: _optionalChain([commitType, 'access', _136 => _136.changelog, 'optionalAccess', _137 => _137.title]) || commitType.title,
2409
+ hidden: _optionalChain([commitType, 'access', _138 => _138.changelog, 'optionalAccess', _139 => _139.hidden])
2410
+ };
2411
+ return ret;
2412
+ },
2413
+ {}
2414
+ )
2415
+ );
2416
+ var CHANGELOG_COMMIT_TYPES = [
2417
+ CHANGELOG_COMMIT_TYPES_OBJECT.feat,
2418
+ CHANGELOG_COMMIT_TYPES_OBJECT.fix,
2419
+ CHANGELOG_COMMIT_TYPES_OBJECT.chore,
2420
+ CHANGELOG_COMMIT_TYPES_OBJECT.deps,
2421
+ CHANGELOG_COMMIT_TYPES_OBJECT.docs,
2422
+ CHANGELOG_COMMIT_TYPES_OBJECT.style,
2423
+ CHANGELOG_COMMIT_TYPES_OBJECT.refactor,
2424
+ CHANGELOG_COMMIT_TYPES_OBJECT.perf,
2425
+ CHANGELOG_COMMIT_TYPES_OBJECT.build,
2426
+ CHANGELOG_COMMIT_TYPES_OBJECT.ci,
2427
+ CHANGELOG_COMMIT_TYPES_OBJECT.test
2428
+ ];
2429
+ var CHANGELOG_COMMIT_TYPE_ORDER = CHANGELOG_COMMIT_TYPES.map(
2430
+ (entry) => entry.type
2431
+ );
2432
+ var CHANGELOG_COMMIT_SECTION_ORDER = CHANGELOG_COMMIT_TYPES.map(
2433
+ (entry) => entry.section
2434
+ );
2435
+ var changelogs = {
2436
+ props: {
2437
+ ignoreCommits: void 0,
2438
+ types: CHANGELOG_COMMIT_TYPES,
2439
+ bumpStrict: true,
2440
+ scope: void 0,
2441
+ scopeOnly: false
2442
+ }
2443
+ };
2444
+ var commitlint = {
2445
+ helpUrl: "https://developer.stormsoftware.com/commitlint/minimal",
2446
+ rules: {
2447
+ "body-leading-blank": [1, "always"],
2448
+ "body-max-length": [2, "always", 600],
2449
+ "footer-leading-blank": [1, "always"],
2450
+ "footer-max-line-length": [2, "always", 150],
2451
+ "header-max-length": [2, "always", 150],
2452
+ "header-trim": [2, "always"],
2453
+ "subject-case": [2, "always", ["sentence-case"]],
2454
+ "subject-empty": [2, "never"],
2455
+ "subject-full-stop": [2, "never", "."],
2456
+ "subject-max-length": [2, "always", 150],
2457
+ "subject-min-length": [2, "always", 3],
2458
+ "type-case": [2, "always", "kebab-case"],
2459
+ "type-empty": [2, "never"],
2460
+ "type-enum": [
2461
+ 2,
2462
+ "always",
2463
+ Object.keys(DEFAULT_COMMIT_TYPES)
2464
+ ],
2465
+ "type-max-length": [2, "always", 20],
2466
+ "type-min-length": [2, "always", 3],
2467
+ "scope-empty": [2, "always"]
2468
+ },
2469
+ settings: {
2470
+ enableMultipleScopes: false,
2471
+ disableEmoji: true,
2472
+ breakingChangePrefix: "\u{1F4A3} ",
2473
+ closedIssuePrefix: "\u2705 ",
2474
+ format: "{type}: {emoji}{subject}"
2475
+ }
2476
+ };
2477
+ var config = {
2478
+ types: DEFAULT_COMMIT_TYPES,
2479
+ changelogs,
2480
+ commitlint
2481
+ };
2482
+ var minimal_default = config;
2483
+ var changelogs2 = {
2484
+ props: {
2485
+ ignoreCommits: void 0,
2486
+ types: CHANGELOG_COMMIT_TYPES,
2487
+ bumpStrict: true,
2488
+ scope: ["monorepo"],
2489
+ scopeOnly: true
2490
+ }
2491
+ };
2492
+ var commitlint2 = {
2493
+ helpUrl: "https://developer.stormsoftware.com/commitlint/monorepo",
2494
+ rules: {
2495
+ "body-leading-blank": [1, "always"],
2496
+ "body-max-length": [2, "always", 600],
2497
+ "footer-leading-blank": [1, "always"],
2498
+ "footer-max-line-length": [2, "always", 150],
2499
+ "header-max-length": [2, "always", 150],
2500
+ "header-trim": [2, "always"],
2501
+ "subject-case": [2, "always", ["sentence-case"]],
2502
+ "subject-empty": [2, "never"],
2503
+ "subject-full-stop": [2, "never", "."],
2504
+ "subject-max-length": [2, "always", 150],
2505
+ "subject-min-length": [2, "always", 3],
2506
+ "type-case": [2, "always", "kebab-case"],
2507
+ "type-empty": [2, "never"],
2508
+ "type-enum": [
2509
+ 2,
2510
+ "always",
2511
+ Object.keys(DEFAULT_COMMIT_TYPES)
2512
+ ],
2513
+ "type-max-length": [2, "always", 20],
2514
+ "type-min-length": [2, "always", 3],
2515
+ "scope-case": [2, "always", ["kebab-case"]],
2516
+ "scope-empty": [2, "never"]
2517
+ },
2518
+ settings: {
2519
+ enableMultipleScopes: false,
2520
+ disableEmoji: true,
2521
+ breakingChangePrefix: "\u{1F4A3} ",
2522
+ closedIssuePrefix: "\u2705 ",
2523
+ format: "{type}({scope}): {emoji}{subject}"
2524
+ }
2525
+ };
2526
+ var config2 = {
2527
+ types: DEFAULT_COMMIT_TYPES,
2528
+ changelogs: changelogs2,
2529
+ commitlint: commitlint2
2530
+ };
2531
+ var monorepo_default = config2;
2532
+ var COMMIT_CONFIGS = { minimal: minimal_default, monorepo: monorepo_default };
2533
+
2534
+ // ../git-tools/dist/chunk-KZRVQ5RZ.js
2391
2535
  var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
2392
2536
  type: {
2393
2537
  type: "select",
2394
2538
  title: "Commit Type",
2395
2539
  description: "Select the commit type that best describes your changes",
2396
- enum: Object.keys(COMMIT_TYPES).filter(
2397
- (type) => COMMIT_TYPES[type].hidden !== true
2540
+ enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
2541
+ (type) => DEFAULT_COMMIT_TYPES[type].hidden !== true
2398
2542
  ).reduce((ret, type) => {
2399
- ret[type] = COMMIT_TYPES[type];
2543
+ ret[type] = DEFAULT_COMMIT_TYPES[type];
2400
2544
  return ret;
2401
2545
  }, {}),
2402
2546
  defaultValue: "chore",
@@ -2445,6 +2589,14 @@ var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
2445
2589
  minLength: 3
2446
2590
  }
2447
2591
  };
2592
+ var config3 = {
2593
+ settings: COMMIT_CONFIGS.minimal.commitlint.settings,
2594
+ messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
2595
+ questions: DEFAULT_MINIMAL_COMMIT_QUESTIONS,
2596
+ types: DEFAULT_COMMIT_TYPES
2597
+ };
2598
+
2599
+ // ../git-tools/dist/chunk-JCEVFJCA.js
2448
2600
  var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
2449
2601
  type: DEFAULT_MINIMAL_COMMIT_QUESTIONS.type,
2450
2602
  scope: {
@@ -2463,55 +2615,11 @@ var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
2463
2615
  isIssueAffected: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isIssueAffected,
2464
2616
  issuesBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.issuesBody
2465
2617
  };
2466
- var DEFAULT_MINIMAL_COMMIT_RULES = {
2467
- "body-leading-blank": [1, "always"],
2468
- "body-max-length": [2, "always", 600],
2469
- "footer-leading-blank": [1, "always"],
2470
- "footer-max-line-length": [2, "always", 150],
2471
- "header-max-length": [2, "always", 150],
2472
- "header-trim": [2, "always"],
2473
- "subject-case": [2, "always", ["sentence-case"]],
2474
- "subject-empty": [2, "never"],
2475
- "subject-full-stop": [2, "never", "."],
2476
- "subject-max-length": [2, "always", 150],
2477
- "subject-min-length": [2, "always", 3],
2478
- "type-case": [2, "always", "kebab-case"],
2479
- "type-empty": [2, "never"],
2480
- "type-enum": [
2481
- 2,
2482
- "always",
2483
- Object.keys(COMMIT_TYPES)
2484
- ],
2485
- "type-max-length": [2, "always", 20],
2486
- "type-min-length": [2, "always", 3],
2487
- "scope-empty": 0,
2488
- "scope-case": 0,
2489
- "scope-enum": 0
2490
- /* Disabled */
2491
- };
2492
- var DEFAULT_MONOREPO_COMMIT_RULES = {
2493
- "body-leading-blank": [1, "always"],
2494
- "body-max-length": [2, "always", 600],
2495
- "footer-leading-blank": [1, "always"],
2496
- "footer-max-line-length": [2, "always", 150],
2497
- "header-max-length": [2, "always", 150],
2498
- "header-trim": [2, "always"],
2499
- "subject-case": [2, "always", ["sentence-case"]],
2500
- "subject-empty": [2, "never"],
2501
- "subject-full-stop": [2, "never", "."],
2502
- "subject-max-length": [2, "always", 150],
2503
- "subject-min-length": [2, "always", 3],
2504
- "type-case": [2, "always", "kebab-case"],
2505
- "type-empty": [2, "never"],
2506
- "type-enum": [
2507
- 2,
2508
- "always",
2509
- Object.keys(COMMIT_TYPES)
2510
- ],
2511
- "type-max-length": [2, "always", 20],
2512
- "type-min-length": [2, "always", 3],
2513
- "scope-case": [2, "always", ["kebab-case"]],
2514
- "scope-empty": [2, "never"]
2618
+ var config4 = {
2619
+ settings: COMMIT_CONFIGS.monorepo.commitlint.settings,
2620
+ messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
2621
+ questions: DEFAULT_MONOREPO_COMMIT_QUESTIONS,
2622
+ types: DEFAULT_COMMIT_TYPES
2515
2623
  };
2516
2624
 
2517
2625
  // ../workspace-tools/src/generators/release-version/generator.ts