@storm-software/workspace-tools 1.62.29 → 1.62.31

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## 1.62.31 (2024-03-01)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Enhance collecting compiler options and logging ([a1c4d41f](https://github.com/storm-software/storm-ops/commit/a1c4d41f))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
13
+ ## 1.62.30 (2024-03-01)
14
+
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **workspace-tools:** Update tsup build to use `readConfigFile` function for tsconfig loader ([66186de6](https://github.com/storm-software/storm-ops/commit/66186de6))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.62.29 (2024-03-01)
2
26
 
3
27
 
package/index.js CHANGED
@@ -122127,12 +122127,12 @@ var require_install_packages_task = __commonJS({
122127
122127
  var child_process_1 = require("child_process");
122128
122128
  var path_1 = require("path");
122129
122129
  var nx_1 = require_nx();
122130
- var { detectPackageManager, getPackageManagerCommand, joinPathFragments: joinPathFragments12 } = (0, nx_1.requireNx)();
122130
+ var { detectPackageManager, getPackageManagerCommand, joinPathFragments: joinPathFragments11 } = (0, nx_1.requireNx)();
122131
122131
  function installPackagesTask(tree, alwaysRun = false, cwd = "", packageManager = detectPackageManager(cwd)) {
122132
- if (!tree.listChanges().find((f7) => f7.path === joinPathFragments12(cwd, "package.json")) && !alwaysRun) {
122132
+ if (!tree.listChanges().find((f7) => f7.path === joinPathFragments11(cwd, "package.json")) && !alwaysRun) {
122133
122133
  return;
122134
122134
  }
122135
- const packageJsonValue = tree.read(joinPathFragments12(cwd, "package.json"), "utf-8");
122135
+ const packageJsonValue = tree.read(joinPathFragments11(cwd, "package.json"), "utf-8");
122136
122136
  let storedPackageJsonValue = global["__packageJsonInstallCache__"];
122137
122137
  if (storedPackageJsonValue != packageJsonValue || alwaysRun) {
122138
122138
  global["__packageJsonInstallCache__"] = packageJsonValue;
@@ -176562,7 +176562,7 @@ var require_project_name_and_root_utils = __commonJS({
176562
176562
  var nx_1 = require_nx();
176563
176563
  var get_workspace_layout_1 = require_get_workspace_layout();
176564
176564
  var names_1 = require_names();
176565
- var { joinPathFragments: joinPathFragments12, logger, normalizePath, output, readJson: readJson4, stripIndents, workspaceRoot } = (0, nx_1.requireNx)();
176565
+ var { joinPathFragments: joinPathFragments11, logger, normalizePath, output, readJson: readJson4, stripIndents, workspaceRoot } = (0, nx_1.requireNx)();
176566
176566
  async function determineProjectNameAndRootOptions2(tree, options8) {
176567
176567
  if (!options8.projectNameAndRootFormat && (process.env.NX_INTERACTIVE !== "true" || !isTTY())) {
176568
176568
  options8.projectNameAndRootFormat = "derived";
@@ -176689,14 +176689,14 @@ var require_project_name_and_root_utils = __commonJS({
176689
176689
  if (options8.directory === relativeCwd || options8.directory.startsWith(`${relativeCwd}/`)) {
176690
176690
  projectRoot = options8.directory;
176691
176691
  } else {
176692
- projectRoot = joinPathFragments12(relativeCwd, options8.directory);
176692
+ projectRoot = joinPathFragments11(relativeCwd, options8.directory);
176693
176693
  }
176694
176694
  } else if (options8.rootProject) {
176695
176695
  projectRoot = ".";
176696
176696
  } else {
176697
176697
  projectRoot = relativeCwd;
176698
176698
  if (!relativeCwd.endsWith(options8.name)) {
176699
- projectRoot = joinPathFragments12(relativeCwd, options8.name);
176699
+ projectRoot = joinPathFragments11(relativeCwd, options8.name);
176700
176700
  }
176701
176701
  }
176702
176702
  let importPath = void 0;
@@ -176729,7 +176729,7 @@ var require_project_name_and_root_utils = __commonJS({
176729
176729
  const projectSimpleName = name;
176730
176730
  let projectRoot = projectDirectoryWithoutLayout;
176731
176731
  if (projectDirectoryWithoutLayout !== ".") {
176732
- projectRoot = joinPathFragments12(layoutDirectory, projectRoot);
176732
+ projectRoot = joinPathFragments11(layoutDirectory, projectRoot);
176733
176733
  }
176734
176734
  let importPath;
176735
176735
  if (options8.projectType === "library") {
@@ -474571,7 +474571,6 @@ ${commentStart} ----------------------------------------------------------------
474571
474571
  // packages/workspace-tools/src/utils/run-tsup-build.ts
474572
474572
  var import_node_path2 = require("node:path");
474573
474573
  var import_esbuild_decorators = __toESM(require_src6());
474574
- var import_devkit3 = __toESM(require_devkit());
474575
474574
  var import_get_custom_transformers_factory = __toESM(require_get_custom_transformers_factory());
474576
474575
  var import_normalize_options = __toESM(require_normalize_options());
474577
474576
 
@@ -474671,7 +474670,7 @@ var applyDefaultOptions = (options8) => {
474671
474670
  return options8;
474672
474671
  };
474673
474672
  var runTsupBuild = async (context, config, options8) => {
474674
- const { writeInfo, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
474673
+ const { writeInfo, writeTrace, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
474675
474674
  const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
474676
474675
  const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
474677
474676
  ret[key2] = options8.env?.[key2];
@@ -474684,6 +474683,32 @@ var runTsupBuild = async (context, config, options8) => {
474684
474683
  })
474685
474684
  );
474686
474685
  options8.plugins?.push(environmentPlugin(stormEnv));
474686
+ const dtsTsConfig = getNormalizedTsConfig(
474687
+ workspaceRoot,
474688
+ options8.outputPath,
474689
+ createTypeScriptCompilationOptions(
474690
+ (0, import_normalize_options.normalizeOptions)(
474691
+ {
474692
+ ...options8,
474693
+ watch: false,
474694
+ main: context.main,
474695
+ transformers: []
474696
+ },
474697
+ workspaceRoot,
474698
+ context.sourceRoot,
474699
+ workspaceRoot
474700
+ ),
474701
+ context.projectName
474702
+ )
474703
+ );
474704
+ writeTrace(
474705
+ config,
474706
+ `\u2699\uFE0F TSC (Type Declarations) Build options:
474707
+ ${Object.keys(dtsTsConfig.options).map(
474708
+ (key2) => `${key2}: ${!dtsTsConfig.options[key2] || _isPrimitive(dtsTsConfig.options[key2]) ? dtsTsConfig.options[key2] : JSON.stringify(dtsTsConfig.options[key2])}`
474709
+ ).join("\n")}
474710
+ `
474711
+ );
474687
474712
  const getConfigOptions = {
474688
474713
  ...options8,
474689
474714
  entry: {
@@ -474701,24 +474726,7 @@ var runTsupBuild = async (context, config, options8) => {
474701
474726
  return ret;
474702
474727
  }, {})
474703
474728
  },
474704
- dtsTsConfig: getNormalizedTsConfig(
474705
- workspaceRoot,
474706
- options8.outputPath,
474707
- createTypeScriptCompilationOptions(
474708
- (0, import_normalize_options.normalizeOptions)(
474709
- {
474710
- ...options8,
474711
- watch: false,
474712
- main: context.main,
474713
- transformers: []
474714
- },
474715
- workspaceRoot,
474716
- context.sourceRoot,
474717
- workspaceRoot
474718
- ),
474719
- context.projectName
474720
- )
474721
- ),
474729
+ dtsTsConfig,
474722
474730
  banner: options8.banner ? {
474723
474731
  js: `
474724
474732
 
@@ -474769,19 +474777,36 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
474769
474777
  ...rawTsconfig.config,
474770
474778
  compilerOptions: {
474771
474779
  ...rawTsconfig.config?.compilerOptions,
474772
- tsBuildInfoFile: rawTsconfig.config?.compilerOptions?.incremental ? (0, import_devkit3.joinPathFragments)(outputPath, "tsconfig.tsbuildinfo") : void 0,
474780
+ rootDir: workspaceRoot.replaceAll("\\", "/"),
474781
+ baseUrl: workspaceRoot.replaceAll("\\", "/"),
474773
474782
  outDir: outputPath,
474774
474783
  noEmit: false,
474775
474784
  emitDeclarationOnly: true,
474776
474785
  declaration: true,
474777
474786
  declarationMap: true,
474778
- declarationDir: (0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration")
474787
+ declarationDir: (0, import_node_path2.join)(workspaceRoot.replaceAll("\\", "/"), "tmp", ".tsup", "declaration")
474779
474788
  }
474780
474789
  },
474781
474790
  import_typescript.sys,
474782
474791
  (0, import_node_path2.dirname)(options8.tsConfig)
474783
474792
  );
474784
- parsedTsconfig.options.pathsBasePath = workspaceRoot;
474793
+ parsedTsconfig.options.pathsBasePath = workspaceRoot.replaceAll("\\", "/");
474794
+ if (parsedTsconfig.options.paths) {
474795
+ parsedTsconfig.options.paths = Object.keys(parsedTsconfig.options.paths).reduce(
474796
+ (ret, key2) => {
474797
+ if (parsedTsconfig.options.paths?.[key2]) {
474798
+ ret[key2] = parsedTsconfig.options.paths[key2]?.map(
474799
+ (path15) => (0, import_node_path2.join)(workspaceRoot.replaceAll("\\", "/"), path15)
474800
+ );
474801
+ }
474802
+ return ret;
474803
+ },
474804
+ {}
474805
+ );
474806
+ }
474807
+ if (parsedTsconfig.options.incremental) {
474808
+ parsedTsconfig.options.tsBuildInfoFile = (0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo");
474809
+ }
474785
474810
  return parsedTsconfig;
474786
474811
  }
474787
474812
  var build = async (options8, config) => {
@@ -474833,7 +474858,7 @@ var createTypeScriptCompilationOptions = (normalizedOptions, projectName) => {
474833
474858
 
474834
474859
  // packages/workspace-tools/src/executors/tsup/executor.ts
474835
474860
  var import_node_fs = require("node:fs");
474836
- var import_devkit4 = __toESM(require_devkit());
474861
+ var import_devkit3 = __toESM(require_devkit());
474837
474862
  var import_js2 = __toESM(require_src5());
474838
474863
  var import_fs_extra = __toESM(require_lib4());
474839
474864
 
@@ -481142,9 +481167,9 @@ ${Object.keys(options8).map(
481142
481167
  if (!result.success) {
481143
481168
  throw new Error("The Build process failed trying to copy assets");
481144
481169
  }
481145
- const pathToPackageJson = (0, import_devkit4.joinPathFragments)(context.root, projectRoot, "package.json");
481146
- const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit4.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
481147
- const workspacePackageJson = (0, import_devkit4.readJsonFile)((0, import_devkit4.joinPathFragments)(workspaceRoot, "package.json"));
481170
+ const pathToPackageJson = (0, import_devkit3.joinPathFragments)(context.root, projectRoot, "package.json");
481171
+ const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit3.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
481172
+ const workspacePackageJson = (0, import_devkit3.readJsonFile)((0, import_devkit3.joinPathFragments)(workspaceRoot, "package.json"));
481148
481173
  options8.external = options8.external || [];
481149
481174
  if (workspacePackageJson?.dependencies) {
481150
481175
  options8.external = Object.keys(workspacePackageJson?.dependencies).reduce(
@@ -481185,7 +481210,7 @@ ${Object.keys(options8).map(
481185
481210
  writeDebug(config, `\u26A1 Adding implicit dependency: ${key2}`);
481186
481211
  const projectConfig = projectConfigs[key2];
481187
481212
  if (projectConfig?.targets?.build) {
481188
- const projectPackageJson = (0, import_devkit4.readJsonFile)(projectConfig.targets?.build.options.project);
481213
+ const projectPackageJson = (0, import_devkit3.readJsonFile)(projectConfig.targets?.build.options.project);
481189
481214
  if (projectPackageJson?.name && !options8.external?.includes(projectPackageJson.name)) {
481190
481215
  ret.push(projectPackageJson.name);
481191
481216
  internalDependencies.push(projectPackageJson.name);
@@ -481222,34 +481247,34 @@ ${externalDependencies.map((dep) => {
481222
481247
  entryPoints.push(...options8.additionalEntryPoints);
481223
481248
  }
481224
481249
  if (options8.emitOnAll === true) {
481225
- entryPoints = globSync((0, import_devkit4.joinPathFragments)(sourceRoot, "**/*.{ts,tsx}"), {
481250
+ entryPoints = globSync((0, import_devkit3.joinPathFragments)(sourceRoot, "**/*.{ts,tsx}"), {
481226
481251
  withFileTypes: true
481227
481252
  }).reduce((ret, filePath) => {
481228
481253
  let formattedPath = workspaceRoot.replaceAll("\\", "/");
481229
481254
  if (formattedPath.toUpperCase().startsWith("C:")) {
481230
481255
  formattedPath = formattedPath.substring(2);
481231
481256
  }
481232
- let propertyKey = (0, import_devkit4.joinPathFragments)(filePath.path, removeExtension(filePath.name)).replaceAll("\\", "/").replaceAll(formattedPath, "").replaceAll(sourceRoot, "").replaceAll(projectRoot, "");
481257
+ let propertyKey = (0, import_devkit3.joinPathFragments)(filePath.path, removeExtension(filePath.name)).replaceAll("\\", "/").replaceAll(formattedPath, "").replaceAll(sourceRoot, "").replaceAll(projectRoot, "");
481233
481258
  if (propertyKey) {
481234
481259
  while (propertyKey.startsWith("/")) {
481235
481260
  propertyKey = propertyKey.substring(1);
481236
481261
  }
481237
481262
  writeDebug(
481238
481263
  config,
481239
- `Trying to add entry point ${propertyKey} at "${(0, import_devkit4.joinPathFragments)(
481264
+ `Trying to add entry point ${propertyKey} at "${(0, import_devkit3.joinPathFragments)(
481240
481265
  filePath.path,
481241
481266
  filePath.name
481242
481267
  )}"`
481243
481268
  );
481244
481269
  if (!ret.includes(propertyKey)) {
481245
- ret.push((0, import_devkit4.joinPathFragments)(filePath.path, filePath.name));
481270
+ ret.push((0, import_devkit3.joinPathFragments)(filePath.path, filePath.name));
481246
481271
  }
481247
481272
  }
481248
481273
  return ret;
481249
481274
  }, entryPoints);
481250
481275
  }
481251
481276
  if (options8.generatePackageJson !== false) {
481252
- const projectGraph = (0, import_devkit4.readCachedProjectGraph)();
481277
+ const projectGraph = (0, import_devkit3.readCachedProjectGraph)();
481253
481278
  if (options8.bundle === false) {
481254
481279
  packageJson.dependencies = void 0;
481255
481280
  for (const externalDependency of externalDependencies) {
@@ -481302,16 +481327,16 @@ ${externalDependencies.map((dep) => {
481302
481327
  }
481303
481328
  packageJson.exports[`./${formattedEntryPoint}`] = {
481304
481329
  import: {
481305
- types: `./${(0, import_devkit4.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.d.ts`,
481306
- default: `./${(0, import_devkit4.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.js`
481330
+ types: `./${(0, import_devkit3.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.d.ts`,
481331
+ default: `./${(0, import_devkit3.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.js`
481307
481332
  },
481308
481333
  require: {
481309
- types: `./${(0, import_devkit4.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.d.cts`,
481310
- default: `./${(0, import_devkit4.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.cjs`
481334
+ types: `./${(0, import_devkit3.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.d.cts`,
481335
+ default: `./${(0, import_devkit3.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.cjs`
481311
481336
  },
481312
481337
  default: {
481313
- types: `./${(0, import_devkit4.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.d.ts`,
481314
- default: `./${(0, import_devkit4.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.js`
481338
+ types: `./${(0, import_devkit3.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.d.ts`,
481339
+ default: `./${(0, import_devkit3.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.js`
481315
481340
  }
481316
481341
  };
481317
481342
  }
@@ -481335,7 +481360,7 @@ ${externalDependencies.map((dep) => {
481335
481360
  if (distSrc.startsWith("/")) {
481336
481361
  distSrc = distSrc.substring(1);
481337
481362
  }
481338
- packageJson.source ??= `${(0, import_devkit4.joinPathFragments)(distSrc, "index.ts").replaceAll("\\", "/")}`;
481363
+ packageJson.source ??= `${(0, import_devkit3.joinPathFragments)(distSrc, "index.ts").replaceAll("\\", "/")}`;
481339
481364
  }
481340
481365
  packageJson.files ??= ["dist/**/*"];
481341
481366
  if (options8.includeSrc === true && !packageJson.files.includes("src")) {
@@ -481352,8 +481377,8 @@ ${externalDependencies.map((dep) => {
481352
481377
  packageJson.license ??= workspacePackageJson.license;
481353
481378
  packageJson.keywords ??= workspacePackageJson.keywords;
481354
481379
  packageJson.repository ??= workspacePackageJson.repository;
481355
- packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_devkit4.joinPathFragments)("packages", context.projectName);
481356
- const packageJsonPath = (0, import_devkit4.joinPathFragments)(context.root, options8.outputPath, "package.json");
481380
+ packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_devkit3.joinPathFragments)("packages", context.projectName);
481381
+ const packageJsonPath = (0, import_devkit3.joinPathFragments)(context.root, options8.outputPath, "package.json");
481357
481382
  writeDebug(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
481358
481383
  (0, import_node_fs.writeFileSync)(packageJsonPath, JSON.stringify(packageJson));
481359
481384
  } else {
@@ -481361,10 +481386,10 @@ ${externalDependencies.map((dep) => {
481361
481386
  }
481362
481387
  if (options8.includeSrc === true) {
481363
481388
  const files = globSync([
481364
- (0, import_devkit4.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.ts"),
481365
- (0, import_devkit4.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.tsx"),
481366
- (0, import_devkit4.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.js"),
481367
- (0, import_devkit4.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.jsx")
481389
+ (0, import_devkit3.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.ts"),
481390
+ (0, import_devkit3.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.tsx"),
481391
+ (0, import_devkit3.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.js"),
481392
+ (0, import_devkit3.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.jsx")
481368
481393
  ]);
481369
481394
  options8.verbose = options8.verbose || getLogLevel(config?.logLevel) >= LogLevel.DEBUG;
481370
481395
  await Promise.allSettled(
@@ -481421,7 +481446,7 @@ var _isFunction3 = (value) => {
481421
481446
  };
481422
481447
 
481423
481448
  // packages/workspace-tools/src/executors/tsup-neutral/get-config.ts
481424
- var import_devkit5 = __toESM(require_devkit());
481449
+ var import_devkit4 = __toESM(require_devkit());
481425
481450
  var neutralConfig = ({
481426
481451
  entry,
481427
481452
  outDir,
@@ -481449,7 +481474,7 @@ var neutralConfig = ({
481449
481474
  minify = false,
481450
481475
  getTransform
481451
481476
  }) => {
481452
- const outputPath = (0, import_devkit5.joinPathFragments)(outDir, "dist");
481477
+ const outputPath = (0, import_devkit4.joinPathFragments)(outDir, "dist");
481453
481478
  const options8 = {
481454
481479
  name: "neutral",
481455
481480
  entry,
@@ -481551,7 +481576,7 @@ var executor_default2 = withRunExecutor(
481551
481576
  );
481552
481577
 
481553
481578
  // packages/workspace-tools/src/executors/tsup-node/get-config.ts
481554
- var import_devkit6 = __toESM(require_devkit());
481579
+ var import_devkit5 = __toESM(require_devkit());
481555
481580
  function nodeConfig({
481556
481581
  entry,
481557
481582
  outDir,
@@ -481592,7 +481617,7 @@ function nodeConfig({
481592
481617
  } : false,
481593
481618
  projectRoot,
481594
481619
  workspaceRoot,
481595
- outDir: (0, import_devkit6.joinPathFragments)(outDir, "dist"),
481620
+ outDir: (0, import_devkit5.joinPathFragments)(outDir, "dist"),
481596
481621
  silent: !verbose,
481597
481622
  metafile,
481598
481623
  shims,
@@ -481609,7 +481634,7 @@ function nodeConfig({
481609
481634
  ...dtsTsConfig,
481610
481635
  options: {
481611
481636
  ...dtsTsConfig.options,
481612
- outDir: (0, import_devkit6.joinPathFragments)(outDir, "dist")
481637
+ outDir: (0, import_devkit5.joinPathFragments)(outDir, "dist")
481613
481638
  }
481614
481639
  }
481615
481640
  },
@@ -481680,7 +481705,7 @@ var executor_default3 = withRunExecutor(
481680
481705
  );
481681
481706
 
481682
481707
  // packages/workspace-tools/src/executors/tsup-browser/get-config.ts
481683
- var import_devkit7 = __toESM(require_devkit());
481708
+ var import_devkit6 = __toESM(require_devkit());
481684
481709
  var browserConfig = ({
481685
481710
  entry,
481686
481711
  outDir,
@@ -481705,7 +481730,7 @@ var browserConfig = ({
481705
481730
  minify = false,
481706
481731
  getTransform
481707
481732
  }) => {
481708
- const outputPath = (0, import_devkit7.joinPathFragments)(outDir, "dist");
481733
+ const outputPath = (0, import_devkit6.joinPathFragments)(outDir, "dist");
481709
481734
  const options8 = {
481710
481735
  name: "modern",
481711
481736
  entry,
@@ -481841,11 +481866,11 @@ var executor_default5 = withRunExecutor(
481841
481866
  );
481842
481867
 
481843
481868
  // packages/workspace-tools/src/executors/npm-publish/executor.ts
481844
- var import_devkit8 = __toESM(require_devkit());
481869
+ var import_devkit7 = __toESM(require_devkit());
481845
481870
  var LARGE_BUFFER = 1024 * 1e6;
481846
481871
 
481847
481872
  // packages/workspace-tools/src/generators/config-schema/generator.ts
481848
- var import_devkit9 = __toESM(require_devkit());
481873
+ var import_devkit8 = __toESM(require_devkit());
481849
481874
  var import_config = require("@storm-software/config");
481850
481875
  var import_node_fs2 = require("node:fs");
481851
481876
  var import_node_path3 = require("node:path");
@@ -486466,12 +486491,12 @@ async function configSchemaGeneratorFn(tree, options8, config) {
486466
486491
  const ModulesSchema = unionType([workspaceSchema, import_config.StormConfigSchema]).describe(
486467
486492
  "The values set in the Storm config file. This file is expected to be named `storm.json`, `storm.config.ts`, or `storm.config.js` and be located in the root of the workspace"
486468
486493
  );
486469
- (0, import_devkit9.writeJson)(
486494
+ (0, import_devkit8.writeJson)(
486470
486495
  tree,
486471
486496
  options8.outputFile ? (0, import_node_path3.join)(workspaceRoot, options8.outputFile) : (0, import_node_path3.join)(workspaceRoot, "storm.schema.json"),
486472
486497
  zodToJsonSchema(ModulesSchema, "StormConfig")
486473
486498
  );
486474
- await (0, import_devkit9.formatFiles)(tree);
486499
+ await (0, import_devkit8.formatFiles)(tree);
486475
486500
  return {
486476
486501
  success: true
486477
486502
  };
@@ -486482,9 +486507,9 @@ var generator_default = withRunGenerator(
486482
486507
  );
486483
486508
 
486484
486509
  // packages/workspace-tools/src/generators/init/init.ts
486485
- var import_devkit10 = __toESM(require_devkit());
486510
+ var import_devkit9 = __toESM(require_devkit());
486486
486511
  async function stormInitGenerator(tree, schema2) {
486487
- const task = (0, import_devkit10.addDependenciesToPackageJson)(
486512
+ const task = (0, import_devkit9.addDependenciesToPackageJson)(
486488
486513
  tree,
486489
486514
  {
486490
486515
  "nx": nxVersion,
@@ -486497,15 +486522,15 @@ async function stormInitGenerator(tree, schema2) {
486497
486522
  {}
486498
486523
  );
486499
486524
  if (!schema2.skipFormat) {
486500
- await (0, import_devkit10.formatFiles)(tree);
486525
+ await (0, import_devkit9.formatFiles)(tree);
486501
486526
  }
486502
486527
  return task;
486503
486528
  }
486504
486529
 
486505
486530
  // packages/workspace-tools/src/generators/node-library/generator.ts
486506
- var import_devkit11 = __toESM(require_devkit());
486531
+ var import_devkit10 = __toESM(require_devkit());
486507
486532
  async function nodeLibraryGeneratorFn(tree, schema2) {
486508
- const filesDir = (0, import_devkit11.joinPathFragments)(__dirname, "./files");
486533
+ const filesDir = (0, import_devkit10.joinPathFragments)(__dirname, "./files");
486509
486534
  const tsLibraryGeneratorOptions = {
486510
486535
  ...schema2,
486511
486536
  platform: "node",
@@ -486515,8 +486540,8 @@ async function nodeLibraryGeneratorFn(tree, schema2) {
486515
486540
  buildExecutor: "@storm-software/workspace-tools:tsup-node"
486516
486541
  };
486517
486542
  const options8 = await normalizeOptions2(tree, tsLibraryGeneratorOptions);
486518
- const { className, name, propertyName } = (0, import_devkit11.names)(options8.projectNames.projectFileName);
486519
- (0, import_devkit11.generateFiles)(tree, filesDir, options8.projectRoot, {
486543
+ const { className, name, propertyName } = (0, import_devkit10.names)(options8.projectNames.projectFileName);
486544
+ (0, import_devkit10.generateFiles)(tree, filesDir, options8.projectRoot, {
486520
486545
  ...schema2,
486521
486546
  dot: ".",
486522
486547
  className,
@@ -486528,12 +486553,12 @@ async function nodeLibraryGeneratorFn(tree, schema2) {
486528
486553
  cliCommand: "nx",
486529
486554
  strict: void 0,
486530
486555
  tmpl: "",
486531
- offsetFromRoot: (0, import_devkit11.offsetFromRoot)(options8.projectRoot),
486556
+ offsetFromRoot: (0, import_devkit10.offsetFromRoot)(options8.projectRoot),
486532
486557
  buildable: options8.bundler && options8.bundler !== "none",
486533
486558
  hasUnitTestRunner: options8.unitTestRunner !== "none"
486534
486559
  });
486535
486560
  await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions);
486536
- await (0, import_devkit11.formatFiles)(tree);
486561
+ await (0, import_devkit10.formatFiles)(tree);
486537
486562
  return null;
486538
486563
  }
486539
486564
  var generator_default2 = withRunGenerator(
@@ -486543,12 +486568,12 @@ var generator_default2 = withRunGenerator(
486543
486568
 
486544
486569
  // packages/workspace-tools/src/generators/preset/generator.ts
486545
486570
  var path14 = __toESM(require("node:path"));
486546
- var import_devkit12 = __toESM(require_devkit());
486571
+ var import_devkit11 = __toESM(require_devkit());
486547
486572
  async function presetGeneratorFn(tree, options8) {
486548
486573
  const projectRoot = ".";
486549
486574
  options8.description ??= `\u26A1The ${options8.namespace ? options8.namespace : options8.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
486550
486575
  options8.namespace ??= options8.organization;
486551
- (0, import_devkit12.addProjectConfiguration)(tree, `@${options8.namespace}/${options8.name}`, {
486576
+ (0, import_devkit11.addProjectConfiguration)(tree, `@${options8.namespace}/${options8.name}`, {
486552
486577
  root: projectRoot,
486553
486578
  projectType: "application",
486554
486579
  targets: {
@@ -486562,7 +486587,7 @@ async function presetGeneratorFn(tree, options8) {
486562
486587
  }
486563
486588
  }
486564
486589
  });
486565
- (0, import_devkit12.updateJson)(tree, "package.json", (json2) => {
486590
+ (0, import_devkit11.updateJson)(tree, "package.json", (json2) => {
486566
486591
  json2.scripts = json2.scripts || {};
486567
486592
  json2.version = "0.0.0";
486568
486593
  json2.triggerEmptyDevReleaseByIncrementingThisNumber = 0;
@@ -486686,12 +486711,12 @@ async function presetGeneratorFn(tree, options8) {
486686
486711
  };
486687
486712
  return json2;
486688
486713
  });
486689
- (0, import_devkit12.generateFiles)(tree, path14.join(__dirname, "files"), projectRoot, {
486714
+ (0, import_devkit11.generateFiles)(tree, path14.join(__dirname, "files"), projectRoot, {
486690
486715
  ...options8,
486691
486716
  pnpmVersion,
486692
486717
  nodeVersion
486693
486718
  });
486694
- await (0, import_devkit12.formatFiles)(tree);
486719
+ await (0, import_devkit11.formatFiles)(tree);
486695
486720
  let dependencies = {
486696
486721
  "@nx/devkit": "^18.0.4",
486697
486722
  "@nx/jest": "^18.0.4",
@@ -486748,11 +486773,11 @@ async function presetGeneratorFn(tree, options8) {
486748
486773
  };
486749
486774
  }
486750
486775
  await Promise.resolve(
486751
- (0, import_devkit12.addDependenciesToPackageJson)(
486776
+ (0, import_devkit11.addDependenciesToPackageJson)(
486752
486777
  tree,
486753
486778
  dependencies,
486754
486779
  {},
486755
- (0, import_devkit12.joinPathFragments)(projectRoot, "package.json")
486780
+ (0, import_devkit11.joinPathFragments)(projectRoot, "package.json")
486756
486781
  )
486757
486782
  );
486758
486783
  return null;
@@ -486763,7 +486788,7 @@ var generator_default3 = withRunGenerator(
486763
486788
  );
486764
486789
 
486765
486790
  // packages/workspace-tools/src/generators/release-version/generator.ts
486766
- var import_devkit13 = __toESM(require_devkit());
486791
+ var import_devkit12 = __toESM(require_devkit());
486767
486792
  var import_version = require("nx/src/command-line/release/version");
486768
486793
  var import_utils2 = require("nx/src/tasks-runner/utils");
486769
486794
  var import_semver = require("nx/src/command-line/release/utils/semver");
@@ -486822,7 +486847,7 @@ Valid values are: ${import_version.validReleaseVersionPrefixes.map((s) => `"${s}
486822
486847
  for (const project of projects) {
486823
486848
  const projectName = project.name;
486824
486849
  const packageRoot = projectNameToPackageRootMap.get(projectName);
486825
- const packageJsonPath = (0, import_devkit13.joinPathFragments)(packageRoot ?? "./", "package.json");
486850
+ const packageJsonPath = (0, import_devkit12.joinPathFragments)(packageRoot ?? "./", "package.json");
486826
486851
  const workspaceRelativePackageJsonPath = (0, import_node_path4.relative)(
486827
486852
  config?.workspaceRoot ?? findWorkspaceRoot(),
486828
486853
  packageJsonPath
@@ -486838,7 +486863,7 @@ To fix this you will either need to add a package.json file at that location, or
486838
486863
  );
486839
486864
  }
486840
486865
  writeInfo(config, `Running release version for project: ${project.name}`);
486841
- const projectPackageJson = (0, import_devkit13.readJson)(tree, packageJsonPath);
486866
+ const projectPackageJson = (0, import_devkit12.readJson)(tree, packageJsonPath);
486842
486867
  log(
486843
486868
  `\u{1F50D} Reading data for package "${projectPackageJson.name}" from ${workspaceRelativePackageJsonPath}`
486844
486869
  );
@@ -487049,7 +487074,7 @@ To fix this you will either need to add a package.json file at that location, or
487049
487074
  if (versionData[projectName]) {
487050
487075
  versionData[projectName].newVersion = newVersion;
487051
487076
  }
487052
- (0, import_devkit13.writeJson)(tree, packageJsonPath, {
487077
+ (0, import_devkit12.writeJson)(tree, packageJsonPath, {
487053
487078
  ...projectPackageJson,
487054
487079
  version: newVersion
487055
487080
  });
@@ -487060,9 +487085,9 @@ To fix this you will either need to add a package.json file at that location, or
487060
487085
  );
487061
487086
  }
487062
487087
  for (const dependentProject of dependentProjects) {
487063
- (0, import_devkit13.updateJson)(
487088
+ (0, import_devkit12.updateJson)(
487064
487089
  tree,
487065
- (0, import_devkit13.joinPathFragments)(
487090
+ (0, import_devkit12.joinPathFragments)(
487066
487091
  projectNameToPackageRootMap.get(dependentProject.source) ?? "./",
487067
487092
  "package.json"
487068
487093
  ),
@@ -487086,7 +487111,7 @@ To fix this you will either need to add a package.json file at that location, or
487086
487111
  );
487087
487112
  }
487088
487113
  }
487089
- await (0, import_devkit13.formatFiles)(tree);
487114
+ await (0, import_devkit12.formatFiles)(tree);
487090
487115
  return {
487091
487116
  data: versionData,
487092
487117
  callback: async (tree2, opts) => {