@storm-software/terraform-tools 0.64.3 → 0.65.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.
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/assets/esm_shims.js
1
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__fa5acda50dbe19817dbc1cdda69071eb/node_modules/tsup/assets/esm_shims.js
2
2
  import { fileURLToPath } from "url";
3
3
  import path from "path";
4
4
  var getFilename = () => fileURLToPath(import.meta.url);
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-ODW5G3WY.mjs";
21
21
  import {
22
22
  __dirname
23
- } from "./chunk-QFSU34UE.mjs";
23
+ } from "./chunk-NMQP6WEB.mjs";
24
24
 
25
25
  // src/generators/init/init.ts
26
26
  import { formatFiles as formatFiles9 } from "@nx/devkit";
@@ -284,7 +284,7 @@ import { relative as relative2 } from "path";
284
284
  import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
285
285
  import { glob } from "glob";
286
286
  import { readFile, writeFile } from "node:fs/promises";
287
- var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
287
+ var copyAssets = async (config5, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
288
288
  const pendingAssets = Array.from(assets ?? []);
289
289
  pendingAssets.push({
290
290
  input: projectRoot,
@@ -313,29 +313,29 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
313
313
  writeTrace(
314
314
  `\u{1F4DD} Copying the following assets to the output directory:
315
315
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`,
316
- config
316
+ config5
317
317
  );
318
318
  const assetHandler = new CopyAssetsHandler({
319
319
  projectDir: projectRoot,
320
- rootDir: config.workspaceRoot,
320
+ rootDir: config5.workspaceRoot,
321
321
  outputDir: outputPath,
322
322
  assets: pendingAssets
323
323
  });
324
324
  await assetHandler.processAllAssetsOnce();
325
- writeTrace("Completed copying assets to the output directory", config);
325
+ writeTrace("Completed copying assets to the output directory", config5);
326
326
  if (includeSrc === true) {
327
327
  writeDebug(
328
328
  `\u{1F4DD} Adding banner and writing source files: ${joinPaths(
329
329
  outputPath,
330
330
  "src"
331
331
  )}`,
332
- config
332
+ config5
333
333
  );
334
334
  const files = await glob([
335
- joinPaths(config.workspaceRoot, outputPath, "src/**/*.ts"),
336
- joinPaths(config.workspaceRoot, outputPath, "src/**/*.tsx"),
337
- joinPaths(config.workspaceRoot, outputPath, "src/**/*.js"),
338
- joinPaths(config.workspaceRoot, outputPath, "src/**/*.jsx")
335
+ joinPaths(config5.workspaceRoot, outputPath, "src/**/*.ts"),
336
+ joinPaths(config5.workspaceRoot, outputPath, "src/**/*.tsx"),
337
+ joinPaths(config5.workspaceRoot, outputPath, "src/**/*.js"),
338
+ joinPaths(config5.workspaceRoot, outputPath, "src/**/*.jsx")
339
339
  ]);
340
340
  await Promise.allSettled(
341
341
  files.map(
@@ -913,8 +913,8 @@ async function build(options) {
913
913
  }
914
914
 
915
915
  // ../workspace-tools/src/executors/esbuild/executor.ts
916
- async function esbuildExecutorFn(options, context, config) {
917
- writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
916
+ async function esbuildExecutorFn(options, context, config5) {
917
+ writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config5);
918
918
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) {
919
919
  throw new Error(
920
920
  "The Build process failed because the context is not valid. Please run this command from a workspace."
@@ -1059,13 +1059,13 @@ import esBuildPlugin from "@size-limit/esbuild";
1059
1059
  import esBuildWhyPlugin from "@size-limit/esbuild-why";
1060
1060
  import filePlugin from "@size-limit/file";
1061
1061
  import sizeLimit from "size-limit";
1062
- async function sizeLimitExecutorFn(options, context, config) {
1062
+ async function sizeLimitExecutorFn(options, context, config5) {
1063
1063
  if (!context?.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName]) {
1064
1064
  throw new Error(
1065
1065
  "The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
1066
1066
  );
1067
1067
  }
1068
- writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
1068
+ writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config5);
1069
1069
  sizeLimit([filePlugin, esBuildPlugin, esBuildWhyPlugin], {
1070
1070
  checks: options.entry ?? context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? joinPathFragments4(
1071
1071
  context.projectsConfigurations.projects[context.projectName]?.root ?? "./",
@@ -1074,7 +1074,7 @@ async function sizeLimitExecutorFn(options, context, config) {
1074
1074
  }).then((result) => {
1075
1075
  writeInfo(
1076
1076
  `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
1077
- config
1077
+ config5
1078
1078
  );
1079
1079
  });
1080
1080
  return {
@@ -1097,14 +1097,14 @@ var executor_default7 = withRunExecutor(
1097
1097
  // ../workspace-tools/src/executors/typia/executor.ts
1098
1098
  import { removeSync } from "fs-extra";
1099
1099
  import { TypiaProgrammer } from "typia/lib/programmers/TypiaProgrammer.js";
1100
- async function typiaExecutorFn(options, _, config) {
1100
+ async function typiaExecutorFn(options, _, config5) {
1101
1101
  if (options.clean !== false) {
1102
- writeInfo(`\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
1102
+ writeInfo(`\u{1F9F9} Cleaning output path: ${options.outputPath}`, config5);
1103
1103
  removeSync(options.outputPath);
1104
1104
  }
1105
1105
  await Promise.all(
1106
1106
  options.entry.map((entry) => {
1107
- writeInfo(`\u{1F680} Running Typia on entry: ${entry}`, config);
1107
+ writeInfo(`\u{1F680} Running Typia on entry: ${entry}`, config5);
1108
1108
  return TypiaProgrammer.build({
1109
1109
  input: entry,
1110
1110
  output: options.outputPath,
@@ -1136,8 +1136,8 @@ var executor_default8 = withRunExecutor(
1136
1136
  // ../workspace-tools/src/executors/unbuild/executor.ts
1137
1137
  import { defu as defu2 } from "defu";
1138
1138
  import { createJiti } from "jiti";
1139
- async function unbuildExecutorFn(options, context, config) {
1140
- writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1139
+ async function unbuildExecutorFn(options, context, config5) {
1140
+ writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config5);
1141
1141
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1142
1142
  throw new Error(
1143
1143
  "The Build process failed because the context is not valid. Please run this command from a workspace root directory."
@@ -1153,10 +1153,10 @@ async function unbuildExecutorFn(options, context, config) {
1153
1153
  "The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory."
1154
1154
  );
1155
1155
  }
1156
- const jiti = createJiti(config.workspaceRoot, {
1157
- fsCache: config.skipCache ? false : joinPaths(
1158
- config.workspaceRoot,
1159
- config.directories.cache || "node_modules/.cache/storm",
1156
+ const jiti = createJiti(config5.workspaceRoot, {
1157
+ fsCache: config5.skipCache ? false : joinPaths(
1158
+ config5.workspaceRoot,
1159
+ config5.directories.cache || "node_modules/.cache/storm",
1160
1160
  "jiti"
1161
1161
  ),
1162
1162
  interopDefault: true
@@ -1176,9 +1176,9 @@ async function unbuildExecutorFn(options, context, config) {
1176
1176
  {
1177
1177
  stubOptions: {
1178
1178
  jiti: {
1179
- fsCache: config.skipCache ? false : joinPaths(
1180
- config.workspaceRoot,
1181
- config.directories.cache || "node_modules/.cache/storm",
1179
+ fsCache: config5.skipCache ? false : joinPaths(
1180
+ config5.workspaceRoot,
1181
+ config5.directories.cache || "node_modules/.cache/storm",
1182
1182
  "jiti"
1183
1183
  )
1184
1184
  }
@@ -1211,7 +1211,7 @@ var executor_default9 = withRunExecutor(
1211
1211
  {
1212
1212
  skipReadingConfig: false,
1213
1213
  hooks: {
1214
- applyDefaultOptions: async (options, config) => {
1214
+ applyDefaultOptions: async (options, config5) => {
1215
1215
  options.debug ??= false;
1216
1216
  options.treeShaking ??= true;
1217
1217
  options.buildOnly ??= false;
@@ -1238,46 +1238,46 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
1238
1238
  }) => async (tree, _options) => {
1239
1239
  const stopwatch = getStopwatch(name);
1240
1240
  let options = _options;
1241
- let config;
1241
+ let config5;
1242
1242
  try {
1243
1243
  writeInfo(`\u26A1 Running the ${name} generator...
1244
1244
 
1245
- `, config);
1245
+ `, config5);
1246
1246
  const workspaceRoot3 = findWorkspaceRoot();
1247
1247
  if (!generatorOptions.skipReadingConfig) {
1248
1248
  writeDebug(
1249
1249
  `Loading the Storm Config from environment variables and storm.config.js file...
1250
1250
  - workspaceRoot: ${workspaceRoot3}`,
1251
- config
1251
+ config5
1252
1252
  );
1253
- config = await getConfig(workspaceRoot3);
1253
+ config5 = await getConfig(workspaceRoot3);
1254
1254
  }
1255
1255
  if (generatorOptions?.hooks?.applyDefaultOptions) {
1256
- writeDebug("Running the applyDefaultOptions hook...", config);
1256
+ writeDebug("Running the applyDefaultOptions hook...", config5);
1257
1257
  options = await Promise.resolve(
1258
- generatorOptions.hooks.applyDefaultOptions(options, config)
1258
+ generatorOptions.hooks.applyDefaultOptions(options, config5)
1259
1259
  );
1260
- writeDebug("Completed the applyDefaultOptions hook", config);
1260
+ writeDebug("Completed the applyDefaultOptions hook", config5);
1261
1261
  }
1262
1262
  writeTrace(
1263
1263
  `Generator schema options \u2699\uFE0F
1264
1264
  ${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
1265
- config
1265
+ config5
1266
1266
  );
1267
1267
  const tokenized = await applyWorkspaceTokens(
1268
1268
  options,
1269
- { workspaceRoot: tree.root, config },
1269
+ { workspaceRoot: tree.root, config: config5 },
1270
1270
  applyWorkspaceBaseTokens
1271
1271
  );
1272
1272
  if (generatorOptions?.hooks?.preProcess) {
1273
- writeDebug("Running the preProcess hook...", config);
1273
+ writeDebug("Running the preProcess hook...", config5);
1274
1274
  await Promise.resolve(
1275
- generatorOptions.hooks.preProcess(tokenized, config)
1275
+ generatorOptions.hooks.preProcess(tokenized, config5)
1276
1276
  );
1277
- writeDebug("Completed the preProcess hook", config);
1277
+ writeDebug("Completed the preProcess hook", config5);
1278
1278
  }
1279
1279
  const result = await Promise.resolve(
1280
- generatorFn(tree, tokenized, config)
1280
+ generatorFn(tree, tokenized, config5)
1281
1281
  );
1282
1282
  if (result) {
1283
1283
  if (result.success === false || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string") {
@@ -1289,25 +1289,25 @@ ${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[ke
1289
1289
  }
1290
1290
  }
1291
1291
  if (generatorOptions?.hooks?.postProcess) {
1292
- writeDebug("Running the postProcess hook...", config);
1293
- await Promise.resolve(generatorOptions.hooks.postProcess(config));
1294
- writeDebug("Completed the postProcess hook", config);
1292
+ writeDebug("Running the postProcess hook...", config5);
1293
+ await Promise.resolve(generatorOptions.hooks.postProcess(config5));
1294
+ writeDebug("Completed the postProcess hook", config5);
1295
1295
  }
1296
1296
  return () => {
1297
1297
  writeSuccess(`Completed running the ${name} generator!
1298
- `, config);
1298
+ `, config5);
1299
1299
  };
1300
1300
  } catch (error) {
1301
1301
  return () => {
1302
1302
  writeFatal(
1303
1303
  "A fatal error occurred while running the generator - the process was forced to terminate",
1304
- config
1304
+ config5
1305
1305
  );
1306
1306
  writeError(
1307
1307
  `An exception was thrown in the generator's process
1308
1308
  - Details: ${error.message}
1309
1309
  - Stacktrace: ${error.stack}`,
1310
- config
1310
+ config5
1311
1311
  );
1312
1312
  };
1313
1313
  } finally {
@@ -1343,7 +1343,7 @@ var nodeVersion = "20.11.0";
1343
1343
  var pnpmVersion = "8.10.2";
1344
1344
 
1345
1345
  // ../workspace-tools/src/base/typescript-library-generator.ts
1346
- async function typeScriptLibraryGeneratorFn(tree, options, config) {
1346
+ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
1347
1347
  const normalized = await normalizeOptions(tree, { ...options });
1348
1348
  const tasks = [];
1349
1349
  tasks.push(
@@ -1420,7 +1420,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1420
1420
  addProjectConfiguration(tree, normalized.name, projectConfig);
1421
1421
  let repository = {
1422
1422
  type: "github",
1423
- url: config?.repository || `https://github.com/${(typeof config?.organization === "string" ? config?.organization : config?.organization?.name) || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
1423
+ url: config5?.repository || `https://github.com/${(typeof config5?.organization === "string" ? config5?.organization : config5?.organization?.name) || "storm-software"}/${config5?.namespace || config5?.name || "repository"}.git`
1424
1424
  };
1425
1425
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
1426
1426
  if (tree.exists("package.json")) {
@@ -1566,10 +1566,10 @@ function createProjectTsConfigJson(tree, options) {
1566
1566
  };
1567
1567
  writeJson(tree, joinPaths(options.projectRoot, "tsconfig.json"), tsconfig);
1568
1568
  }
1569
- async function normalizeOptions(tree, options, config) {
1569
+ async function normalizeOptions(tree, options, config5) {
1570
1570
  let importPath = options.importPath;
1571
- if (!importPath && config?.namespace) {
1572
- importPath = `@${config?.namespace}/${options.name}`;
1571
+ if (!importPath && config5?.namespace) {
1572
+ importPath = `@${config5?.namespace}/${options.name}`;
1573
1573
  }
1574
1574
  if (options.publishable) {
1575
1575
  if (!importPath) {
@@ -1628,7 +1628,7 @@ async function normalizeOptions(tree, options, config) {
1628
1628
  }
1629
1629
 
1630
1630
  // ../workspace-tools/src/generators/browser-library/generator.ts
1631
- async function browserLibraryGeneratorFn(tree, schema, config) {
1631
+ async function browserLibraryGeneratorFn(tree, schema, config5) {
1632
1632
  const filesDir = joinPaths(
1633
1633
  __dirname,
1634
1634
  "src",
@@ -1690,7 +1690,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
1690
1690
  }
1691
1691
  }
1692
1692
  });
1693
- await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
1693
+ await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
1694
1694
  await formatFiles2(tree);
1695
1695
  return null;
1696
1696
  }
@@ -1711,14 +1711,14 @@ var generator_default = withRunGenerator(
1711
1711
  // ../workspace-tools/src/generators/config-schema/generator.ts
1712
1712
  import { formatFiles as formatFiles3, writeJson as writeJson2 } from "@nx/devkit";
1713
1713
  import * as z from "zod";
1714
- async function configSchemaGeneratorFn(tree, options, config) {
1714
+ async function configSchemaGeneratorFn(tree, options, config5) {
1715
1715
  writeInfo(
1716
1716
  "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
1717
- config
1717
+ config5
1718
1718
  );
1719
1719
  writeTrace(
1720
1720
  `Determining the Storm Workspace Configuration JSON Schema...`,
1721
- config
1721
+ config5
1722
1722
  );
1723
1723
  const jsonSchema = z.toJSONSchema(workspaceConfigSchema, {
1724
1724
  target: "draft-7",
@@ -1727,25 +1727,25 @@ async function configSchemaGeneratorFn(tree, options, config) {
1727
1727
  jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
1728
1728
  jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
1729
1729
  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.";
1730
- writeTrace(jsonSchema, config);
1730
+ writeTrace(jsonSchema, config5);
1731
1731
  if (!options.outputFile) {
1732
1732
  throw new Error(
1733
1733
  "The `outputFile` option is required. Please specify the output file path."
1734
1734
  );
1735
1735
  }
1736
1736
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
1737
- config?.workspaceRoot ?? findWorkspaceRoot(),
1737
+ config5?.workspaceRoot ?? findWorkspaceRoot(),
1738
1738
  options.outputFile.startsWith("./") ? "" : "./"
1739
1739
  );
1740
1740
  writeTrace(
1741
1741
  `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
1742
- config
1742
+ config5
1743
1743
  );
1744
1744
  writeJson2(tree, outputPath, jsonSchema, { spaces: 2 });
1745
1745
  await formatFiles3(tree);
1746
1746
  writeSuccess(
1747
1747
  "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
1748
- config
1748
+ config5
1749
1749
  );
1750
1750
  return {
1751
1751
  success: true
@@ -1798,7 +1798,7 @@ import {
1798
1798
  names as names3,
1799
1799
  offsetFromRoot as offsetFromRoot3
1800
1800
  } from "@nx/devkit";
1801
- async function neutralLibraryGeneratorFn(tree, schema, config) {
1801
+ async function neutralLibraryGeneratorFn(tree, schema, config5) {
1802
1802
  const filesDir = joinPaths(
1803
1803
  __dirname,
1804
1804
  "src",
@@ -1832,7 +1832,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
1832
1832
  buildable: options.bundler && options.bundler !== "none",
1833
1833
  hasUnitTestRunner: options.unitTestRunner !== "none"
1834
1834
  });
1835
- await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
1835
+ await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
1836
1836
  await formatFiles5(tree);
1837
1837
  return null;
1838
1838
  }
@@ -1857,7 +1857,7 @@ import {
1857
1857
  names as names4,
1858
1858
  offsetFromRoot as offsetFromRoot4
1859
1859
  } from "@nx/devkit";
1860
- async function nodeLibraryGeneratorFn(tree, schema, config) {
1860
+ async function nodeLibraryGeneratorFn(tree, schema, config5) {
1861
1861
  const filesDir = joinPaths(
1862
1862
  __dirname,
1863
1863
  "src",
@@ -1893,7 +1893,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
1893
1893
  buildable: options.bundler && options.bundler !== "none",
1894
1894
  hasUnitTestRunner: options.unitTestRunner !== "none"
1895
1895
  });
1896
- await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
1896
+ await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
1897
1897
  await formatFiles6(tree);
1898
1898
  return null;
1899
1899
  }
@@ -2161,8 +2161,19 @@ import {
2161
2161
  import { resolveLocalPackageDependencies as resolveLocalPackageJsonDependencies } from "@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies";
2162
2162
  import { updateLockFile } from "@nx/js/src/release/utils/update-lock-file";
2163
2163
 
2164
- // ../git-tools/dist/chunk-GRCMQK4Q.js
2165
- var COMMIT_TYPES = {
2164
+ // ../git-tools/dist/chunk-5XU2KBM6.js
2165
+ var DEFAULT_COMMIT_PROMPT_MESSAGES = {
2166
+ skip: "press enter to skip",
2167
+ max: "must be %d chars at most",
2168
+ min: "must be %d chars at least",
2169
+ emptyWarning: "can not be empty",
2170
+ upperLimitWarning: "%s is %d characters longer than the upper limit",
2171
+ lowerLimitWarning: "%s is %d characters less than the lower limit",
2172
+ closedIssueMessage: "Closes: "
2173
+ };
2174
+
2175
+ // ../git-tools/dist/chunk-3GGWHKRP.js
2176
+ var DEFAULT_COMMIT_TYPES = {
2166
2177
  /* --- Bumps version when selected --- */
2167
2178
  "chore": {
2168
2179
  "description": "Other changes that don't modify src or test files",
@@ -2291,15 +2302,148 @@ var COMMIT_TYPES = {
2291
2302
  }
2292
2303
  }
2293
2304
  };
2305
+ var CHANGELOG_COMMIT_TYPES_OBJECT = Object.freeze(
2306
+ Object.entries(DEFAULT_COMMIT_TYPES).reduce(
2307
+ (ret, [key, commitType]) => {
2308
+ ret[key] = {
2309
+ ...commitType.changelog,
2310
+ type: key,
2311
+ section: commitType.changelog?.title || commitType.title,
2312
+ hidden: commitType.changelog?.hidden
2313
+ };
2314
+ return ret;
2315
+ },
2316
+ {}
2317
+ )
2318
+ );
2319
+ var CHANGELOG_COMMIT_TYPES = [
2320
+ CHANGELOG_COMMIT_TYPES_OBJECT.feat,
2321
+ CHANGELOG_COMMIT_TYPES_OBJECT.fix,
2322
+ CHANGELOG_COMMIT_TYPES_OBJECT.chore,
2323
+ CHANGELOG_COMMIT_TYPES_OBJECT.deps,
2324
+ CHANGELOG_COMMIT_TYPES_OBJECT.docs,
2325
+ CHANGELOG_COMMIT_TYPES_OBJECT.style,
2326
+ CHANGELOG_COMMIT_TYPES_OBJECT.refactor,
2327
+ CHANGELOG_COMMIT_TYPES_OBJECT.perf,
2328
+ CHANGELOG_COMMIT_TYPES_OBJECT.build,
2329
+ CHANGELOG_COMMIT_TYPES_OBJECT.ci,
2330
+ CHANGELOG_COMMIT_TYPES_OBJECT.test
2331
+ ];
2332
+ var CHANGELOG_COMMIT_TYPE_ORDER = CHANGELOG_COMMIT_TYPES.map(
2333
+ (entry) => entry.type
2334
+ );
2335
+ var CHANGELOG_COMMIT_SECTION_ORDER = CHANGELOG_COMMIT_TYPES.map(
2336
+ (entry) => entry.section
2337
+ );
2338
+ var changelogs = {
2339
+ props: {
2340
+ ignoreCommits: void 0,
2341
+ types: CHANGELOG_COMMIT_TYPES,
2342
+ bumpStrict: true,
2343
+ scope: void 0,
2344
+ scopeOnly: false
2345
+ }
2346
+ };
2347
+ var commitlint = {
2348
+ helpUrl: "https://developer.stormsoftware.com/commitlint/minimal",
2349
+ rules: {
2350
+ "body-leading-blank": [1, "always"],
2351
+ "body-max-length": [2, "always", 600],
2352
+ "footer-leading-blank": [1, "always"],
2353
+ "footer-max-line-length": [2, "always", 150],
2354
+ "header-max-length": [2, "always", 150],
2355
+ "header-trim": [2, "always"],
2356
+ "subject-case": [2, "always", ["sentence-case"]],
2357
+ "subject-empty": [2, "never"],
2358
+ "subject-full-stop": [2, "never", "."],
2359
+ "subject-max-length": [2, "always", 150],
2360
+ "subject-min-length": [2, "always", 3],
2361
+ "type-case": [2, "always", "kebab-case"],
2362
+ "type-empty": [2, "never"],
2363
+ "type-enum": [
2364
+ 2,
2365
+ "always",
2366
+ Object.keys(DEFAULT_COMMIT_TYPES)
2367
+ ],
2368
+ "type-max-length": [2, "always", 20],
2369
+ "type-min-length": [2, "always", 3],
2370
+ "scope-empty": [2, "always"]
2371
+ },
2372
+ settings: {
2373
+ enableMultipleScopes: false,
2374
+ disableEmoji: true,
2375
+ breakingChangePrefix: "\u{1F4A3} ",
2376
+ closedIssuePrefix: "\u2705 ",
2377
+ format: "{type}: {emoji}{subject}"
2378
+ }
2379
+ };
2380
+ var config = {
2381
+ types: DEFAULT_COMMIT_TYPES,
2382
+ changelogs,
2383
+ commitlint
2384
+ };
2385
+ var minimal_default = config;
2386
+ var changelogs2 = {
2387
+ props: {
2388
+ ignoreCommits: void 0,
2389
+ types: CHANGELOG_COMMIT_TYPES,
2390
+ bumpStrict: true,
2391
+ scope: ["monorepo"],
2392
+ scopeOnly: true
2393
+ }
2394
+ };
2395
+ var commitlint2 = {
2396
+ helpUrl: "https://developer.stormsoftware.com/commitlint/monorepo",
2397
+ rules: {
2398
+ "body-leading-blank": [1, "always"],
2399
+ "body-max-length": [2, "always", 600],
2400
+ "footer-leading-blank": [1, "always"],
2401
+ "footer-max-line-length": [2, "always", 150],
2402
+ "header-max-length": [2, "always", 150],
2403
+ "header-trim": [2, "always"],
2404
+ "subject-case": [2, "always", ["sentence-case"]],
2405
+ "subject-empty": [2, "never"],
2406
+ "subject-full-stop": [2, "never", "."],
2407
+ "subject-max-length": [2, "always", 150],
2408
+ "subject-min-length": [2, "always", 3],
2409
+ "type-case": [2, "always", "kebab-case"],
2410
+ "type-empty": [2, "never"],
2411
+ "type-enum": [
2412
+ 2,
2413
+ "always",
2414
+ Object.keys(DEFAULT_COMMIT_TYPES)
2415
+ ],
2416
+ "type-max-length": [2, "always", 20],
2417
+ "type-min-length": [2, "always", 3],
2418
+ "scope-case": [2, "always", ["kebab-case"]],
2419
+ "scope-empty": [2, "never"]
2420
+ },
2421
+ settings: {
2422
+ enableMultipleScopes: false,
2423
+ disableEmoji: true,
2424
+ breakingChangePrefix: "\u{1F4A3} ",
2425
+ closedIssuePrefix: "\u2705 ",
2426
+ format: "{type}({scope}): {emoji}{subject}"
2427
+ }
2428
+ };
2429
+ var config2 = {
2430
+ types: DEFAULT_COMMIT_TYPES,
2431
+ changelogs: changelogs2,
2432
+ commitlint: commitlint2
2433
+ };
2434
+ var monorepo_default = config2;
2435
+ var COMMIT_CONFIGS = { minimal: minimal_default, monorepo: monorepo_default };
2436
+
2437
+ // ../git-tools/dist/chunk-KZRVQ5RZ.js
2294
2438
  var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
2295
2439
  type: {
2296
2440
  type: "select",
2297
2441
  title: "Commit Type",
2298
2442
  description: "Select the commit type that best describes your changes",
2299
- enum: Object.keys(COMMIT_TYPES).filter(
2300
- (type) => COMMIT_TYPES[type].hidden !== true
2443
+ enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
2444
+ (type) => DEFAULT_COMMIT_TYPES[type].hidden !== true
2301
2445
  ).reduce((ret, type) => {
2302
- ret[type] = COMMIT_TYPES[type];
2446
+ ret[type] = DEFAULT_COMMIT_TYPES[type];
2303
2447
  return ret;
2304
2448
  }, {}),
2305
2449
  defaultValue: "chore",
@@ -2348,6 +2492,14 @@ var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
2348
2492
  minLength: 3
2349
2493
  }
2350
2494
  };
2495
+ var config3 = {
2496
+ settings: COMMIT_CONFIGS.minimal.commitlint.settings,
2497
+ messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
2498
+ questions: DEFAULT_MINIMAL_COMMIT_QUESTIONS,
2499
+ types: DEFAULT_COMMIT_TYPES
2500
+ };
2501
+
2502
+ // ../git-tools/dist/chunk-JCEVFJCA.js
2351
2503
  var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
2352
2504
  type: DEFAULT_MINIMAL_COMMIT_QUESTIONS.type,
2353
2505
  scope: {
@@ -2366,55 +2518,11 @@ var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
2366
2518
  isIssueAffected: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isIssueAffected,
2367
2519
  issuesBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.issuesBody
2368
2520
  };
2369
- var DEFAULT_MINIMAL_COMMIT_RULES = {
2370
- "body-leading-blank": [1, "always"],
2371
- "body-max-length": [2, "always", 600],
2372
- "footer-leading-blank": [1, "always"],
2373
- "footer-max-line-length": [2, "always", 150],
2374
- "header-max-length": [2, "always", 150],
2375
- "header-trim": [2, "always"],
2376
- "subject-case": [2, "always", ["sentence-case"]],
2377
- "subject-empty": [2, "never"],
2378
- "subject-full-stop": [2, "never", "."],
2379
- "subject-max-length": [2, "always", 150],
2380
- "subject-min-length": [2, "always", 3],
2381
- "type-case": [2, "always", "kebab-case"],
2382
- "type-empty": [2, "never"],
2383
- "type-enum": [
2384
- 2,
2385
- "always",
2386
- Object.keys(COMMIT_TYPES)
2387
- ],
2388
- "type-max-length": [2, "always", 20],
2389
- "type-min-length": [2, "always", 3],
2390
- "scope-empty": 0,
2391
- "scope-case": 0,
2392
- "scope-enum": 0
2393
- /* Disabled */
2394
- };
2395
- var DEFAULT_MONOREPO_COMMIT_RULES = {
2396
- "body-leading-blank": [1, "always"],
2397
- "body-max-length": [2, "always", 600],
2398
- "footer-leading-blank": [1, "always"],
2399
- "footer-max-line-length": [2, "always", 150],
2400
- "header-max-length": [2, "always", 150],
2401
- "header-trim": [2, "always"],
2402
- "subject-case": [2, "always", ["sentence-case"]],
2403
- "subject-empty": [2, "never"],
2404
- "subject-full-stop": [2, "never", "."],
2405
- "subject-max-length": [2, "always", 150],
2406
- "subject-min-length": [2, "always", 3],
2407
- "type-case": [2, "always", "kebab-case"],
2408
- "type-empty": [2, "never"],
2409
- "type-enum": [
2410
- 2,
2411
- "always",
2412
- Object.keys(COMMIT_TYPES)
2413
- ],
2414
- "type-max-length": [2, "always", 20],
2415
- "type-min-length": [2, "always", 3],
2416
- "scope-case": [2, "always", ["kebab-case"]],
2417
- "scope-empty": [2, "never"]
2521
+ var config4 = {
2522
+ settings: COMMIT_CONFIGS.monorepo.commitlint.settings,
2523
+ messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
2524
+ questions: DEFAULT_MONOREPO_COMMIT_QUESTIONS,
2525
+ types: DEFAULT_COMMIT_TYPES
2418
2526
  };
2419
2527
 
2420
2528
  // ../workspace-tools/src/generators/release-version/generator.ts
@@ -5,4 +5,4 @@ import "./chunk-GUOGMMKN.mjs";
5
5
  import "./chunk-LDMMSOQW.mjs";
6
6
  import "./chunk-JMPD2YXY.mjs";
7
7
  import "./chunk-ODW5G3WY.mjs";
8
- import "./chunk-QFSU34UE.mjs";
8
+ import "./chunk-NMQP6WEB.mjs";
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-N2YKXZ5R.js');
2
2
 
3
3
 
4
- var _chunkZSVUMNQ4js = require('./chunk-ZSVUMNQ4.js');
4
+ var _chunkIR7HW7YGjs = require('./chunk-IR7HW7YG.js');
5
5
  require('./chunk-ZPLASCRL.js');
6
6
 
7
7
 
8
- exports.initGenerator = _chunkZSVUMNQ4js.initGenerator;
8
+ exports.initGenerator = _chunkIR7HW7YGjs.initGenerator;
@@ -1,9 +1,9 @@
1
1
  import "./chunk-23KFTIT2.mjs";
2
2
  import {
3
3
  initGenerator
4
- } from "./chunk-R4C74FTE.mjs";
4
+ } from "./chunk-QFNYSNEH.mjs";
5
5
  import "./chunk-ODW5G3WY.mjs";
6
- import "./chunk-QFSU34UE.mjs";
6
+ import "./chunk-NMQP6WEB.mjs";
7
7
  export {
8
8
  initGenerator
9
9
  };