@storm-software/projen 0.21.284 → 0.21.287

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.
@@ -2652,59 +2652,10 @@ var executor_default7 = withRunExecutor(
2652
2652
 
2653
2653
  // ../workspace-tools/src/executors/npm-publish/executor.ts
2654
2654
  init_esm_shims();
2655
-
2656
- // ../pnpm-tools/src/index.ts
2657
- init_esm_shims();
2658
-
2659
- // ../pnpm-tools/src/helpers/index.ts
2660
- init_esm_shims();
2661
-
2662
- // ../pnpm-tools/src/helpers/catalog.ts
2663
- init_esm_shims();
2664
-
2665
- // ../npm-tools/src/constants.ts
2666
- init_esm_shims();
2667
-
2668
- // ../npm-tools/src/helpers/get-version.ts
2669
- init_esm_shims();
2670
- import { exec as exec2 } from "node:child_process";
2671
- import { valid } from "semver";
2672
- import stripAnsi from "strip-ansi";
2673
-
2674
- // ../npm-tools/src/helpers/get-registry.ts
2675
- init_esm_shims();
2676
- import { exec } from "node:child_process";
2677
-
2678
- // ../pnpm-tools/src/helpers/catalog.ts
2679
- import { coerce, gt, valid as valid2 } from "semver";
2680
-
2681
- // ../pnpm-tools/src/helpers/format.ts
2682
- init_esm_shims();
2683
-
2684
- // ../pnpm-tools/src/helpers/pnpm-workspace.ts
2685
- init_esm_shims();
2686
- import { existsSync as existsSync4 } from "node:fs";
2687
- import { readFile as readFile2, writeFile } from "node:fs/promises";
2688
- import { parse, stringify } from "yaml";
2689
-
2690
- // ../pnpm-tools/src/helpers/replace-deps-aliases.ts
2691
- init_esm_shims();
2692
- import {
2693
- createProjectGraphAsync,
2694
- readCachedProjectGraph
2695
- } from "@nx/devkit";
2696
- import { existsSync as existsSync5 } from "node:fs";
2697
- import { readFile as readFile3, writeFile as writeFile2 } from "node:fs/promises";
2698
- import { format } from "prettier";
2699
-
2700
- // ../pnpm-tools/src/types.ts
2701
- init_esm_shims();
2702
-
2703
- // ../workspace-tools/src/executors/npm-publish/executor.ts
2704
2655
  import { createJiti as createJiti4 } from "jiti";
2705
2656
  import { execSync as execSync3 } from "node:child_process";
2706
- import { readFile as readFile5, writeFile as writeFile4 } from "node:fs/promises";
2707
- import { format as format3 } from "prettier";
2657
+ import { readFile as readFile3, writeFile as writeFile2 } from "node:fs/promises";
2658
+ import { format as format2 } from "prettier";
2708
2659
 
2709
2660
  // ../workspace-tools/src/utils/github.ts
2710
2661
  init_esm_shims();
@@ -2717,10 +2668,10 @@ import {
2717
2668
  readJsonFile
2718
2669
  } from "@nx/devkit";
2719
2670
  import { execFileSync } from "child_process";
2720
- import { existsSync as existsSync6 } from "node:fs";
2721
- import { readFile as readFile4, writeFile as writeFile3 } from "node:fs/promises";
2671
+ import { existsSync as existsSync4 } from "node:fs";
2672
+ import { readFile as readFile2, writeFile } from "node:fs/promises";
2722
2673
  import { dirname, resolve } from "path";
2723
- import { format as format2 } from "prettier";
2674
+ import { format } from "prettier";
2724
2675
 
2725
2676
  // ../workspace-tools/src/utils/project-tags.ts
2726
2677
  init_esm_shims();
@@ -2801,6 +2752,13 @@ var addProjectTag = (project, variant, value, options = {
2801
2752
  }
2802
2753
  };
2803
2754
 
2755
+ // ../workspace-tools/src/utils/package-manager.ts
2756
+ init_esm_shims();
2757
+ import {
2758
+ detectPackageManager,
2759
+ getPackageManagerCommand
2760
+ } from "@nx/devkit";
2761
+
2804
2762
  // ../workspace-tools/src/executors/npm-publish/executor.ts
2805
2763
  var LARGE_BUFFER2 = 1024 * 1e6;
2806
2764
 
@@ -2852,7 +2810,7 @@ init_esm_shims();
2852
2810
  // ../tsdown/src/build.ts
2853
2811
  init_esm_shims();
2854
2812
  import {
2855
- createProjectGraphAsync as createProjectGraphAsync3,
2813
+ createProjectGraphAsync as createProjectGraphAsync2,
2856
2814
  readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2,
2857
2815
  writeJsonFile
2858
2816
  } from "@nx/devkit";
@@ -2898,7 +2856,7 @@ init_esm_shims();
2898
2856
  init_esm_shims();
2899
2857
  import { CopyAssetsHandler } from "@nx/js/internal";
2900
2858
  import { glob } from "glob";
2901
- import { readFile as readFile6, writeFile as writeFile5 } from "node:fs/promises";
2859
+ import { readFile as readFile4, writeFile as writeFile3 } from "node:fs/promises";
2902
2860
  var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
2903
2861
  const pendingAssets = Array.from(assets ?? []);
2904
2862
  pendingAssets.push({
@@ -2954,11 +2912,11 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
2954
2912
  ]);
2955
2913
  await Promise.allSettled(
2956
2914
  files.map(
2957
- async (file) => writeFile5(
2915
+ async (file) => writeFile3(
2958
2916
  file,
2959
2917
  `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
2960
2918
 
2961
- ${await readFile6(file, "utf8")}
2919
+ ${await readFile4(file, "utf8")}
2962
2920
 
2963
2921
  ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `// ${footer}` : ""}`
2964
2922
  )
@@ -2971,20 +2929,20 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
2971
2929
  init_esm_shims();
2972
2930
  import { calculateProjectBuildableDependencies } from "@nx/js/internal";
2973
2931
  import { Glob } from "glob";
2974
- import { existsSync as existsSync7, readFileSync as readFileSync3 } from "node:fs";
2975
- import { readFile as readFile7 } from "node:fs/promises";
2932
+ import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
2933
+ import { readFile as readFile5 } from "node:fs/promises";
2976
2934
  import {
2977
- createProjectGraphAsync as createProjectGraphAsync2,
2978
- readCachedProjectGraph as readCachedProjectGraph2,
2935
+ createProjectGraphAsync,
2936
+ readCachedProjectGraph,
2979
2937
  readProjectsConfigurationFromProjectGraph
2980
2938
  } from "nx/src/project-graph/project-graph";
2981
2939
  var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, packageJson) => {
2982
2940
  let projectGraph;
2983
2941
  try {
2984
- projectGraph = readCachedProjectGraph2();
2942
+ projectGraph = readCachedProjectGraph();
2985
2943
  } catch {
2986
- await createProjectGraphAsync2();
2987
- projectGraph = readCachedProjectGraph2();
2944
+ await createProjectGraphAsync();
2945
+ projectGraph = readCachedProjectGraph();
2988
2946
  }
2989
2947
  if (!projectGraph) {
2990
2948
  throw new Error(
@@ -3011,8 +2969,8 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
3011
2969
  projectNode.data.root,
3012
2970
  "package.json"
3013
2971
  );
3014
- if (existsSync7(projectPackageJsonPath)) {
3015
- const projectPackageJsonContent = await readFile7(
2972
+ if (existsSync5(projectPackageJsonPath)) {
2973
+ const projectPackageJsonContent = await readFile5(
3016
2974
  projectPackageJsonPath,
3017
2975
  "utf8"
3018
2976
  );
@@ -3027,7 +2985,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
3027
2985
  writeTrace(
3028
2986
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
3029
2987
  );
3030
- const projectJsonFile = await readFile7(
2988
+ const projectJsonFile = await readFile5(
3031
2989
  joinPaths(projectRoot, "project.json"),
3032
2990
  "utf8"
3033
2991
  );
@@ -3046,7 +3004,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
3046
3004
  projectConfigurations.projects[dep].root,
3047
3005
  "package.json"
3048
3006
  );
3049
- if (existsSync7(depPackageJsonPath)) {
3007
+ if (existsSync5(depPackageJsonPath)) {
3050
3008
  const depPackageJsonContent = readFileSync3(
3051
3009
  depPackageJsonPath,
3052
3010
  "utf8"
@@ -3078,7 +3036,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
3078
3036
  };
3079
3037
  var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
3080
3038
  const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
3081
- const workspacePackageJsonContent = await readFile7(
3039
+ const workspacePackageJsonContent = await readFile5(
3082
3040
  joinPaths(workspaceRoot2, "package.json"),
3083
3041
  "utf8"
3084
3042
  );
@@ -3169,8 +3127,8 @@ init_esm_shims();
3169
3127
 
3170
3128
  // ../build-tools/src/utilities/read-nx-config.ts
3171
3129
  init_esm_shims();
3172
- import { existsSync as existsSync8 } from "node:fs";
3173
- import { readFile as readFile8 } from "node:fs/promises";
3130
+ import { existsSync as existsSync6 } from "node:fs";
3131
+ import { readFile as readFile6 } from "node:fs/promises";
3174
3132
 
3175
3133
  // ../build-tools/src/utilities/task-graph.ts
3176
3134
  init_esm_shims();
@@ -3181,7 +3139,7 @@ import {
3181
3139
 
3182
3140
  // ../tsdown/src/build.ts
3183
3141
  import defu4 from "defu";
3184
- import { existsSync as existsSync9 } from "node:fs";
3142
+ import { existsSync as existsSync7 } from "node:fs";
3185
3143
  import hf from "node:fs/promises";
3186
3144
  import { build as tsdown } from "tsdown";
3187
3145
 
@@ -3210,15 +3168,15 @@ function getDefaultOptions(config) {
3210
3168
  ...config
3211
3169
  };
3212
3170
  }
3213
- function toTSDownFormat(format4) {
3214
- if (!format4 || Array.isArray(format4) && format4.length === 0) {
3171
+ function toTSDownFormat(format3) {
3172
+ if (!format3 || Array.isArray(format3) && format3.length === 0) {
3215
3173
  return ["cjs", "es"];
3216
- } else if (format4 === "esm") {
3174
+ } else if (format3 === "esm") {
3217
3175
  return "es";
3218
- } else if (Array.isArray(format4)) {
3219
- return format4.map((f) => f === "esm" ? "es" : f);
3176
+ } else if (Array.isArray(format3)) {
3177
+ return format3.map((f) => f === "esm" ? "es" : f);
3220
3178
  }
3221
- return format4;
3179
+ return format3;
3222
3180
  }
3223
3181
 
3224
3182
  // ../tsdown/src/build.ts
@@ -3233,7 +3191,7 @@ var resolveOptions = async (userOptions) => {
3233
3191
  });
3234
3192
  writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
3235
3193
  const stopwatch = getStopwatch("Build options resolution");
3236
- const projectGraph = await createProjectGraphAsync3({
3194
+ const projectGraph = await createProjectGraphAsync2({
3237
3195
  exitOnError: true
3238
3196
  });
3239
3197
  const projectJsonPath = joinPaths(
@@ -3241,7 +3199,7 @@ var resolveOptions = async (userOptions) => {
3241
3199
  options.projectRoot,
3242
3200
  "project.json"
3243
3201
  );
3244
- if (!existsSync9(projectJsonPath)) {
3202
+ if (!existsSync7(projectJsonPath)) {
3245
3203
  throw new Error("Cannot find project.json configuration");
3246
3204
  }
3247
3205
  const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
@@ -3258,7 +3216,7 @@ var resolveOptions = async (userOptions) => {
3258
3216
  options.projectRoot,
3259
3217
  "package.json"
3260
3218
  );
3261
- if (!existsSync9(packageJsonPath)) {
3219
+ if (!existsSync7(packageJsonPath)) {
3262
3220
  throw new Error("Cannot find package.json configuration");
3263
3221
  }
3264
3222
  const debug = options.debug ?? (options.mode || workspaceConfig.mode) === "development";
@@ -3303,11 +3261,11 @@ var resolveOptions = async (userOptions) => {
3303
3261
  return result;
3304
3262
  };
3305
3263
  async function generatePackageJson(options) {
3306
- if (options.generatePackageJson !== false && existsSync9(joinPaths(options.projectRoot, "package.json"))) {
3264
+ if (options.generatePackageJson !== false && existsSync7(joinPaths(options.projectRoot, "package.json"))) {
3307
3265
  writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
3308
3266
  const stopwatch = getStopwatch("Write package.json file");
3309
3267
  const packageJsonPath = joinPaths(options.projectRoot, "project.json");
3310
- if (!existsSync9(packageJsonPath)) {
3268
+ if (!existsSync7(packageJsonPath)) {
3311
3269
  throw new Error("Cannot find package.json configuration");
3312
3270
  }
3313
3271
  const packageJsonFile = await hf.readFile(
@@ -3761,7 +3719,16 @@ init_esm_shims();
3761
3719
  var typesNodeVersion = "20.9.0";
3762
3720
  var nxVersion = "^18.0.4";
3763
3721
  var nodeVersion = "20.11.0";
3764
- var pnpmVersion = "8.10.2";
3722
+ var pnpmVersion = "10.3.0";
3723
+ var npmVersion = "10.9.0";
3724
+ var yarnVersion = "4.6.0";
3725
+ var bunVersion = "1.2.0";
3726
+ var packageManagerVersions = {
3727
+ npm: npmVersion,
3728
+ yarn: yarnVersion,
3729
+ pnpm: pnpmVersion,
3730
+ bun: bunVersion
3731
+ };
3765
3732
 
3766
3733
  // ../workspace-tools/src/base/typescript-library-generator.ts
3767
3734
  async function typeScriptLibraryGeneratorFn(tree, options, config) {
@@ -3892,16 +3859,45 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
3892
3859
  });
3893
3860
  }
3894
3861
  if (tree.exists("package.json") && normalized.importPath) {
3895
- updateJson(tree, "package.json", (json) => ({
3896
- ...json,
3897
- pnpm: {
3898
- ...json?.pnpm,
3899
- overrides: {
3900
- ...json?.pnpm?.overrides,
3901
- [normalized.importPath ?? ""]: "workspace:*"
3902
- }
3862
+ updateJson(tree, "package.json", (json) => {
3863
+ if (config?.packageManager === "yarn") {
3864
+ return {
3865
+ ...json,
3866
+ resolutions: {
3867
+ ...json?.resolutions,
3868
+ [normalized.importPath ?? ""]: "workspace:*"
3869
+ }
3870
+ };
3871
+ }
3872
+ if (config?.packageManager === "npm") {
3873
+ return {
3874
+ ...json,
3875
+ overrides: {
3876
+ ...json?.overrides,
3877
+ [normalized.importPath ?? ""]: "workspace:*"
3878
+ }
3879
+ };
3880
+ }
3881
+ if (config?.packageManager === "bun") {
3882
+ return {
3883
+ ...json,
3884
+ overrides: {
3885
+ ...json?.overrides,
3886
+ [normalized.importPath ?? ""]: "workspace:*"
3887
+ }
3888
+ };
3903
3889
  }
3904
- }));
3890
+ return {
3891
+ ...json,
3892
+ pnpm: {
3893
+ ...json?.pnpm,
3894
+ overrides: {
3895
+ ...json?.pnpm?.overrides,
3896
+ [normalized.importPath ?? ""]: "workspace:*"
3897
+ }
3898
+ }
3899
+ };
3900
+ });
3905
3901
  }
3906
3902
  addTsConfigPath(tree, normalized.importPath, [
3907
3903
  joinPaths(
@@ -4334,12 +4330,58 @@ import {
4334
4330
  addProjectConfiguration as addProjectConfiguration2,
4335
4331
  formatFiles as formatFiles7,
4336
4332
  generateFiles as generateFiles4,
4333
+ getPackageManagerCommand as getPackageManagerCommand2,
4337
4334
  joinPathFragments as joinPathFragments5,
4338
4335
  updateJson as updateJson2
4339
4336
  } from "@nx/devkit";
4340
4337
  import * as path2 from "node:path";
4338
+
4339
+ // ../workspace-tools/src/utils/lock-file.ts
4340
+ init_esm_shims();
4341
+ import {
4342
+ output,
4343
+ readJsonFile as readJsonFile2,
4344
+ workspaceRoot
4345
+ } from "@nx/devkit";
4346
+ import { existsSync as existsSync8 } from "node:fs";
4347
+ import { join as join3 } from "node:path";
4348
+ import {
4349
+ getNpmLockfileDependencies,
4350
+ getNpmLockfileNodes
4351
+ } from "nx/src/plugins/js/lock-file/npm-parser";
4352
+ import {
4353
+ getPnpmLockfileDependencies,
4354
+ getPnpmLockfileNodes
4355
+ } from "nx/src/plugins/js/lock-file/pnpm-parser";
4356
+ import {
4357
+ getYarnLockfileDependencies,
4358
+ getYarnLockfileNodes
4359
+ } from "nx/src/plugins/js/lock-file/yarn-parser";
4360
+ var YARN_LOCK_FILE = "yarn.lock";
4361
+ var NPM_LOCK_FILE = "package-lock.json";
4362
+ var PNPM_LOCK_FILE = "pnpm-lock.yaml";
4363
+ var BUN_LOCK_FILE = "bun.lock";
4364
+ var YARN_LOCK_PATH = join3(workspaceRoot, YARN_LOCK_FILE);
4365
+ var NPM_LOCK_PATH = join3(workspaceRoot, NPM_LOCK_FILE);
4366
+ var PNPM_LOCK_PATH = join3(workspaceRoot, PNPM_LOCK_FILE);
4367
+ var BUN_LOCK_PATH = join3(workspaceRoot, BUN_LOCK_FILE);
4368
+ var LOCK_FILE_BY_PACKAGE_MANAGER = {
4369
+ npm: "package-lock.json",
4370
+ yarn: "yarn.lock",
4371
+ pnpm: "pnpm-lock.yaml",
4372
+ bun: "bun.lock"
4373
+ };
4374
+ function getLockFileName(packageManager) {
4375
+ return LOCK_FILE_BY_PACKAGE_MANAGER[packageManager];
4376
+ }
4377
+
4378
+ // ../workspace-tools/src/generators/preset/generator.ts
4341
4379
  async function presetGeneratorFn(tree, options) {
4342
4380
  const projectRoot = ".";
4381
+ const packageManager = options.packageManager ?? "pnpm";
4382
+ const packageManagerVersion = packageManagerVersions[packageManager];
4383
+ const pmc = getPackageManagerCommand2(packageManager);
4384
+ const lockFileName = getLockFileName(packageManager);
4343
4385
  options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
4344
4386
  options.namespace ??= options.organization;
4345
4387
  addProjectConfiguration2(tree, `@${options.namespace}/${options.name}`, {
@@ -4407,11 +4449,6 @@ async function presetGeneratorFn(tree, options) {
4407
4449
  type: "github",
4408
4450
  url: `${options.repositoryUrl}.git`
4409
4451
  };
4410
- json.packageManager ??= "pnpm@10.3.0";
4411
- json.engines ??= {
4412
- node: ">=20.11.0",
4413
- pnpm: ">=10.3.0"
4414
- };
4415
4452
  json.prettier = "@storm-software/prettier/config.json";
4416
4453
  json.nx ??= {
4417
4454
  includedScripts: [
@@ -4428,14 +4465,14 @@ async function presetGeneratorFn(tree, options) {
4428
4465
  "release"
4429
4466
  ]
4430
4467
  };
4431
- json.scripts.adr = "pnpm log4brains adr new";
4432
- json.scripts["adr-preview"] = "pnpm log4brains preview";
4433
- json.scripts.prepare = "pnpm add lefthook -w && pnpm lefthook install";
4434
- json.scripts.preinstall = "npx -y only-allow pnpm";
4435
- json.scripts["install-csb"] = "corepack enable && pnpm install --no-frozen-lockfile";
4468
+ json.scripts.adr = pmc.run("log4brains", "adr new");
4469
+ json.scripts["adr-preview"] = pmc.run("log4brains", "preview");
4470
+ json.scripts.prepare = `${pmc.addDev} lefthook && ${packageManager} lefthook install`;
4471
+ json.scripts.preinstall = `npx -y only-allow ${packageManager}`;
4472
+ json.scripts["install-csb"] = packageManager === "bun" ? "bun install" : `corepack enable && ${pmc.install}`;
4436
4473
  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";
4437
- 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";
4438
- json.scripts.prebuild = "pnpm clean";
4474
+ 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`;
4475
+ json.scripts.prebuild = `${packageManager} clean`;
4439
4476
  json.scripts.build = "nx affected -t build --parallel=5";
4440
4477
  json.scripts["build-all"] = "nx run-many -t build --all --parallel=5";
4441
4478
  json.scripts["build-prod"] = "nx run-many -t build --all --prod --parallel=5";
@@ -4450,45 +4487,53 @@ async function presetGeneratorFn(tree, options) {
4450
4487
  }
4451
4488
  json.scripts.nx = "nx";
4452
4489
  json.scripts.graph = "nx graph";
4453
- json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
4454
4490
  if (options.includeApps) {
4455
4491
  json.scripts.start = "nx serve";
4456
- json.scripts.storybook = "pnpm storybook dev -p 6006";
4492
+ json.scripts.storybook = pmc.run("storybook", "dev -p 6006");
4457
4493
  }
4458
4494
  json.scripts.help = "nx help";
4459
4495
  json.scripts["dep-graph"] = "nx dep-graph";
4460
4496
  json.scripts["local-registry"] = `nx local-registry @${options.namespace}/${options.name}`;
4461
4497
  json.scripts.e2e = "nx e2e";
4462
4498
  if (options.includeApps) {
4463
- json.scripts.test = "nx test && pnpm test-storybook";
4464
- json.scripts["test-storybook"] = "pnpm test-storybook";
4499
+ json.scripts.test = `nx test && ${packageManager} test-storybook`;
4500
+ json.scripts["test-storybook"] = `${packageManager} test-storybook`;
4465
4501
  } else {
4466
4502
  json.scripts.test = "nx test";
4467
4503
  }
4468
- json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
4469
- json.scripts.commit = "pnpm storm-git commit";
4470
- json.scripts["api-extractor"] = 'pnpm storm-docs api-extractor --outputPath="docs/api-reference" --clean';
4471
- json.scripts.release = "pnpm storm-git release";
4504
+ json.scripts.commit = pmc.run("storm-git", "commit");
4505
+ json.scripts["api-extractor"] = pmc.run(
4506
+ "storm-docs",
4507
+ 'api-extractor --outputPath="docs/api-reference" --clean'
4508
+ );
4509
+ json.scripts.release = pmc.run("storm-git", "release");
4472
4510
  json.scripts.format = "nx format:write";
4473
- json.scripts["format-sherif"] = "pnpm exec sherif -f -i typescript -i react -i react-dom";
4474
- 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"';
4475
- json.scripts["format-readme"] = 'pnpm storm-git readme --templates="tools/readme-templates"';
4476
- json.scripts["format-prettier"] = "pnpm exec prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index";
4477
- json.scripts.lint = "pnpm storm-lint all --skip-cspell";
4478
- json.scripts["lint-knip"] = "pnpm exec knip";
4479
- json.scripts["lint-sherif"] = "pnpm exec sherif -i typescript -i react -i react-dom";
4480
- json.scripts["lint-ls"] = 'pnpm exec ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"';
4481
- json.packageManager ??= `pnpm@${pnpmVersion}`;
4511
+ json.scripts["format-sherif"] = `${pmc.exec} sherif -f -i typescript -i react -i react-dom`;
4512
+ 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"`;
4513
+ json.scripts["format-readme"] = pmc.run(
4514
+ "storm-git",
4515
+ 'readme --templates="tools/readme-templates"'
4516
+ );
4517
+ json.scripts["format-prettier"] = `${pmc.exec} prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index`;
4518
+ json.scripts.lint = pmc.run("storm-lint", "all --skip-cspell");
4519
+ json.scripts["lint-knip"] = `${pmc.exec} knip`;
4520
+ json.scripts["lint-sherif"] = `${pmc.exec} sherif -i typescript -i react -i react-dom`;
4521
+ json.scripts["lint-ls"] = `${pmc.exec} ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"`;
4522
+ json.packageManager ??= `${packageManager}@${packageManagerVersion}`;
4482
4523
  json.engines = {
4483
4524
  node: `>=${nodeVersion}`,
4484
- pnpm: `>=${pnpmVersion}`
4525
+ [packageManager]: `>=${packageManagerVersion}`
4485
4526
  };
4486
4527
  return json;
4487
4528
  });
4488
4529
  generateFiles4(tree, path2.join(__dirname, "files"), projectRoot, {
4489
4530
  ...options,
4531
+ packageManager,
4532
+ packageManagerVersion,
4490
4533
  pnpmVersion,
4491
- nodeVersion
4534
+ nodeVersion,
4535
+ lockFileName,
4536
+ exec: pmc.exec
4492
4537
  });
4493
4538
  await formatFiles7(tree);
4494
4539
  let dependencies = {
@@ -4975,34 +5020,6 @@ import { names as names5 } from "@nx/devkit";
4975
5020
  init_esm_shims();
4976
5021
  import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/project-graph/utils/retrieve-workspace-files";
4977
5022
 
4978
- // ../workspace-tools/src/utils/lock-file.ts
4979
- init_esm_shims();
4980
- import {
4981
- output,
4982
- readJsonFile as readJsonFile2,
4983
- workspaceRoot
4984
- } from "@nx/devkit";
4985
- import { existsSync as existsSync10 } from "node:fs";
4986
- import { join as join4 } from "node:path";
4987
- import {
4988
- getNpmLockfileDependencies,
4989
- getNpmLockfileNodes
4990
- } from "nx/src/plugins/js/lock-file/npm-parser";
4991
- import {
4992
- getPnpmLockfileDependencies,
4993
- getPnpmLockfileNodes
4994
- } from "nx/src/plugins/js/lock-file/pnpm-parser";
4995
- import {
4996
- getYarnLockfileDependencies,
4997
- getYarnLockfileNodes
4998
- } from "nx/src/plugins/js/lock-file/yarn-parser";
4999
- var YARN_LOCK_FILE = "yarn.lock";
5000
- var NPM_LOCK_FILE = "package-lock.json";
5001
- var PNPM_LOCK_FILE = "pnpm-lock.yaml";
5002
- var YARN_LOCK_PATH = join4(workspaceRoot, YARN_LOCK_FILE);
5003
- var NPM_LOCK_PATH = join4(workspaceRoot, NPM_LOCK_FILE);
5004
- var PNPM_LOCK_PATH = join4(workspaceRoot, PNPM_LOCK_FILE);
5005
-
5006
5023
  // ../workspace-tools/src/utils/nx-json.ts
5007
5024
  init_esm_shims();
5008
5025
 
@@ -5014,15 +5031,12 @@ var recommended_default = {
5014
5031
  allProjectFiles: ["sharedGlobals", "{projectRoot}/**/*"],
5015
5032
  default: ["sharedGlobals", "{projectRoot}/**/*"],
5016
5033
  sharedGlobals: [
5017
- "{workspaceRoot}/.github/workflows/*.yml",
5018
- "{workspaceRoot}/assets/**/*",
5019
5034
  "{workspaceRoot}/tsconfig.json",
5020
- "{workspaceRoot}/tsconfig.base.json",
5035
+ "{workspaceRoot}/tsconfig.*.json",
5021
5036
  "{workspaceRoot}/.npm@(rc|ignore)",
5022
5037
  "{workspaceRoot}/package.json",
5023
5038
  "{workspaceRoot}/{pnpm-workspace,pnpm-lock,package-lock,yarn-lock}.@(yaml|yml)",
5024
- "{workspaceRoot}/bun.lockb",
5025
- "{workspaceRoot}/LICENSE",
5039
+ "{workspaceRoot}/bun.lock{,b}",
5026
5040
  "{workspaceRoot}/.git@(attributes|ignore)",
5027
5041
  "{workspaceRoot}/{nx.json,.nxignore}",
5028
5042
  "{workspaceRoot}/storm-workspace{,.*}.@(json|yaml|toml)",
@@ -5030,7 +5044,6 @@ var recommended_default = {
5030
5044
  "{workspaceRoot}/storm-workspace.config.[jt]s",
5031
5045
  "{workspaceRoot}/.storm-workspace/config{,.*}.[jt]s",
5032
5046
  "{workspaceRoot}/devenv.@(lock|nix|yaml)",
5033
- "{workspaceRoot}/{flake,shell,devShell}.nix",
5034
5047
  "{workspaceRoot}/.envrc",
5035
5048
  "{workspaceRoot}/.env{,.local,.*}"
5036
5049
  ],
@@ -5137,14 +5150,12 @@ var recommended_default = {
5137
5150
  "{workspaceRoot}/Cargo.lock",
5138
5151
  "{workspaceRoot}/.cargo/config.toml",
5139
5152
  "{workspaceRoot}/rust-toolchain",
5140
- "{workspaceRoot}/rustfmt.toml",
5141
- "{workspaceRoot}/deny.toml",
5142
5153
  "{projectRoot}/Cargo.toml",
5143
5154
  "{projectRoot}/.cargo/config.toml",
5144
5155
  {
5145
5156
  runtime: "node -p '`${process.platform}_${process.arch}`'"
5146
5157
  },
5147
- "{projectRoot}/{project.json,CHANGELOG.md}",
5158
+ "{projectRoot}/project.json",
5148
5159
  "{projectRoot}/.env{,.local}",
5149
5160
  "{projectRoot}/**/*.rs",
5150
5161
  "{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
@@ -5163,14 +5174,22 @@ var recommended_default = {
5163
5174
  "{projectRoot}/package.json",
5164
5175
  "{projectRoot}/tsconfig.json",
5165
5176
  "{projectRoot}/tsconfig.*.json",
5166
- "{projectRoot}/{project.json,README.md,CHANGELOG.md}",
5177
+ "{projectRoot}/project.json",
5167
5178
  "{projectRoot}/.env{,.*}",
5168
- "{projectRoot}/docs/**/*",
5169
- "{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
5179
+ "!{projectRoot}/docs/**/*",
5180
+ "!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
5170
5181
  "{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
5171
5182
  "{projectRoot}/src/**/*.@(cts|mts|ts|tsx|graphql|gql|js|cjs|mjs|jsx|json|jsonc|yaml|yml|toml|md|mdx)",
5172
5183
  "{projectRoot}/{build,tsup,tsdown,vite,contentlayer,powerlines,shell-shock,earthquake}.*.[jt]s?(x)",
5173
5184
  "{projectRoot}/{bin,tools,helpers,scripts}/**/*"
5185
+ ],
5186
+ ci: [
5187
+ "sharedGlobals",
5188
+ "{workspaceRoot}/.github/workflows/*.yml",
5189
+ "{workspaceRoot}/assets/**/*",
5190
+ "{workspaceRoot}/devenv.@(lock|nix|yaml)",
5191
+ "{workspaceRoot}/.devenv{,.flake.nix}",
5192
+ "{workspaceRoot}/.direnv"
5174
5193
  ]
5175
5194
  },
5176
5195
  targetDefaults: {
@@ -5181,8 +5200,8 @@ var recommended_default = {
5181
5200
  executor: "nx:run-commands",
5182
5201
  options: {
5183
5202
  commands: [
5184
- "pnpm exec rimraf --glob {projectRoot}/dist",
5185
- "pnpm exec rimraf dist/{projectRoot}"
5203
+ "rimraf --glob {projectRoot}/dist",
5204
+ "rimraf dist/{projectRoot}"
5186
5205
  ]
5187
5206
  }
5188
5207
  },
@@ -5202,7 +5221,7 @@ var recommended_default = {
5202
5221
  version: {
5203
5222
  currentVersionResolver: "git-tag",
5204
5223
  specifierSource: "conventional-commits",
5205
- groupPreVersionCommand: "pnpm build",
5224
+ groupPreVersionCommand: "build",
5206
5225
  manifestRootsToUpdate: [
5207
5226
  "{projectRoot}",
5208
5227
  {
@@ -5256,7 +5275,7 @@ import {
5256
5275
  readJsonFile as readJsonFile3
5257
5276
  } from "@nx/devkit";
5258
5277
  import defu6 from "defu";
5259
- import { existsSync as existsSync11 } from "node:fs";
5278
+ import { existsSync as existsSync9 } from "node:fs";
5260
5279
  import { dirname as dirname2, join as join5 } from "node:path";
5261
5280
 
5262
5281
  // ../workspace-tools/src/utils/typia-transform.ts