@storm-software/terraform-tools 0.66.16 → 0.66.18

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.
@@ -20,10 +20,10 @@ import {
20
20
  } from "./chunk-CDTJAYLJ.mjs";
21
21
  import {
22
22
  __dirname
23
- } from "./chunk-MN4TNZB7.mjs";
23
+ } from "./chunk-DTPVX4ZK.mjs";
24
24
 
25
25
  // src/generators/init/init.ts
26
- import { formatFiles as formatFiles9 } from "@nx/devkit";
26
+ import { formatFiles as formatFiles8 } from "@nx/devkit";
27
27
 
28
28
  // ../workspace-tools/src/utils/cargo.ts
29
29
  import { joinPathFragments, workspaceRoot } from "@nx/devkit";
@@ -111,14 +111,14 @@ function cargoCommandSync(args = "", options) {
111
111
  }
112
112
  }
113
113
  function cargoMetadata() {
114
- const output3 = cargoCommandSync("metadata --format-version=1", {
114
+ const output2 = cargoCommandSync("metadata --format-version=1", {
115
115
  stdio: "pipe"
116
116
  });
117
- if (!output3.success) {
117
+ if (!output2.success) {
118
118
  console.error("Failed to get cargo metadata");
119
119
  return null;
120
120
  }
121
- return JSON.parse(output3.output);
121
+ return JSON.parse(output2.output);
122
122
  }
123
123
  function runProcess(processCmd, ...args) {
124
124
  const metadata = cargoMetadata();
@@ -285,7 +285,7 @@ import { relative as relative2 } from "path";
285
285
  import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
286
286
  import { glob } from "glob";
287
287
  import { readFile, writeFile } from "node:fs/promises";
288
- var copyAssets = async (config5, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
288
+ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
289
289
  const pendingAssets = Array.from(assets ?? []);
290
290
  pendingAssets.push({
291
291
  input: projectRoot,
@@ -314,29 +314,29 @@ var copyAssets = async (config5, assets, outputPath, projectRoot, sourceRoot, ge
314
314
  writeTrace(
315
315
  `\u{1F4DD} Copying the following assets to the output directory:
316
316
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`,
317
- config5
317
+ config
318
318
  );
319
319
  const assetHandler = new CopyAssetsHandler({
320
320
  projectDir: projectRoot,
321
- rootDir: config5.workspaceRoot,
321
+ rootDir: config.workspaceRoot,
322
322
  outputDir: outputPath,
323
323
  assets: pendingAssets
324
324
  });
325
325
  await assetHandler.processAllAssetsOnce();
326
- writeTrace("Completed copying assets to the output directory", config5);
326
+ writeTrace("Completed copying assets to the output directory", config);
327
327
  if (includeSrc === true) {
328
328
  writeDebug(
329
329
  `\u{1F4DD} Adding banner and writing source files: ${joinPaths(
330
330
  outputPath,
331
331
  "src"
332
332
  )}`,
333
- config5
333
+ config
334
334
  );
335
335
  const files = await glob([
336
- joinPaths(config5.workspaceRoot, outputPath, "src/**/*.ts"),
337
- joinPaths(config5.workspaceRoot, outputPath, "src/**/*.tsx"),
338
- joinPaths(config5.workspaceRoot, outputPath, "src/**/*.js"),
339
- joinPaths(config5.workspaceRoot, outputPath, "src/**/*.jsx")
336
+ joinPaths(config.workspaceRoot, outputPath, "src/**/*.ts"),
337
+ joinPaths(config.workspaceRoot, outputPath, "src/**/*.tsx"),
338
+ joinPaths(config.workspaceRoot, outputPath, "src/**/*.js"),
339
+ joinPaths(config.workspaceRoot, outputPath, "src/**/*.jsx")
340
340
  ]);
341
341
  await Promise.allSettled(
342
342
  files.map(
@@ -949,8 +949,8 @@ async function build2(options) {
949
949
  }
950
950
 
951
951
  // ../workspace-tools/src/executors/esbuild/executor.ts
952
- async function esbuildExecutorFn(options, context, config5) {
953
- writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config5);
952
+ async function esbuildExecutorFn(options, context, config) {
953
+ writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
954
954
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) {
955
955
  throw new Error(
956
956
  "The Build process failed because the context is not valid. Please run this command from a workspace."
@@ -1095,13 +1095,13 @@ import esBuildPlugin from "@size-limit/esbuild";
1095
1095
  import esBuildWhyPlugin from "@size-limit/esbuild-why";
1096
1096
  import filePlugin from "@size-limit/file";
1097
1097
  import sizeLimit from "size-limit";
1098
- async function sizeLimitExecutorFn(options, context, config5) {
1098
+ async function sizeLimitExecutorFn(options, context, config) {
1099
1099
  if (!context?.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName]) {
1100
1100
  throw new Error(
1101
1101
  "The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
1102
1102
  );
1103
1103
  }
1104
- writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config5);
1104
+ writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
1105
1105
  sizeLimit([filePlugin, esBuildPlugin, esBuildWhyPlugin], {
1106
1106
  checks: options.entry ?? context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? joinPathFragments4(
1107
1107
  context.projectsConfigurations.projects[context.projectName]?.root ?? "./",
@@ -1110,7 +1110,7 @@ async function sizeLimitExecutorFn(options, context, config5) {
1110
1110
  }).then((result) => {
1111
1111
  writeInfo(
1112
1112
  `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
1113
- config5
1113
+ config
1114
1114
  );
1115
1115
  });
1116
1116
  return {
@@ -1143,12 +1143,12 @@ import { build as tsdown } from "tsdown";
1143
1143
 
1144
1144
  // ../tsdown/src/clean.ts
1145
1145
  import { rm as rm2 } from "node:fs/promises";
1146
- async function cleanDirectories2(name = "TSDown", directory, config5) {
1146
+ async function cleanDirectories2(name = "TSDown", directory, config) {
1147
1147
  await rm2(directory, { recursive: true, force: true });
1148
1148
  }
1149
1149
 
1150
1150
  // ../tsdown/src/config.ts
1151
- function getDefaultOptions(config5) {
1151
+ function getDefaultOptions(config) {
1152
1152
  return {
1153
1153
  entry: ["./src/*.ts"],
1154
1154
  platform: "node",
@@ -1161,7 +1161,7 @@ function getDefaultOptions(config5) {
1161
1161
  },
1162
1162
  publint: true,
1163
1163
  fixedExtension: true,
1164
- ...config5
1164
+ ...config
1165
1165
  };
1166
1166
  }
1167
1167
  function toTSDownFormat(format4) {
@@ -1422,8 +1422,8 @@ async function build3(options) {
1422
1422
  }
1423
1423
 
1424
1424
  // ../workspace-tools/src/executors/tsdown/executor.ts
1425
- async function tsdownExecutorFn(options, context, config5) {
1426
- writeInfo("\u{1F4E6} Running Storm TSDown executor on the workspace", config5);
1425
+ async function tsdownExecutorFn(options, context, config) {
1426
+ writeInfo("\u{1F4E6} Running Storm TSDown executor on the workspace", config);
1427
1427
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) {
1428
1428
  throw new Error(
1429
1429
  "The Build process failed because the context is not valid. Please run this command from a workspace."
@@ -1463,14 +1463,14 @@ var executor_default8 = withRunExecutor(
1463
1463
  // ../workspace-tools/src/executors/typia/executor.ts
1464
1464
  import { removeSync } from "fs-extra";
1465
1465
  import { TypiaProgrammer } from "typia/lib/programmers/TypiaProgrammer.js";
1466
- async function typiaExecutorFn(options, _, config5) {
1466
+ async function typiaExecutorFn(options, _, config) {
1467
1467
  if (options.clean !== false) {
1468
- writeInfo(`\u{1F9F9} Cleaning output path: ${options.outputPath}`, config5);
1468
+ writeInfo(`\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
1469
1469
  removeSync(options.outputPath);
1470
1470
  }
1471
1471
  await Promise.all(
1472
1472
  options.entry.map((entry) => {
1473
- writeInfo(`\u{1F680} Running Typia on entry: ${entry}`, config5);
1473
+ writeInfo(`\u{1F680} Running Typia on entry: ${entry}`, config);
1474
1474
  return TypiaProgrammer.build({
1475
1475
  input: entry,
1476
1476
  output: options.outputPath,
@@ -1502,8 +1502,8 @@ var executor_default9 = withRunExecutor(
1502
1502
  // ../workspace-tools/src/executors/unbuild/executor.ts
1503
1503
  import { defu as defu3 } from "defu";
1504
1504
  import { createJiti } from "jiti";
1505
- async function unbuildExecutorFn(options, context, config5) {
1506
- writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config5);
1505
+ async function unbuildExecutorFn(options, context, config) {
1506
+ writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1507
1507
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1508
1508
  throw new Error(
1509
1509
  "The Build process failed because the context is not valid. Please run this command from a workspace root directory."
@@ -1519,10 +1519,10 @@ async function unbuildExecutorFn(options, context, config5) {
1519
1519
  "The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory."
1520
1520
  );
1521
1521
  }
1522
- const jiti = createJiti(config5.workspaceRoot, {
1523
- fsCache: config5.skipCache ? false : joinPaths(
1524
- config5.workspaceRoot,
1525
- config5.directories.cache || "node_modules/.cache/storm",
1522
+ const jiti = createJiti(config.workspaceRoot, {
1523
+ fsCache: config.skipCache ? false : joinPaths(
1524
+ config.workspaceRoot,
1525
+ config.directories.cache || "node_modules/.cache/storm",
1526
1526
  "jiti"
1527
1527
  ),
1528
1528
  interopDefault: true
@@ -1542,9 +1542,9 @@ async function unbuildExecutorFn(options, context, config5) {
1542
1542
  {
1543
1543
  stubOptions: {
1544
1544
  jiti: {
1545
- fsCache: config5.skipCache ? false : joinPaths(
1546
- config5.workspaceRoot,
1547
- config5.directories.cache || "node_modules/.cache/storm",
1545
+ fsCache: config.skipCache ? false : joinPaths(
1546
+ config.workspaceRoot,
1547
+ config.directories.cache || "node_modules/.cache/storm",
1548
1548
  "jiti"
1549
1549
  )
1550
1550
  }
@@ -1577,7 +1577,7 @@ var executor_default10 = withRunExecutor(
1577
1577
  {
1578
1578
  skipReadingConfig: false,
1579
1579
  hooks: {
1580
- applyDefaultOptions: async (options, config5) => {
1580
+ applyDefaultOptions: async (options, config) => {
1581
1581
  options.debug ??= false;
1582
1582
  options.treeShaking ??= true;
1583
1583
  options.buildOnly ??= false;
@@ -1604,46 +1604,46 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
1604
1604
  }) => async (tree, _options) => {
1605
1605
  const stopwatch = getStopwatch(name);
1606
1606
  let options = _options;
1607
- let config5;
1607
+ let config;
1608
1608
  try {
1609
1609
  writeInfo(`\u26A1 Running the ${name} generator...
1610
1610
 
1611
- `, config5);
1611
+ `, config);
1612
1612
  const workspaceRoot3 = findWorkspaceRoot();
1613
1613
  if (!generatorOptions.skipReadingConfig) {
1614
1614
  writeDebug(
1615
1615
  `Loading the Storm Config from environment variables and storm.config.js file...
1616
1616
  - workspaceRoot: ${workspaceRoot3}`,
1617
- config5
1617
+ config
1618
1618
  );
1619
- config5 = await getConfig(workspaceRoot3);
1619
+ config = await getConfig(workspaceRoot3);
1620
1620
  }
1621
1621
  if (generatorOptions?.hooks?.applyDefaultOptions) {
1622
- writeDebug("Running the applyDefaultOptions hook...", config5);
1622
+ writeDebug("Running the applyDefaultOptions hook...", config);
1623
1623
  options = await Promise.resolve(
1624
- generatorOptions.hooks.applyDefaultOptions(options, config5)
1624
+ generatorOptions.hooks.applyDefaultOptions(options, config)
1625
1625
  );
1626
- writeDebug("Completed the applyDefaultOptions hook", config5);
1626
+ writeDebug("Completed the applyDefaultOptions hook", config);
1627
1627
  }
1628
1628
  writeTrace(
1629
1629
  `Generator schema options \u2699\uFE0F
1630
1630
  ${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
1631
- config5
1631
+ config
1632
1632
  );
1633
1633
  const tokenized = await applyWorkspaceTokens(
1634
1634
  options,
1635
- { workspaceRoot: tree.root, config: config5 },
1635
+ { workspaceRoot: tree.root, config },
1636
1636
  applyWorkspaceBaseTokens
1637
1637
  );
1638
1638
  if (generatorOptions?.hooks?.preProcess) {
1639
- writeDebug("Running the preProcess hook...", config5);
1639
+ writeDebug("Running the preProcess hook...", config);
1640
1640
  await Promise.resolve(
1641
- generatorOptions.hooks.preProcess(tokenized, config5)
1641
+ generatorOptions.hooks.preProcess(tokenized, config)
1642
1642
  );
1643
- writeDebug("Completed the preProcess hook", config5);
1643
+ writeDebug("Completed the preProcess hook", config);
1644
1644
  }
1645
1645
  const result = await Promise.resolve(
1646
- generatorFn(tree, tokenized, config5)
1646
+ generatorFn(tree, tokenized, config)
1647
1647
  );
1648
1648
  if (result) {
1649
1649
  if (result.success === false || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string") {
@@ -1655,25 +1655,25 @@ ${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[ke
1655
1655
  }
1656
1656
  }
1657
1657
  if (generatorOptions?.hooks?.postProcess) {
1658
- writeDebug("Running the postProcess hook...", config5);
1659
- await Promise.resolve(generatorOptions.hooks.postProcess(config5));
1660
- writeDebug("Completed the postProcess hook", config5);
1658
+ writeDebug("Running the postProcess hook...", config);
1659
+ await Promise.resolve(generatorOptions.hooks.postProcess(config));
1660
+ writeDebug("Completed the postProcess hook", config);
1661
1661
  }
1662
1662
  return () => {
1663
1663
  writeSuccess(`Completed running the ${name} generator!
1664
- `, config5);
1664
+ `, config);
1665
1665
  };
1666
1666
  } catch (error) {
1667
1667
  return () => {
1668
1668
  writeFatal(
1669
1669
  "A fatal error occurred while running the generator - the process was forced to terminate",
1670
- config5
1670
+ config
1671
1671
  );
1672
1672
  writeError(
1673
1673
  `An exception was thrown in the generator's process
1674
1674
  - Details: ${error.message}
1675
1675
  - Stacktrace: ${error.stack}`,
1676
- config5
1676
+ config
1677
1677
  );
1678
1678
  };
1679
1679
  } finally {
@@ -1709,7 +1709,7 @@ var nodeVersion = "20.11.0";
1709
1709
  var pnpmVersion = "8.10.2";
1710
1710
 
1711
1711
  // ../workspace-tools/src/base/typescript-library-generator.ts
1712
- async function typeScriptLibraryGeneratorFn(tree, options, config5) {
1712
+ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1713
1713
  const normalized = await normalizeOptions(tree, { ...options });
1714
1714
  const tasks = [];
1715
1715
  tasks.push(
@@ -1786,7 +1786,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
1786
1786
  addProjectConfiguration(tree, normalized.name, projectConfig);
1787
1787
  let repository = {
1788
1788
  type: "github",
1789
- url: config5?.repository || `https://github.com/${(typeof config5?.organization === "string" ? config5?.organization : config5?.organization?.name) || "storm-software"}/${config5?.namespace || config5?.name || "repository"}.git`
1789
+ url: config?.repository || `https://github.com/${(typeof config?.organization === "string" ? config?.organization : config?.organization?.name) || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
1790
1790
  };
1791
1791
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
1792
1792
  if (tree.exists("package.json")) {
@@ -1932,10 +1932,10 @@ function createProjectTsConfigJson(tree, options) {
1932
1932
  };
1933
1933
  writeJson(tree, joinPaths(options.projectRoot, "tsconfig.json"), tsconfig);
1934
1934
  }
1935
- async function normalizeOptions(tree, options, config5) {
1935
+ async function normalizeOptions(tree, options, config) {
1936
1936
  let importPath = options.importPath;
1937
- if (!importPath && config5?.namespace) {
1938
- importPath = `@${config5?.namespace}/${options.name}`;
1937
+ if (!importPath && config?.namespace) {
1938
+ importPath = `@${config?.namespace}/${options.name}`;
1939
1939
  }
1940
1940
  if (options.publishable) {
1941
1941
  if (!importPath) {
@@ -1994,7 +1994,7 @@ async function normalizeOptions(tree, options, config5) {
1994
1994
  }
1995
1995
 
1996
1996
  // ../workspace-tools/src/generators/browser-library/generator.ts
1997
- async function browserLibraryGeneratorFn(tree, schema, config5) {
1997
+ async function browserLibraryGeneratorFn(tree, schema, config) {
1998
1998
  const filesDir = joinPaths(
1999
1999
  __dirname,
2000
2000
  "src",
@@ -2056,7 +2056,7 @@ async function browserLibraryGeneratorFn(tree, schema, config5) {
2056
2056
  }
2057
2057
  }
2058
2058
  });
2059
- await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
2059
+ await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
2060
2060
  await formatFiles2(tree);
2061
2061
  return null;
2062
2062
  }
@@ -2077,14 +2077,14 @@ var generator_default = withRunGenerator(
2077
2077
  // ../workspace-tools/src/generators/config-schema/generator.ts
2078
2078
  import { formatFiles as formatFiles3, writeJson as writeJson2 } from "@nx/devkit";
2079
2079
  import * as z from "zod";
2080
- async function configSchemaGeneratorFn(tree, options, config5) {
2080
+ async function configSchemaGeneratorFn(tree, options, config) {
2081
2081
  writeInfo(
2082
2082
  "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
2083
- config5
2083
+ config
2084
2084
  );
2085
2085
  writeTrace(
2086
2086
  `Determining the Storm Workspace Configuration JSON Schema...`,
2087
- config5
2087
+ config
2088
2088
  );
2089
2089
  const jsonSchema = z.toJSONSchema(workspaceConfigSchema, {
2090
2090
  target: "draft-7",
@@ -2093,25 +2093,25 @@ async function configSchemaGeneratorFn(tree, options, config5) {
2093
2093
  jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
2094
2094
  jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
2095
2095
  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.";
2096
- writeTrace(jsonSchema, config5);
2096
+ writeTrace(jsonSchema, config);
2097
2097
  if (!options.outputFile) {
2098
2098
  throw new Error(
2099
2099
  "The `outputFile` option is required. Please specify the output file path."
2100
2100
  );
2101
2101
  }
2102
2102
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
2103
- config5?.workspaceRoot ?? findWorkspaceRoot(),
2103
+ config?.workspaceRoot ?? findWorkspaceRoot(),
2104
2104
  options.outputFile.startsWith("./") ? "" : "./"
2105
2105
  );
2106
2106
  writeTrace(
2107
2107
  `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
2108
- config5
2108
+ config
2109
2109
  );
2110
2110
  writeJson2(tree, outputPath, jsonSchema, { spaces: 2 });
2111
2111
  await formatFiles3(tree);
2112
2112
  writeSuccess(
2113
2113
  "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
2114
- config5
2114
+ config
2115
2115
  );
2116
2116
  return {
2117
2117
  success: true
@@ -2164,7 +2164,7 @@ import {
2164
2164
  names as names3,
2165
2165
  offsetFromRoot as offsetFromRoot3
2166
2166
  } from "@nx/devkit";
2167
- async function neutralLibraryGeneratorFn(tree, schema, config5) {
2167
+ async function neutralLibraryGeneratorFn(tree, schema, config) {
2168
2168
  const filesDir = joinPaths(
2169
2169
  __dirname,
2170
2170
  "src",
@@ -2198,7 +2198,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config5) {
2198
2198
  buildable: options.bundler && options.bundler !== "none",
2199
2199
  hasUnitTestRunner: options.unitTestRunner !== "none"
2200
2200
  });
2201
- await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
2201
+ await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
2202
2202
  await formatFiles5(tree);
2203
2203
  return null;
2204
2204
  }
@@ -2223,7 +2223,7 @@ import {
2223
2223
  names as names4,
2224
2224
  offsetFromRoot as offsetFromRoot4
2225
2225
  } from "@nx/devkit";
2226
- async function nodeLibraryGeneratorFn(tree, schema, config5) {
2226
+ async function nodeLibraryGeneratorFn(tree, schema, config) {
2227
2227
  const filesDir = joinPaths(
2228
2228
  __dirname,
2229
2229
  "src",
@@ -2259,7 +2259,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config5) {
2259
2259
  buildable: options.bundler && options.bundler !== "none",
2260
2260
  hasUnitTestRunner: options.unitTestRunner !== "none"
2261
2261
  });
2262
- await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
2262
+ await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
2263
2263
  await formatFiles6(tree);
2264
2264
  return null;
2265
2265
  }
@@ -2515,402 +2515,6 @@ var generator_default5 = withRunGenerator(
2515
2515
  presetGeneratorFn
2516
2516
  );
2517
2517
 
2518
- // ../workspace-tools/src/generators/release-version/generator.ts
2519
- import {
2520
- formatFiles as formatFiles8,
2521
- joinPathFragments as joinPathFragments6,
2522
- output,
2523
- readJson as readJson2,
2524
- updateJson as updateJson3,
2525
- writeJson as writeJson3
2526
- } from "@nx/devkit";
2527
- import { resolveLocalPackageDependencies as resolveLocalPackageJsonDependencies } from "@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies";
2528
- import { updateLockFile } from "@nx/js/src/release/utils/update-lock-file";
2529
-
2530
- // ../git-tools/dist/chunk-5XU2KBM6.js
2531
- var DEFAULT_COMMIT_PROMPT_MESSAGES = {
2532
- skip: "press enter to skip",
2533
- max: "must be %d chars at most",
2534
- min: "must be %d chars at least",
2535
- emptyWarning: "can not be empty",
2536
- upperLimitWarning: "%s is %d characters longer than the upper limit",
2537
- lowerLimitWarning: "%s is %d characters less than the lower limit",
2538
- closedIssueMessage: "Closes: "
2539
- };
2540
-
2541
- // ../git-tools/dist/chunk-3GGWHKRP.js
2542
- var DEFAULT_COMMIT_TYPES = {
2543
- /* --- Bumps version when selected --- */
2544
- "chore": {
2545
- "description": "Other changes that don't modify src or test files",
2546
- "title": "Chore",
2547
- "emoji": "\u2699\uFE0F ",
2548
- "semverBump": "patch",
2549
- "changelog": {
2550
- "title": "Miscellaneous",
2551
- "hidden": false
2552
- }
2553
- },
2554
- "fix": {
2555
- "description": "A change that resolves an issue previously identified with the package",
2556
- "title": "Bug Fix",
2557
- "emoji": "\u{1FAB2} ",
2558
- "semverBump": "patch",
2559
- "changelog": {
2560
- "title": "Bug Fixes",
2561
- "hidden": false
2562
- }
2563
- },
2564
- "feat": {
2565
- "description": "A change that adds a new feature to the package",
2566
- "title": "Feature",
2567
- "emoji": "\u{1F511} ",
2568
- "semverBump": "minor",
2569
- "changelog": {
2570
- "title": "Features",
2571
- "hidden": false
2572
- }
2573
- },
2574
- "ci": {
2575
- "description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
2576
- "title": "Continuous Integration",
2577
- "emoji": "\u{1F9F0} ",
2578
- "semverBump": "patch",
2579
- "changelog": {
2580
- "title": "Continuous Integration",
2581
- "hidden": false
2582
- }
2583
- },
2584
- "refactor": {
2585
- "description": "A code change that neither fixes a bug nor adds a feature",
2586
- "title": "Code Refactoring",
2587
- "emoji": "\u{1F9EA} ",
2588
- "semverBump": "patch",
2589
- "changelog": {
2590
- "title": "Source Code Improvements",
2591
- "hidden": false
2592
- }
2593
- },
2594
- "style": {
2595
- "description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
2596
- "title": "Style Improvements",
2597
- "emoji": "\u{1F48E} ",
2598
- "semverBump": "patch",
2599
- "changelog": {
2600
- "title": "Style Improvements",
2601
- "hidden": false
2602
- }
2603
- },
2604
- "perf": {
2605
- "description": "A code change that improves performance",
2606
- "title": "Performance Improvement",
2607
- "emoji": "\u23F1\uFE0F ",
2608
- "semverBump": "patch",
2609
- "changelog": {
2610
- "title": "Performance Improvements",
2611
- "hidden": false
2612
- }
2613
- },
2614
- /* --- Does not bump version when selected --- */
2615
- "docs": {
2616
- "description": "A change that only includes documentation updates",
2617
- "title": "Documentation",
2618
- "emoji": "\u{1F4DC} ",
2619
- "semverBump": "none",
2620
- "changelog": {
2621
- "title": "Documentation",
2622
- "hidden": false
2623
- }
2624
- },
2625
- "test": {
2626
- "description": "Adding missing tests or correcting existing tests",
2627
- "title": "Testing",
2628
- "emoji": "\u{1F6A8} ",
2629
- "semverBump": "none",
2630
- "changelog": {
2631
- "title": "Testing",
2632
- "hidden": true
2633
- }
2634
- },
2635
- /* --- Not included in commitlint but included in changelog --- */
2636
- "deps": {
2637
- "description": "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
2638
- "title": "Dependencies",
2639
- "emoji": "\u{1F4E6} ",
2640
- "hidden": true,
2641
- "semverBump": "patch",
2642
- "changelog": {
2643
- "title": "Dependency Upgrades",
2644
- "hidden": false
2645
- }
2646
- },
2647
- /* --- Not included in commitlint or changelog --- */
2648
- "build": {
2649
- "description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
2650
- "title": "Build",
2651
- "emoji": "\u{1F6E0} ",
2652
- "hidden": true,
2653
- "semverBump": "none",
2654
- "changelog": {
2655
- "title": "Build",
2656
- "hidden": true
2657
- }
2658
- },
2659
- "release": {
2660
- "description": "Publishing a commit containing a newly released version",
2661
- "title": "Publish Release",
2662
- "emoji": "\u{1F680} ",
2663
- "hidden": true,
2664
- "semverBump": "none",
2665
- "changelog": {
2666
- "title": "Publish Release",
2667
- "hidden": true
2668
- }
2669
- }
2670
- };
2671
- var CHANGELOG_COMMIT_TYPES_OBJECT = Object.freeze(
2672
- Object.entries(DEFAULT_COMMIT_TYPES).reduce(
2673
- (ret, [key, commitType]) => {
2674
- ret[key] = {
2675
- ...commitType.changelog,
2676
- type: key,
2677
- section: commitType.changelog?.title || commitType.title,
2678
- hidden: commitType.changelog?.hidden
2679
- };
2680
- return ret;
2681
- },
2682
- {}
2683
- )
2684
- );
2685
- var CHANGELOG_COMMIT_TYPES = [
2686
- CHANGELOG_COMMIT_TYPES_OBJECT.feat,
2687
- CHANGELOG_COMMIT_TYPES_OBJECT.fix,
2688
- CHANGELOG_COMMIT_TYPES_OBJECT.chore,
2689
- CHANGELOG_COMMIT_TYPES_OBJECT.deps,
2690
- CHANGELOG_COMMIT_TYPES_OBJECT.docs,
2691
- CHANGELOG_COMMIT_TYPES_OBJECT.style,
2692
- CHANGELOG_COMMIT_TYPES_OBJECT.refactor,
2693
- CHANGELOG_COMMIT_TYPES_OBJECT.perf,
2694
- CHANGELOG_COMMIT_TYPES_OBJECT.build,
2695
- CHANGELOG_COMMIT_TYPES_OBJECT.ci,
2696
- CHANGELOG_COMMIT_TYPES_OBJECT.test
2697
- ];
2698
- var CHANGELOG_COMMIT_TYPE_ORDER = CHANGELOG_COMMIT_TYPES.map(
2699
- (entry) => entry.type
2700
- );
2701
- var CHANGELOG_COMMIT_SECTION_ORDER = CHANGELOG_COMMIT_TYPES.map(
2702
- (entry) => entry.section
2703
- );
2704
- var changelogs = {
2705
- props: {
2706
- ignoreCommits: void 0,
2707
- types: CHANGELOG_COMMIT_TYPES,
2708
- bumpStrict: true,
2709
- scope: void 0,
2710
- scopeOnly: false
2711
- }
2712
- };
2713
- var commitlint = {
2714
- helpUrl: "https://developer.stormsoftware.com/commitlint/minimal",
2715
- rules: {
2716
- "body-leading-blank": [1, "always"],
2717
- "body-max-length": [2, "always", 600],
2718
- "footer-leading-blank": [1, "always"],
2719
- "footer-max-line-length": [2, "always", 150],
2720
- "header-max-length": [2, "always", 150],
2721
- "header-trim": [2, "always"],
2722
- "subject-case": [2, "always", ["sentence-case"]],
2723
- "subject-empty": [2, "never"],
2724
- "subject-full-stop": [2, "never", "."],
2725
- "subject-max-length": [2, "always", 150],
2726
- "subject-min-length": [2, "always", 3],
2727
- "type-case": [2, "always", "kebab-case"],
2728
- "type-empty": [2, "never"],
2729
- "type-enum": [
2730
- 2,
2731
- "always",
2732
- Object.keys(DEFAULT_COMMIT_TYPES)
2733
- ],
2734
- "type-max-length": [2, "always", 20],
2735
- "type-min-length": [2, "always", 3],
2736
- "scope-empty": [2, "always"]
2737
- },
2738
- settings: {
2739
- enableMultipleScopes: false,
2740
- disableEmoji: true,
2741
- breakingChangePrefix: "\u{1F4A3} ",
2742
- closedIssuePrefix: "\u2705 ",
2743
- format: "{type}: {emoji}{subject}"
2744
- }
2745
- };
2746
- var config = {
2747
- types: DEFAULT_COMMIT_TYPES,
2748
- changelogs,
2749
- commitlint
2750
- };
2751
- var minimal_default = config;
2752
- var changelogs2 = {
2753
- props: {
2754
- ignoreCommits: void 0,
2755
- types: CHANGELOG_COMMIT_TYPES,
2756
- bumpStrict: true,
2757
- scope: ["monorepo"],
2758
- scopeOnly: true
2759
- }
2760
- };
2761
- var commitlint2 = {
2762
- helpUrl: "https://developer.stormsoftware.com/commitlint/monorepo",
2763
- rules: {
2764
- "body-leading-blank": [1, "always"],
2765
- "body-max-length": [2, "always", 600],
2766
- "footer-leading-blank": [1, "always"],
2767
- "footer-max-line-length": [2, "always", 150],
2768
- "header-max-length": [2, "always", 150],
2769
- "header-trim": [2, "always"],
2770
- "subject-case": [2, "always", ["sentence-case"]],
2771
- "subject-empty": [2, "never"],
2772
- "subject-full-stop": [2, "never", "."],
2773
- "subject-max-length": [2, "always", 150],
2774
- "subject-min-length": [2, "always", 3],
2775
- "type-case": [2, "always", "kebab-case"],
2776
- "type-empty": [2, "never"],
2777
- "type-enum": [
2778
- 2,
2779
- "always",
2780
- Object.keys(DEFAULT_COMMIT_TYPES)
2781
- ],
2782
- "type-max-length": [2, "always", 20],
2783
- "type-min-length": [2, "always", 3],
2784
- "scope-case": [2, "always", ["kebab-case"]],
2785
- "scope-empty": [2, "never"]
2786
- },
2787
- settings: {
2788
- enableMultipleScopes: false,
2789
- disableEmoji: true,
2790
- breakingChangePrefix: "\u{1F4A3} ",
2791
- closedIssuePrefix: "\u2705 ",
2792
- format: "{type}({scope}): {emoji}{subject}"
2793
- }
2794
- };
2795
- var config2 = {
2796
- types: DEFAULT_COMMIT_TYPES,
2797
- changelogs: changelogs2,
2798
- commitlint: commitlint2
2799
- };
2800
- var monorepo_default = config2;
2801
- var COMMIT_CONFIGS = { minimal: minimal_default, monorepo: monorepo_default };
2802
-
2803
- // ../git-tools/dist/chunk-KZRVQ5RZ.js
2804
- var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
2805
- type: {
2806
- type: "select",
2807
- title: "Commit Type",
2808
- description: "Select the commit type that best describes your changes",
2809
- enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
2810
- (type) => DEFAULT_COMMIT_TYPES[type].hidden !== true
2811
- ).reduce((ret, type) => {
2812
- ret[type] = DEFAULT_COMMIT_TYPES[type];
2813
- return ret;
2814
- }, {}),
2815
- defaultValue: "chore",
2816
- maxLength: 20,
2817
- minLength: 3
2818
- },
2819
- subject: {
2820
- type: "input",
2821
- title: "Commit Subject",
2822
- description: "Write a short, imperative tense description of the change",
2823
- maxLength: 150,
2824
- minLength: 3
2825
- },
2826
- body: {
2827
- type: "input",
2828
- title: "Commit Body",
2829
- description: "Provide a longer description of the change",
2830
- maxLength: 600
2831
- },
2832
- isBreaking: {
2833
- type: "confirm",
2834
- title: "Breaking Changes",
2835
- description: "Are there any breaking changes as a result of this commit?",
2836
- defaultValue: false
2837
- },
2838
- breakingBody: {
2839
- type: "input",
2840
- title: "Breaking Changes (Details)",
2841
- description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself",
2842
- when: (answers) => answers.isBreaking === true,
2843
- maxLength: 600,
2844
- minLength: 3
2845
- },
2846
- isIssueAffected: {
2847
- type: "confirm",
2848
- title: "Open Issue Affected",
2849
- description: "Does this change impact any open issues?",
2850
- defaultValue: false
2851
- },
2852
- issuesBody: {
2853
- type: "input",
2854
- title: "Open Issue Affected (Details)",
2855
- description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself",
2856
- when: (answers) => answers.isIssueAffected === true,
2857
- maxLength: 600,
2858
- minLength: 3
2859
- }
2860
- };
2861
- var config3 = {
2862
- settings: COMMIT_CONFIGS.minimal.commitlint.settings,
2863
- messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
2864
- questions: DEFAULT_MINIMAL_COMMIT_QUESTIONS,
2865
- types: DEFAULT_COMMIT_TYPES
2866
- };
2867
-
2868
- // ../git-tools/dist/chunk-JCEVFJCA.js
2869
- var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
2870
- type: DEFAULT_MINIMAL_COMMIT_QUESTIONS.type,
2871
- scope: {
2872
- type: "select",
2873
- title: "Commit Scope",
2874
- description: "Select the project that's the most impacted by this change",
2875
- enum: {},
2876
- defaultValue: "monorepo",
2877
- maxLength: 50,
2878
- minLength: 1
2879
- },
2880
- subject: DEFAULT_MINIMAL_COMMIT_QUESTIONS.subject,
2881
- body: DEFAULT_MINIMAL_COMMIT_QUESTIONS.body,
2882
- isBreaking: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isBreaking,
2883
- breakingBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.breakingBody,
2884
- isIssueAffected: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isIssueAffected,
2885
- issuesBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.issuesBody
2886
- };
2887
- var config4 = {
2888
- settings: COMMIT_CONFIGS.monorepo.commitlint.settings,
2889
- messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
2890
- questions: DEFAULT_MONOREPO_COMMIT_QUESTIONS,
2891
- types: DEFAULT_COMMIT_TYPES
2892
- };
2893
-
2894
- // ../workspace-tools/src/generators/release-version/generator.ts
2895
- import { execSync as execSync4 } from "node:child_process";
2896
- import { relative as relative3 } from "node:path";
2897
- import { IMPLICIT_DEFAULT_RELEASE_GROUP } from "nx/src/command-line/release/config/config";
2898
- import {
2899
- getFirstGitCommit,
2900
- getLatestGitTagForPattern
2901
- } from "nx/src/command-line/release/utils/git";
2902
- import {
2903
- resolveSemverSpecifierFromConventionalCommits,
2904
- resolveSemverSpecifierFromPrompt
2905
- } from "nx/src/command-line/release/utils/resolve-semver-specifier";
2906
- import { isValidSemverSpecifier } from "nx/src/command-line/release/utils/semver";
2907
- import {
2908
- deriveNewSemverVersion,
2909
- validReleaseVersionPrefixes
2910
- } from "nx/src/command-line/release/version-legacy";
2911
- import { interpolate } from "nx/src/tasks-runner/utils";
2912
- import { prerelease } from "semver";
2913
-
2914
2518
  // ../workspace-tools/src/base/base-executor.untyped.ts
2915
2519
  import { defineUntypedSchema } from "untyped";
2916
2520
  var base_executor_untyped_default = defineUntypedSchema({
@@ -3275,6 +2879,18 @@ var typescript_library_generator_untyped_default = defineUntypedSchema5({
3275
2879
  }
3276
2880
  });
3277
2881
 
2882
+ // ../workspace-tools/src/release/js-version-actions.ts
2883
+ import JsVersionActions from "@nx/js/src/release/version-actions.js";
2884
+
2885
+ // ../workspace-tools/src/release/rust-version-actions.ts
2886
+ import {
2887
+ joinPathFragments as joinPathFragments6
2888
+ } from "@nx/devkit";
2889
+ import { VersionActions } from "nx/release";
2890
+
2891
+ // ../workspace-tools/src/utils/registry-helpers.ts
2892
+ import https2 from "node:https";
2893
+
3278
2894
  // ../workspace-tools/src/utils/create-cli-options.ts
3279
2895
  import { names as names5 } from "@nx/devkit";
3280
2896
 
@@ -3283,7 +2899,7 @@ import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/proj
3283
2899
 
3284
2900
  // ../workspace-tools/src/utils/lock-file.ts
3285
2901
  import {
3286
- output as output2,
2902
+ output,
3287
2903
  readJsonFile as readJsonFile2,
3288
2904
  workspaceRoot as workspaceRoot2
3289
2905
  } from "@nx/devkit";
@@ -3323,7 +2939,7 @@ import transform2 from "typia/lib/transform";
3323
2939
  async function initGenerator2(tree, schema) {
3324
2940
  const task = initGenerator(tree, { skipFormat: !!schema.skipFormat });
3325
2941
  if (!schema.skipFormat) {
3326
- await formatFiles9(tree);
2942
+ await formatFiles8(tree);
3327
2943
  }
3328
2944
  return task;
3329
2945
  }