@storm-software/terraform-tools 0.66.284 → 0.66.288

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.
@@ -440,36 +440,11 @@ var executor_default7 = withRunExecutor(
440
440
  }
441
441
  );
442
442
 
443
- // ../npm-tools/src/helpers/get-version.ts
444
- import { exec as exec2 } from "node:child_process";
445
- import { valid } from "semver";
446
- import stripAnsi from "strip-ansi";
447
-
448
- // ../npm-tools/src/helpers/get-registry.ts
449
- import { exec } from "node:child_process";
450
-
451
- // ../pnpm-tools/src/helpers/catalog.ts
452
- import { coerce, gt, valid as valid2 } from "semver";
453
-
454
- // ../pnpm-tools/src/helpers/pnpm-workspace.ts
455
- import { existsSync } from "node:fs";
456
- import { readFile, writeFile } from "node:fs/promises";
457
- import { parse, stringify } from "yaml";
458
-
459
- // ../pnpm-tools/src/helpers/replace-deps-aliases.ts
460
- import {
461
- createProjectGraphAsync,
462
- readCachedProjectGraph
463
- } from "@nx/devkit";
464
- import { existsSync as existsSync2 } from "node:fs";
465
- import { readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
466
- import { format } from "prettier";
467
-
468
443
  // ../workspace-tools/src/executors/npm-publish/executor.ts
469
444
  import { createJiti as createJiti4 } from "jiti";
470
445
  import { execSync as execSync3 } from "node:child_process";
471
- import { readFile as readFile4, writeFile as writeFile4 } from "node:fs/promises";
472
- import { format as format3 } from "prettier";
446
+ import { readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
447
+ import { format as format2 } from "prettier";
473
448
 
474
449
  // ../workspace-tools/src/utils/github.ts
475
450
  import { createJiti as createJiti3 } from "jiti";
@@ -480,10 +455,10 @@ import {
480
455
  readJsonFile
481
456
  } from "@nx/devkit";
482
457
  import { execFileSync } from "child_process";
483
- import { existsSync as existsSync3 } from "node:fs";
484
- import { readFile as readFile3, writeFile as writeFile3 } from "node:fs/promises";
458
+ import { existsSync } from "node:fs";
459
+ import { readFile, writeFile } from "node:fs/promises";
485
460
  import { dirname, resolve } from "path";
486
- import { format as format2 } from "prettier";
461
+ import { format } from "prettier";
487
462
 
488
463
  // ../package-constants/src/tags.ts
489
464
  var ProjectTagConstants = {
@@ -560,6 +535,12 @@ var addProjectTag = (project, variant, value, options = {
560
535
  }
561
536
  };
562
537
 
538
+ // ../workspace-tools/src/utils/package-manager.ts
539
+ import {
540
+ detectPackageManager,
541
+ getPackageManagerCommand
542
+ } from "@nx/devkit";
543
+
563
544
  // ../workspace-tools/src/executors/npm-publish/executor.ts
564
545
  var LARGE_BUFFER2 = 1024 * 1e6;
565
546
 
@@ -606,7 +587,7 @@ var executor_default8 = withRunExecutor(
606
587
 
607
588
  // ../tsdown/src/build.ts
608
589
  import {
609
- createProjectGraphAsync as createProjectGraphAsync3,
590
+ createProjectGraphAsync as createProjectGraphAsync2,
610
591
  readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2,
611
592
  writeJsonFile
612
593
  } from "@nx/devkit";
@@ -632,7 +613,7 @@ import { relative as relative3 } from "path";
632
613
  // ../build-tools/src/utilities/copy-assets.ts
633
614
  import { CopyAssetsHandler } from "@nx/js/internal";
634
615
  import { glob } from "glob";
635
- import { readFile as readFile5, writeFile as writeFile5 } from "node:fs/promises";
616
+ import { readFile as readFile3, writeFile as writeFile3 } from "node:fs/promises";
636
617
  var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
637
618
  const pendingAssets = Array.from(assets ?? []);
638
619
  pendingAssets.push({
@@ -688,11 +669,11 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
688
669
  ]);
689
670
  await Promise.allSettled(
690
671
  files.map(
691
- async (file) => writeFile5(
672
+ async (file) => writeFile3(
692
673
  file,
693
674
  `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
694
675
 
695
- ${await readFile5(file, "utf8")}
676
+ ${await readFile3(file, "utf8")}
696
677
 
697
678
  ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `// ${footer}` : ""}`
698
679
  )
@@ -704,20 +685,20 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
704
685
  // ../build-tools/src/utilities/generate-package-json.ts
705
686
  import { calculateProjectBuildableDependencies } from "@nx/js/internal";
706
687
  import { Glob } from "glob";
707
- import { existsSync as existsSync4, readFileSync as readFileSync3 } from "node:fs";
708
- import { readFile as readFile6 } from "node:fs/promises";
688
+ import { existsSync as existsSync2, readFileSync as readFileSync3 } from "node:fs";
689
+ import { readFile as readFile4 } from "node:fs/promises";
709
690
  import {
710
- createProjectGraphAsync as createProjectGraphAsync2,
711
- readCachedProjectGraph as readCachedProjectGraph2,
691
+ createProjectGraphAsync,
692
+ readCachedProjectGraph,
712
693
  readProjectsConfigurationFromProjectGraph
713
694
  } from "nx/src/project-graph/project-graph";
714
695
  var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, packageJson) => {
715
696
  let projectGraph;
716
697
  try {
717
- projectGraph = readCachedProjectGraph2();
698
+ projectGraph = readCachedProjectGraph();
718
699
  } catch {
719
- await createProjectGraphAsync2();
720
- projectGraph = readCachedProjectGraph2();
700
+ await createProjectGraphAsync();
701
+ projectGraph = readCachedProjectGraph();
721
702
  }
722
703
  if (!projectGraph) {
723
704
  throw new Error(
@@ -744,8 +725,8 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
744
725
  projectNode.data.root,
745
726
  "package.json"
746
727
  );
747
- if (existsSync4(projectPackageJsonPath)) {
748
- const projectPackageJsonContent = await readFile6(
728
+ if (existsSync2(projectPackageJsonPath)) {
729
+ const projectPackageJsonContent = await readFile4(
749
730
  projectPackageJsonPath,
750
731
  "utf8"
751
732
  );
@@ -760,7 +741,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
760
741
  writeTrace(
761
742
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
762
743
  );
763
- const projectJsonFile = await readFile6(
744
+ const projectJsonFile = await readFile4(
764
745
  joinPaths(projectRoot, "project.json"),
765
746
  "utf8"
766
747
  );
@@ -779,7 +760,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
779
760
  projectConfigurations.projects[dep].root,
780
761
  "package.json"
781
762
  );
782
- if (existsSync4(depPackageJsonPath)) {
763
+ if (existsSync2(depPackageJsonPath)) {
783
764
  const depPackageJsonContent = readFileSync3(
784
765
  depPackageJsonPath,
785
766
  "utf8"
@@ -811,7 +792,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
811
792
  };
812
793
  var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
813
794
  const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
814
- const workspacePackageJsonContent = await readFile6(
795
+ const workspacePackageJsonContent = await readFile4(
815
796
  joinPaths(workspaceRoot2, "package.json"),
816
797
  "utf8"
817
798
  );
@@ -890,8 +871,8 @@ var getEnv = (builder, options) => {
890
871
  };
891
872
 
892
873
  // ../build-tools/src/utilities/read-nx-config.ts
893
- import { existsSync as existsSync5 } from "node:fs";
894
- import { readFile as readFile7 } from "node:fs/promises";
874
+ import { existsSync as existsSync3 } from "node:fs";
875
+ import { readFile as readFile5 } from "node:fs/promises";
895
876
 
896
877
  // ../build-tools/src/utilities/task-graph.ts
897
878
  import {
@@ -901,7 +882,7 @@ import {
901
882
 
902
883
  // ../tsdown/src/build.ts
903
884
  import defu from "defu";
904
- import { existsSync as existsSync6 } from "node:fs";
885
+ import { existsSync as existsSync4 } from "node:fs";
905
886
  import hf from "node:fs/promises";
906
887
  import { build as tsdown } from "tsdown";
907
888
 
@@ -928,15 +909,15 @@ function getDefaultOptions(config) {
928
909
  ...config
929
910
  };
930
911
  }
931
- function toTSDownFormat(format4) {
932
- if (!format4 || Array.isArray(format4) && format4.length === 0) {
912
+ function toTSDownFormat(format3) {
913
+ if (!format3 || Array.isArray(format3) && format3.length === 0) {
933
914
  return ["cjs", "es"];
934
- } else if (format4 === "esm") {
915
+ } else if (format3 === "esm") {
935
916
  return "es";
936
- } else if (Array.isArray(format4)) {
937
- return format4.map((f) => f === "esm" ? "es" : f);
917
+ } else if (Array.isArray(format3)) {
918
+ return format3.map((f) => f === "esm" ? "es" : f);
938
919
  }
939
- return format4;
920
+ return format3;
940
921
  }
941
922
 
942
923
  // ../tsdown/src/build.ts
@@ -951,7 +932,7 @@ var resolveOptions = async (userOptions) => {
951
932
  });
952
933
  writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
953
934
  const stopwatch = getStopwatch("Build options resolution");
954
- const projectGraph = await createProjectGraphAsync3({
935
+ const projectGraph = await createProjectGraphAsync2({
955
936
  exitOnError: true
956
937
  });
957
938
  const projectJsonPath = joinPaths(
@@ -959,7 +940,7 @@ var resolveOptions = async (userOptions) => {
959
940
  options.projectRoot,
960
941
  "project.json"
961
942
  );
962
- if (!existsSync6(projectJsonPath)) {
943
+ if (!existsSync4(projectJsonPath)) {
963
944
  throw new Error("Cannot find project.json configuration");
964
945
  }
965
946
  const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
@@ -976,7 +957,7 @@ var resolveOptions = async (userOptions) => {
976
957
  options.projectRoot,
977
958
  "package.json"
978
959
  );
979
- if (!existsSync6(packageJsonPath)) {
960
+ if (!existsSync4(packageJsonPath)) {
980
961
  throw new Error("Cannot find package.json configuration");
981
962
  }
982
963
  const debug = options.debug ?? (options.mode || workspaceConfig.mode) === "development";
@@ -1021,11 +1002,11 @@ var resolveOptions = async (userOptions) => {
1021
1002
  return result;
1022
1003
  };
1023
1004
  async function generatePackageJson(options) {
1024
- if (options.generatePackageJson !== false && existsSync6(joinPaths(options.projectRoot, "package.json"))) {
1005
+ if (options.generatePackageJson !== false && existsSync4(joinPaths(options.projectRoot, "package.json"))) {
1025
1006
  writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
1026
1007
  const stopwatch = getStopwatch("Write package.json file");
1027
1008
  const packageJsonPath = joinPaths(options.projectRoot, "project.json");
1028
- if (!existsSync6(packageJsonPath)) {
1009
+ if (!existsSync4(packageJsonPath)) {
1029
1010
  throw new Error("Cannot find package.json configuration");
1030
1011
  }
1031
1012
  const packageJsonFile = await hf.readFile(
@@ -1470,7 +1451,16 @@ import {
1470
1451
  var typesNodeVersion = "20.9.0";
1471
1452
  var nxVersion = "^18.0.4";
1472
1453
  var nodeVersion = "20.11.0";
1473
- var pnpmVersion = "8.10.2";
1454
+ var pnpmVersion = "10.3.0";
1455
+ var npmVersion = "10.9.0";
1456
+ var yarnVersion = "4.6.0";
1457
+ var bunVersion = "1.2.0";
1458
+ var packageManagerVersions = {
1459
+ npm: npmVersion,
1460
+ yarn: yarnVersion,
1461
+ pnpm: pnpmVersion,
1462
+ bun: bunVersion
1463
+ };
1474
1464
 
1475
1465
  // ../workspace-tools/src/base/typescript-library-generator.ts
1476
1466
  async function typeScriptLibraryGeneratorFn(tree, options, config) {
@@ -1601,16 +1591,45 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1601
1591
  });
1602
1592
  }
1603
1593
  if (tree.exists("package.json") && normalized.importPath) {
1604
- updateJson(tree, "package.json", (json) => ({
1605
- ...json,
1606
- pnpm: {
1607
- ...json?.pnpm,
1608
- overrides: {
1609
- ...json?.pnpm?.overrides,
1610
- [normalized.importPath ?? ""]: "workspace:*"
1611
- }
1594
+ updateJson(tree, "package.json", (json) => {
1595
+ if (config?.packageManager === "yarn") {
1596
+ return {
1597
+ ...json,
1598
+ resolutions: {
1599
+ ...json?.resolutions,
1600
+ [normalized.importPath ?? ""]: "workspace:*"
1601
+ }
1602
+ };
1603
+ }
1604
+ if (config?.packageManager === "npm") {
1605
+ return {
1606
+ ...json,
1607
+ overrides: {
1608
+ ...json?.overrides,
1609
+ [normalized.importPath ?? ""]: "workspace:*"
1610
+ }
1611
+ };
1612
+ }
1613
+ if (config?.packageManager === "bun") {
1614
+ return {
1615
+ ...json,
1616
+ overrides: {
1617
+ ...json?.overrides,
1618
+ [normalized.importPath ?? ""]: "workspace:*"
1619
+ }
1620
+ };
1612
1621
  }
1613
- }));
1622
+ return {
1623
+ ...json,
1624
+ pnpm: {
1625
+ ...json?.pnpm,
1626
+ overrides: {
1627
+ ...json?.pnpm?.overrides,
1628
+ [normalized.importPath ?? ""]: "workspace:*"
1629
+ }
1630
+ }
1631
+ };
1632
+ });
1614
1633
  }
1615
1634
  addTsConfigPath(tree, normalized.importPath, [
1616
1635
  joinPaths(
@@ -2038,12 +2057,57 @@ import {
2038
2057
  addProjectConfiguration as addProjectConfiguration2,
2039
2058
  formatFiles as formatFiles7,
2040
2059
  generateFiles as generateFiles4,
2060
+ getPackageManagerCommand as getPackageManagerCommand2,
2041
2061
  joinPathFragments as joinPathFragments5,
2042
2062
  updateJson as updateJson2
2043
2063
  } from "@nx/devkit";
2044
2064
  import * as path2 from "node:path";
2065
+
2066
+ // ../workspace-tools/src/utils/lock-file.ts
2067
+ import {
2068
+ output,
2069
+ readJsonFile as readJsonFile2,
2070
+ workspaceRoot
2071
+ } from "@nx/devkit";
2072
+ import { existsSync as existsSync5 } from "node:fs";
2073
+ import { join } from "node:path";
2074
+ import {
2075
+ getNpmLockfileDependencies,
2076
+ getNpmLockfileNodes
2077
+ } from "nx/src/plugins/js/lock-file/npm-parser";
2078
+ import {
2079
+ getPnpmLockfileDependencies,
2080
+ getPnpmLockfileNodes
2081
+ } from "nx/src/plugins/js/lock-file/pnpm-parser";
2082
+ import {
2083
+ getYarnLockfileDependencies,
2084
+ getYarnLockfileNodes
2085
+ } from "nx/src/plugins/js/lock-file/yarn-parser";
2086
+ var YARN_LOCK_FILE = "yarn.lock";
2087
+ var NPM_LOCK_FILE = "package-lock.json";
2088
+ var PNPM_LOCK_FILE = "pnpm-lock.yaml";
2089
+ var BUN_LOCK_FILE = "bun.lock";
2090
+ var YARN_LOCK_PATH = join(workspaceRoot, YARN_LOCK_FILE);
2091
+ var NPM_LOCK_PATH = join(workspaceRoot, NPM_LOCK_FILE);
2092
+ var PNPM_LOCK_PATH = join(workspaceRoot, PNPM_LOCK_FILE);
2093
+ var BUN_LOCK_PATH = join(workspaceRoot, BUN_LOCK_FILE);
2094
+ var LOCK_FILE_BY_PACKAGE_MANAGER = {
2095
+ npm: "package-lock.json",
2096
+ yarn: "yarn.lock",
2097
+ pnpm: "pnpm-lock.yaml",
2098
+ bun: "bun.lock"
2099
+ };
2100
+ function getLockFileName(packageManager) {
2101
+ return LOCK_FILE_BY_PACKAGE_MANAGER[packageManager];
2102
+ }
2103
+
2104
+ // ../workspace-tools/src/generators/preset/generator.ts
2045
2105
  async function presetGeneratorFn(tree, options) {
2046
2106
  const projectRoot = ".";
2107
+ const packageManager = options.packageManager ?? "pnpm";
2108
+ const packageManagerVersion = packageManagerVersions[packageManager];
2109
+ const pmc = getPackageManagerCommand2(packageManager);
2110
+ const lockFileName = getLockFileName(packageManager);
2047
2111
  options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
2048
2112
  options.namespace ??= options.organization;
2049
2113
  addProjectConfiguration2(tree, `@${options.namespace}/${options.name}`, {
@@ -2111,11 +2175,6 @@ async function presetGeneratorFn(tree, options) {
2111
2175
  type: "github",
2112
2176
  url: `${options.repositoryUrl}.git`
2113
2177
  };
2114
- json.packageManager ??= "pnpm@10.3.0";
2115
- json.engines ??= {
2116
- node: ">=20.11.0",
2117
- pnpm: ">=10.3.0"
2118
- };
2119
2178
  json.prettier = "@storm-software/prettier/config.json";
2120
2179
  json.nx ??= {
2121
2180
  includedScripts: [
@@ -2132,14 +2191,14 @@ async function presetGeneratorFn(tree, options) {
2132
2191
  "release"
2133
2192
  ]
2134
2193
  };
2135
- json.scripts.adr = "pnpm log4brains adr new";
2136
- json.scripts["adr-preview"] = "pnpm log4brains preview";
2137
- json.scripts.prepare = "pnpm add lefthook -w && pnpm lefthook install";
2138
- json.scripts.preinstall = "npx -y only-allow pnpm";
2139
- json.scripts["install-csb"] = "corepack enable && pnpm install --no-frozen-lockfile";
2194
+ json.scripts.adr = pmc.run("log4brains", "adr new");
2195
+ json.scripts["adr-preview"] = pmc.run("log4brains", "preview");
2196
+ json.scripts.prepare = `${pmc.addDev} lefthook && ${packageManager} lefthook install`;
2197
+ json.scripts.preinstall = `npx -y only-allow ${packageManager}`;
2198
+ json.scripts["install-csb"] = packageManager === "bun" ? "bun install" : `corepack enable && ${pmc.install}`;
2140
2199
  json.scripts.clean = "rimraf dist && rimraf --glob packages/**/dist && rimraf --glob tools/**/dist && rimraf --glob docs/**/dist && rimraf --glob apps/**/dist && rimraf --glob libs/**/dist";
2141
- json.scripts.nuke = "nx clear-cache && rimraf .nx/cache && rimraf .nx/workspace-data && pnpm clean && rimraf pnpm-lock.yaml && rimraf --glob packages/**/node_modules && rimraf --glob tools/**/node_modules && rimraf node_modules";
2142
- json.scripts.prebuild = "pnpm clean";
2200
+ json.scripts.nuke = `nx clear-cache && rimraf .nx/cache && rimraf .nx/workspace-data && ${packageManager} clean && rimraf ${lockFileName} && rimraf --glob packages/**/node_modules && rimraf --glob tools/**/node_modules && rimraf node_modules`;
2201
+ json.scripts.prebuild = `${packageManager} clean`;
2143
2202
  json.scripts.build = "nx affected -t build --parallel=5";
2144
2203
  json.scripts["build-all"] = "nx run-many -t build --all --parallel=5";
2145
2204
  json.scripts["build-prod"] = "nx run-many -t build --all --prod --parallel=5";
@@ -2154,45 +2213,53 @@ async function presetGeneratorFn(tree, options) {
2154
2213
  }
2155
2214
  json.scripts.nx = "nx";
2156
2215
  json.scripts.graph = "nx graph";
2157
- json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
2158
2216
  if (options.includeApps) {
2159
2217
  json.scripts.start = "nx serve";
2160
- json.scripts.storybook = "pnpm storybook dev -p 6006";
2218
+ json.scripts.storybook = pmc.run("storybook", "dev -p 6006");
2161
2219
  }
2162
2220
  json.scripts.help = "nx help";
2163
2221
  json.scripts["dep-graph"] = "nx dep-graph";
2164
2222
  json.scripts["local-registry"] = `nx local-registry @${options.namespace}/${options.name}`;
2165
2223
  json.scripts.e2e = "nx e2e";
2166
2224
  if (options.includeApps) {
2167
- json.scripts.test = "nx test && pnpm test-storybook";
2168
- json.scripts["test-storybook"] = "pnpm test-storybook";
2225
+ json.scripts.test = `nx test && ${packageManager} test-storybook`;
2226
+ json.scripts["test-storybook"] = `${packageManager} test-storybook`;
2169
2227
  } else {
2170
2228
  json.scripts.test = "nx test";
2171
2229
  }
2172
- json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
2173
- json.scripts.commit = "pnpm storm-git commit";
2174
- json.scripts["api-extractor"] = 'pnpm storm-docs api-extractor --outputPath="docs/api-reference" --clean';
2175
- json.scripts.release = "pnpm storm-git release";
2230
+ json.scripts.commit = pmc.run("storm-git", "commit");
2231
+ json.scripts["api-extractor"] = pmc.run(
2232
+ "storm-docs",
2233
+ 'api-extractor --outputPath="docs/api-reference" --clean'
2234
+ );
2235
+ json.scripts.release = pmc.run("storm-git", "release");
2176
2236
  json.scripts.format = "nx format:write";
2177
- json.scripts["format-sherif"] = "pnpm exec sherif -f -i typescript -i react -i react-dom";
2178
- json.scripts["format-toml"] = 'pnpm exec taplo format --config="./node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="./node_modules/.cache/storm/taplo"';
2179
- json.scripts["format-readme"] = 'pnpm storm-git readme --templates="tools/readme-templates"';
2180
- json.scripts["format-prettier"] = "pnpm exec prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index";
2181
- json.scripts.lint = "pnpm storm-lint all --skip-cspell";
2182
- json.scripts["lint-knip"] = "pnpm exec knip";
2183
- json.scripts["lint-sherif"] = "pnpm exec sherif -i typescript -i react -i react-dom";
2184
- json.scripts["lint-ls"] = 'pnpm exec ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"';
2185
- json.packageManager ??= `pnpm@${pnpmVersion}`;
2237
+ json.scripts["format-sherif"] = `${pmc.exec} sherif -f -i typescript -i react -i react-dom`;
2238
+ json.scripts["format-toml"] = `${pmc.exec} taplo format --config="./node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="./node_modules/.cache/storm/taplo"`;
2239
+ json.scripts["format-readme"] = pmc.run(
2240
+ "storm-git",
2241
+ 'readme --templates="tools/readme-templates"'
2242
+ );
2243
+ json.scripts["format-prettier"] = `${pmc.exec} prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index`;
2244
+ json.scripts.lint = pmc.run("storm-lint", "all --skip-cspell");
2245
+ json.scripts["lint-knip"] = `${pmc.exec} knip`;
2246
+ json.scripts["lint-sherif"] = `${pmc.exec} sherif -i typescript -i react -i react-dom`;
2247
+ json.scripts["lint-ls"] = `${pmc.exec} ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"`;
2248
+ json.packageManager ??= `${packageManager}@${packageManagerVersion}`;
2186
2249
  json.engines = {
2187
2250
  node: `>=${nodeVersion}`,
2188
- pnpm: `>=${pnpmVersion}`
2251
+ [packageManager]: `>=${packageManagerVersion}`
2189
2252
  };
2190
2253
  return json;
2191
2254
  });
2192
2255
  generateFiles4(tree, path2.join(__dirname, "files"), projectRoot, {
2193
2256
  ...options,
2257
+ packageManager,
2258
+ packageManagerVersion,
2194
2259
  pnpmVersion,
2195
- nodeVersion
2260
+ nodeVersion,
2261
+ lockFileName,
2262
+ exec: pmc.exec
2196
2263
  });
2197
2264
  await formatFiles7(tree);
2198
2265
  let dependencies = {
@@ -2651,33 +2718,6 @@ import { names as names5 } from "@nx/devkit";
2651
2718
  // ../workspace-tools/src/utils/get-project-configurations.ts
2652
2719
  import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/project-graph/utils/retrieve-workspace-files";
2653
2720
 
2654
- // ../workspace-tools/src/utils/lock-file.ts
2655
- import {
2656
- output,
2657
- readJsonFile as readJsonFile2,
2658
- workspaceRoot
2659
- } from "@nx/devkit";
2660
- import { existsSync as existsSync7 } from "node:fs";
2661
- import { join as join2 } from "node:path";
2662
- import {
2663
- getNpmLockfileDependencies,
2664
- getNpmLockfileNodes
2665
- } from "nx/src/plugins/js/lock-file/npm-parser";
2666
- import {
2667
- getPnpmLockfileDependencies,
2668
- getPnpmLockfileNodes
2669
- } from "nx/src/plugins/js/lock-file/pnpm-parser";
2670
- import {
2671
- getYarnLockfileDependencies,
2672
- getYarnLockfileNodes
2673
- } from "nx/src/plugins/js/lock-file/yarn-parser";
2674
- var YARN_LOCK_FILE = "yarn.lock";
2675
- var NPM_LOCK_FILE = "package-lock.json";
2676
- var PNPM_LOCK_FILE = "pnpm-lock.yaml";
2677
- var YARN_LOCK_PATH = join2(workspaceRoot, YARN_LOCK_FILE);
2678
- var NPM_LOCK_PATH = join2(workspaceRoot, NPM_LOCK_FILE);
2679
- var PNPM_LOCK_PATH = join2(workspaceRoot, PNPM_LOCK_FILE);
2680
-
2681
2721
  // ../workspace-tools/config/recommended.json
2682
2722
  var recommended_default = {
2683
2723
  $schema: "https://cdn.jsdelivr.net/npm/nx/schemas/nx-schema.json",
@@ -2686,15 +2726,12 @@ var recommended_default = {
2686
2726
  allProjectFiles: ["sharedGlobals", "{projectRoot}/**/*"],
2687
2727
  default: ["sharedGlobals", "{projectRoot}/**/*"],
2688
2728
  sharedGlobals: [
2689
- "{workspaceRoot}/.github/workflows/*.yml",
2690
- "{workspaceRoot}/assets/**/*",
2691
2729
  "{workspaceRoot}/tsconfig.json",
2692
- "{workspaceRoot}/tsconfig.base.json",
2730
+ "{workspaceRoot}/tsconfig.*.json",
2693
2731
  "{workspaceRoot}/.npm@(rc|ignore)",
2694
2732
  "{workspaceRoot}/package.json",
2695
2733
  "{workspaceRoot}/{pnpm-workspace,pnpm-lock,package-lock,yarn-lock}.@(yaml|yml)",
2696
- "{workspaceRoot}/bun.lockb",
2697
- "{workspaceRoot}/LICENSE",
2734
+ "{workspaceRoot}/bun.lock{,b}",
2698
2735
  "{workspaceRoot}/.git@(attributes|ignore)",
2699
2736
  "{workspaceRoot}/{nx.json,.nxignore}",
2700
2737
  "{workspaceRoot}/storm-workspace{,.*}.@(json|yaml|toml)",
@@ -2702,7 +2739,6 @@ var recommended_default = {
2702
2739
  "{workspaceRoot}/storm-workspace.config.[jt]s",
2703
2740
  "{workspaceRoot}/.storm-workspace/config{,.*}.[jt]s",
2704
2741
  "{workspaceRoot}/devenv.@(lock|nix|yaml)",
2705
- "{workspaceRoot}/{flake,shell,devShell}.nix",
2706
2742
  "{workspaceRoot}/.envrc",
2707
2743
  "{workspaceRoot}/.env{,.local,.*}"
2708
2744
  ],
@@ -2809,14 +2845,12 @@ var recommended_default = {
2809
2845
  "{workspaceRoot}/Cargo.lock",
2810
2846
  "{workspaceRoot}/.cargo/config.toml",
2811
2847
  "{workspaceRoot}/rust-toolchain",
2812
- "{workspaceRoot}/rustfmt.toml",
2813
- "{workspaceRoot}/deny.toml",
2814
2848
  "{projectRoot}/Cargo.toml",
2815
2849
  "{projectRoot}/.cargo/config.toml",
2816
2850
  {
2817
2851
  runtime: "node -p '`${process.platform}_${process.arch}`'"
2818
2852
  },
2819
- "{projectRoot}/{project.json,CHANGELOG.md}",
2853
+ "{projectRoot}/project.json",
2820
2854
  "{projectRoot}/.env{,.local}",
2821
2855
  "{projectRoot}/**/*.rs",
2822
2856
  "{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
@@ -2835,14 +2869,22 @@ var recommended_default = {
2835
2869
  "{projectRoot}/package.json",
2836
2870
  "{projectRoot}/tsconfig.json",
2837
2871
  "{projectRoot}/tsconfig.*.json",
2838
- "{projectRoot}/{project.json,README.md,CHANGELOG.md}",
2872
+ "{projectRoot}/project.json",
2839
2873
  "{projectRoot}/.env{,.*}",
2840
- "{projectRoot}/docs/**/*",
2841
- "{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
2874
+ "!{projectRoot}/docs/**/*",
2875
+ "!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
2842
2876
  "{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
2843
2877
  "{projectRoot}/src/**/*.@(cts|mts|ts|tsx|graphql|gql|js|cjs|mjs|jsx|json|jsonc|yaml|yml|toml|md|mdx)",
2844
2878
  "{projectRoot}/{build,tsup,tsdown,vite,contentlayer,powerlines,shell-shock,earthquake}.*.[jt]s?(x)",
2845
2879
  "{projectRoot}/{bin,tools,helpers,scripts}/**/*"
2880
+ ],
2881
+ ci: [
2882
+ "sharedGlobals",
2883
+ "{workspaceRoot}/.github/workflows/*.yml",
2884
+ "{workspaceRoot}/assets/**/*",
2885
+ "{workspaceRoot}/devenv.@(lock|nix|yaml)",
2886
+ "{workspaceRoot}/.devenv{,.flake.nix}",
2887
+ "{workspaceRoot}/.direnv"
2846
2888
  ]
2847
2889
  },
2848
2890
  targetDefaults: {
@@ -2853,8 +2895,8 @@ var recommended_default = {
2853
2895
  executor: "nx:run-commands",
2854
2896
  options: {
2855
2897
  commands: [
2856
- "pnpm exec rimraf --glob {projectRoot}/dist",
2857
- "pnpm exec rimraf dist/{projectRoot}"
2898
+ "pnpm rimraf --glob {projectRoot}/dist",
2899
+ "pnpm rimraf dist/{projectRoot}"
2858
2900
  ]
2859
2901
  }
2860
2902
  },
@@ -2874,7 +2916,7 @@ var recommended_default = {
2874
2916
  version: {
2875
2917
  currentVersionResolver: "git-tag",
2876
2918
  specifierSource: "conventional-commits",
2877
- groupPreVersionCommand: "pnpm build",
2919
+ groupPreVersionCommand: "build",
2878
2920
  manifestRootsToUpdate: [
2879
2921
  "{projectRoot}",
2880
2922
  {
@@ -2927,7 +2969,7 @@ import {
2927
2969
  readJsonFile as readJsonFile3
2928
2970
  } from "@nx/devkit";
2929
2971
  import defu3 from "defu";
2930
- import { existsSync as existsSync8 } from "node:fs";
2972
+ import { existsSync as existsSync6 } from "node:fs";
2931
2973
  import { dirname as dirname2, join as join3 } from "node:path";
2932
2974
 
2933
2975
  // ../workspace-tools/src/utils/typia-transform.ts