@storm-software/cloudflare-tools 0.49.0 → 0.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-A4ZIZ2JU.mjs → chunk-7KICJG4N.mjs} +4 -4
  4. package/dist/{chunk-OJNZ4PXQ.mjs → chunk-CYPHDXO4.mjs} +681 -136
  5. package/dist/{chunk-KKOHB7JH.js → chunk-FARER72T.js} +1 -1
  6. package/dist/{chunk-MTM5OTKD.mjs → chunk-FDWGGCRH.mjs} +1 -1
  7. package/dist/{chunk-YE4FHRXJ.js → chunk-FEVYI765.js} +4 -4
  8. package/dist/{chunk-Z46UO4N7.js → chunk-GTCFSQI5.js} +690 -145
  9. package/dist/{chunk-I4XNMV5U.js → chunk-IF6J7SWP.js} +5 -5
  10. package/dist/{chunk-OARYMVO7.mjs → chunk-JJVEBF3V.mjs} +4 -4
  11. package/dist/{chunk-NKCR3FSU.js → chunk-RGEF6YBW.js} +4 -4
  12. package/dist/{chunk-VPT6GF3S.mjs → chunk-WWU5M5GO.mjs} +5 -5
  13. package/dist/executors.js +4 -4
  14. package/dist/executors.mjs +4 -4
  15. package/dist/generators.js +5 -5
  16. package/dist/generators.mjs +4 -4
  17. package/dist/index.js +12 -12
  18. package/dist/index.mjs +15 -15
  19. package/dist/src/executors/cloudflare-publish/executor.js +2 -2
  20. package/dist/src/executors/cloudflare-publish/executor.mjs +2 -2
  21. package/dist/src/executors/r2-upload-publish/executor.js +4 -4
  22. package/dist/src/executors/r2-upload-publish/executor.mjs +3 -3
  23. package/dist/src/executors/serve/executor.js +3 -3
  24. package/dist/src/executors/serve/executor.mjs +2 -2
  25. package/dist/src/generators/init/generator.js +2 -2
  26. package/dist/src/generators/init/generator.mjs +1 -1
  27. package/dist/src/generators/worker/generator.js +4 -4
  28. package/dist/src/generators/worker/generator.mjs +3 -3
  29. package/package.json +1 -1
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XU6MTFCV.mjs";
5
5
  import {
6
6
  loadStormConfig
7
- } from "./chunk-OARYMVO7.mjs";
7
+ } from "./chunk-JJVEBF3V.mjs";
8
8
  import {
9
9
  LogLevelLabel,
10
10
  StormConfigSchema,
@@ -465,8 +465,8 @@ import https from "node:https";
465
465
  var LARGE_BUFFER2 = 1024 * 1e6;
466
466
 
467
467
  // ../esbuild/src/build.ts
468
- import { hfs as hfs6 } from "@humanfs/node";
469
- import { createProjectGraphAsync as createProjectGraphAsync3, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3, writeJsonFile } from "@nx/devkit";
468
+ import { hfs as hfs3 } from "@humanfs/node";
469
+ import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
470
470
 
471
471
  // ../build-tools/src/config.ts
472
472
  var DEFAULT_COMPILED_BANNER = `
@@ -493,13 +493,14 @@ import { stripIndents } from "@nx/devkit";
493
493
  import { relative as relative2 } from "path";
494
494
 
495
495
  // ../build-tools/src/utilities/copy-assets.ts
496
- import { hfs as hfs2 } from "@humanfs/node";
497
- import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph } from "@nx/devkit";
496
+ import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "@nx/devkit";
498
497
  import { copyAssets as copyAssetsBase } from "@nx/js";
499
498
  import { glob } from "glob";
499
+ import { readFile as readFile2, writeFile } from "node:fs/promises";
500
500
 
501
501
  // ../build-tools/src/utilities/read-nx-config.ts
502
- import { hfs } from "@humanfs/node";
502
+ import { existsSync } from "node:fs";
503
+ import { readFile } from "node:fs/promises";
503
504
  var readNxConfig = /* @__PURE__ */ __name(async (workspaceRoot3) => {
504
505
  let rootDir = workspaceRoot3;
505
506
  if (!rootDir) {
@@ -507,10 +508,11 @@ var readNxConfig = /* @__PURE__ */ __name(async (workspaceRoot3) => {
507
508
  rootDir = config.workspaceRoot;
508
509
  }
509
510
  const nxJsonPath = joinPaths(rootDir, "nx.json");
510
- if (!await hfs.isFile(nxJsonPath)) {
511
+ if (!existsSync(nxJsonPath)) {
511
512
  throw new Error("Cannot find project.json configuration");
512
513
  }
513
- return hfs.json(nxJsonPath);
514
+ const configContent = await readFile(nxJsonPath, "utf8");
515
+ return JSON.parse(configContent);
514
516
  }, "readNxConfig");
515
517
 
516
518
  // ../build-tools/src/utilities/copy-assets.ts
@@ -545,14 +547,12 @@ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, proje
545
547
  });
546
548
  }
547
549
  const nxJson = readNxConfig(config.workspaceRoot);
548
- const projectGraph = await createProjectGraphAsync({
549
- exitOnError: true
550
- });
550
+ const projectGraph = readCachedProjectGraph();
551
551
  const projectsConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
552
552
  if (!projectsConfigurations?.projects?.[projectName]) {
553
553
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
554
554
  }
555
- const buildTarget = projectsConfigurations.projects[projectName]?.targets?.build;
555
+ const buildTarget = projectsConfigurations.projects[projectName].targets?.build;
556
556
  if (!buildTarget) {
557
557
  throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${joinPaths(projectRoot, "project.json")}`);
558
558
  }
@@ -582,42 +582,30 @@ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, proje
582
582
  joinPaths(config.workspaceRoot, outputPath, "src/**/*.js"),
583
583
  joinPaths(config.workspaceRoot, outputPath, "src/**/*.jsx")
584
584
  ]);
585
- await Promise.allSettled(files.map(async (file) => hfs2.write(file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
585
+ await Promise.allSettled(files.map(async (file) => writeFile(file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
586
586
 
587
- ${await hfs2.text(file)}
587
+ ${await readFile2(file, "utf8")}
588
588
 
589
589
  ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `// ${footer}` : ""}`)));
590
590
  }
591
591
  }, "copyAssets");
592
592
 
593
593
  // ../build-tools/src/utilities/generate-package-json.ts
594
- import { hfs as hfs3 } from "@humanfs/node";
595
594
  import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
596
595
  import { Glob } from "glob";
597
- import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2 } from "nx/src/project-graph/project-graph";
596
+ import { existsSync as existsSync2 } from "node:fs";
597
+ import { readFile as readFile3 } from "node:fs/promises";
598
+ import { readCachedProjectGraph as readCachedProjectGraph2 } from "nx/src/project-graph/project-graph";
598
599
  var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, projectRoot, projectName, packageJson) => {
599
- const projectGraph = await createProjectGraphAsync2({
600
- exitOnError: true
601
- });
602
- const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
603
- if (!projectConfigurations?.projects?.[projectName]) {
604
- throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
605
- }
606
- const projectJsonPath = joinPaths(workspaceRoot3, projectRoot, "project.json");
607
- if (!await hfs3.isFile(projectJsonPath)) {
608
- throw new Error("Cannot find project.json configuration");
609
- }
610
- if (!projectConfigurations?.projects?.[projectName]) {
611
- throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
612
- }
613
- const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
600
+ const projectDependencies = calculateProjectBuildableDependencies(void 0, readCachedProjectGraph2(), workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
614
601
  const localPackages = [];
615
602
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
616
603
  const projectNode = project.node;
617
604
  if (projectNode.data.root) {
618
605
  const projectPackageJsonPath = joinPaths(workspaceRoot3, projectNode.data.root, "package.json");
619
- if (await hfs3.isFile(projectPackageJsonPath)) {
620
- const projectPackageJson = await hfs3.json(projectPackageJsonPath);
606
+ if (existsSync2(projectPackageJsonPath)) {
607
+ const projectPackageJsonContent = await readFile3(projectPackageJsonPath, "utf8");
608
+ const projectPackageJson = JSON.parse(projectPackageJsonContent);
621
609
  if (projectPackageJson.private !== false) {
622
610
  localPackages.push(projectPackageJson);
623
611
  }
@@ -653,7 +641,8 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, proje
653
641
  }, "addPackageDependencies");
654
642
  var addWorkspacePackageJsonFields = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
655
643
  const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
656
- const workspacePackageJson = await hfs3.json(joinPaths(workspaceRoot3, "package.json"));
644
+ const workspacePackageJsonContent = await readFile3(joinPaths(workspaceRoot3, "package.json"), "utf8");
645
+ const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
657
646
  packageJson.type ??= "module";
658
647
  packageJson.sideEffects ??= false;
659
648
  if (includeSrc === true) {
@@ -974,11 +963,11 @@ var RendererEngine = class {
974
963
  };
975
964
 
976
965
  // ../esbuild/src/clean.ts
977
- import { hfs as hfs4 } from "@humanfs/node";
966
+ import { hfs } from "@humanfs/node";
978
967
  async function clean(name = "ESBuild", directory, config) {
979
968
  writeDebug(` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
980
969
  const stopwatch = getStopwatch(`${name} output clean`);
981
- await hfs4.deleteAll(directory);
970
+ await hfs.deleteAll(directory);
982
971
  stopwatch();
983
972
  }
984
973
  __name(clean, "clean");
@@ -1153,7 +1142,7 @@ var resolvePathsPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
1153
1142
  }), "resolvePathsPlugin");
1154
1143
 
1155
1144
  // ../esbuild/src/plugins/tsc.ts
1156
- import { hfs as hfs5 } from "@humanfs/node";
1145
+ import { hfs as hfs2 } from "@humanfs/node";
1157
1146
  import { Extractor, ExtractorConfig } from "@microsoft/api-extractor";
1158
1147
  function bundleTypeDefinitions(filename, outfile, externals, options) {
1159
1148
  const { dependencies, peerDependencies, devDependencies } = __require(joinPaths(options.projectRoot, "package.json"));
@@ -1227,18 +1216,18 @@ var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
1227
1216
  const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
1228
1217
  const bundlePath = joinPaths(resolvedOptions.outdir, entryPoint);
1229
1218
  let dtsPath;
1230
- if (await hfs5.isFile(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1219
+ if (await hfs2.isFile(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1231
1220
  dtsPath = joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1232
- } else if (await hfs5.isFile(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1221
+ } else if (await hfs2.isFile(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1233
1222
  dtsPath = joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1234
1223
  }
1235
1224
  const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
1236
1225
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
1237
1226
  bundleTypeDefinitions(dtsPath, bundlePath, resolvedOptions.external ?? [], resolvedOptions);
1238
- const dtsContents = await hfs5.text(`${bundlePath}.d.ts`);
1239
- await hfs5.write(`${bundlePath}.${ext}`, dtsContents);
1227
+ const dtsContents = await hfs2.text(`${bundlePath}.d.ts`);
1228
+ await hfs2.write(`${bundlePath}.${ext}`, dtsContents);
1240
1229
  } else {
1241
- await hfs5.write(`${bundlePath}.${ext}`, `export * from './${entryPoint}'`);
1230
+ await hfs2.write(`${bundlePath}.${ext}`, `export * from './${entryPoint}'`);
1242
1231
  }
1243
1232
  }
1244
1233
  });
@@ -1483,16 +1472,16 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1483
1472
  const config = await loadStormConfig(workspaceRoot3.dir);
1484
1473
  writeDebug(" \u2699\uFE0F Resolving build options", config);
1485
1474
  const stopwatch = getStopwatch("Build options resolution");
1486
- const projectGraph = await createProjectGraphAsync3({
1475
+ const projectGraph = await createProjectGraphAsync({
1487
1476
  exitOnError: true
1488
1477
  });
1489
1478
  const projectJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "project.json");
1490
- if (!await hfs6.isFile(projectJsonPath)) {
1479
+ if (!await hfs3.isFile(projectJsonPath)) {
1491
1480
  throw new Error("Cannot find project.json configuration");
1492
1481
  }
1493
- const projectJson = await hfs6.json(projectJsonPath);
1482
+ const projectJson = await hfs3.json(projectJsonPath);
1494
1483
  const projectName = projectJson.name;
1495
- const projectConfigurations = readProjectsConfigurationFromProjectGraph3(projectGraph);
1484
+ const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
1496
1485
  if (!projectConfigurations?.projects?.[projectName]) {
1497
1486
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
1498
1487
  }
@@ -1500,10 +1489,10 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1500
1489
  options.name ??= `${projectName}-${options.format}`;
1501
1490
  options.target ??= DEFAULT_TARGET;
1502
1491
  const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
1503
- if (!await hfs6.isFile(packageJsonPath)) {
1492
+ if (!await hfs3.isFile(packageJsonPath)) {
1504
1493
  throw new Error("Cannot find package.json configuration");
1505
1494
  }
1506
- const packageJson = await hfs6.json(packageJsonPath);
1495
+ const packageJson = await hfs3.json(packageJsonPath);
1507
1496
  const outExtension = getOutputExtensionMap(options, packageJson.type);
1508
1497
  const env = getEnv("esbuild", options);
1509
1498
  const result = {
@@ -1582,14 +1571,14 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1582
1571
  return result;
1583
1572
  }, "resolveOptions");
1584
1573
  async function generatePackageJson(context2) {
1585
- if (context2.options.generatePackageJson !== false && await hfs6.isFile(joinPaths(context2.options.projectRoot, "package.json"))) {
1574
+ if (context2.options.generatePackageJson !== false && await hfs3.isFile(joinPaths(context2.options.projectRoot, "package.json"))) {
1586
1575
  writeDebug(" \u270D\uFE0F Writing package.json file", context2.options.config);
1587
1576
  const stopwatch = getStopwatch("Write package.json file");
1588
1577
  const packageJsonPath = joinPaths(context2.options.projectRoot, "project.json");
1589
- if (!await hfs6.isFile(packageJsonPath)) {
1578
+ if (!await hfs3.isFile(packageJsonPath)) {
1590
1579
  throw new Error("Cannot find package.json configuration");
1591
1580
  }
1592
- let packageJson = await hfs6.json(joinPaths(context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"));
1581
+ let packageJson = await hfs3.json(joinPaths(context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"));
1593
1582
  if (!packageJson) {
1594
1583
  throw new Error("Cannot find package.json configuration file");
1595
1584
  }
@@ -1662,7 +1651,7 @@ async function executeEsBuild(context2) {
1662
1651
  const result = await esbuild2.build(context2.options);
1663
1652
  if (result.metafile) {
1664
1653
  const metafilePath = `${context2.options.outdir}/${context2.options.name}.meta.json`;
1665
- await hfs6.write(metafilePath, JSON.stringify(result.metafile));
1654
+ await hfs3.write(metafilePath, JSON.stringify(result.metafile));
1666
1655
  }
1667
1656
  stopwatch();
1668
1657
  return context2;
@@ -1812,8 +1801,8 @@ import { execSync as execSync4 } from "node:child_process";
1812
1801
  import fs3 from "node:fs/promises";
1813
1802
 
1814
1803
  // ../workspace-tools/src/utils/pnpm-deps-update.ts
1815
- import { existsSync } from "node:fs";
1816
- import { readFile, writeFile } from "node:fs/promises";
1804
+ import { existsSync as existsSync3 } from "node:fs";
1805
+ import { readFile as readFile4, writeFile as writeFile2 } from "node:fs/promises";
1817
1806
  import readYamlFile from "read-yaml-file";
1818
1807
 
1819
1808
  // ../workspace-tools/src/executors/npm-publish/executor.ts
@@ -1854,18 +1843,18 @@ var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor",
1854
1843
  });
1855
1844
 
1856
1845
  // ../tsdown/src/build.ts
1857
- import { hfs as hfs8 } from "@humanfs/node";
1858
- import { createProjectGraphAsync as createProjectGraphAsync4, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph4, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
1846
+ import { hfs as hfs5 } from "@humanfs/node";
1847
+ import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
1859
1848
  import defu2 from "defu";
1860
1849
  import { findWorkspaceRoot as findWorkspaceRoot3 } from "nx/src/utils/find-workspace-root";
1861
1850
  import { build as tsdown } from "tsdown";
1862
1851
 
1863
1852
  // ../tsdown/src/clean.ts
1864
- import { hfs as hfs7 } from "@humanfs/node";
1853
+ import { hfs as hfs4 } from "@humanfs/node";
1865
1854
  async function clean2(name = "ESBuild", directory, config) {
1866
1855
  writeDebug(` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
1867
1856
  const stopwatch = getStopwatch(`${name} output clean`);
1868
- await hfs7.deleteAll(directory);
1857
+ await hfs4.deleteAll(directory);
1869
1858
  stopwatch();
1870
1859
  }
1871
1860
  __name(clean2, "clean");
@@ -1902,16 +1891,16 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
1902
1891
  const config = await loadStormConfig(workspaceRoot3.dir);
1903
1892
  writeDebug(" \u2699\uFE0F Resolving build options", config);
1904
1893
  const stopwatch = getStopwatch("Build options resolution");
1905
- const projectGraph = await createProjectGraphAsync4({
1894
+ const projectGraph = await createProjectGraphAsync2({
1906
1895
  exitOnError: true
1907
1896
  });
1908
1897
  const projectJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "project.json");
1909
- if (!await hfs8.isFile(projectJsonPath)) {
1898
+ if (!await hfs5.isFile(projectJsonPath)) {
1910
1899
  throw new Error("Cannot find project.json configuration");
1911
1900
  }
1912
- const projectJson = await hfs8.json(projectJsonPath);
1901
+ const projectJson = await hfs5.json(projectJsonPath);
1913
1902
  const projectName = projectJson.name;
1914
- const projectConfigurations = readProjectsConfigurationFromProjectGraph4(projectGraph);
1903
+ const projectConfigurations = readProjectsConfigurationFromProjectGraph3(projectGraph);
1915
1904
  if (!projectConfigurations?.projects?.[projectName]) {
1916
1905
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
1917
1906
  }
@@ -1919,7 +1908,7 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
1919
1908
  options.name ??= `${projectName}-${options.format}`;
1920
1909
  options.target ??= DEFAULT_TARGET;
1921
1910
  const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
1922
- if (!await hfs8.isFile(packageJsonPath)) {
1911
+ if (!await hfs5.isFile(packageJsonPath)) {
1923
1912
  throw new Error("Cannot find package.json configuration");
1924
1913
  }
1925
1914
  const env = getEnv("tsdown", options);
@@ -1974,14 +1963,14 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
1974
1963
  return result;
1975
1964
  }, "resolveOptions");
1976
1965
  async function generatePackageJson2(options) {
1977
- if (options.generatePackageJson !== false && await hfs8.isFile(joinPaths(options.projectRoot, "package.json"))) {
1966
+ if (options.generatePackageJson !== false && await hfs5.isFile(joinPaths(options.projectRoot, "package.json"))) {
1978
1967
  writeDebug(" \u270D\uFE0F Writing package.json file", options.config);
1979
1968
  const stopwatch = getStopwatch("Write package.json file");
1980
1969
  const packageJsonPath = joinPaths(options.projectRoot, "project.json");
1981
- if (!await hfs8.isFile(packageJsonPath)) {
1970
+ if (!await hfs5.isFile(packageJsonPath)) {
1982
1971
  throw new Error("Cannot find package.json configuration");
1983
1972
  }
1984
- let packageJson = await hfs8.json(joinPaths(options.config.workspaceRoot, options.projectRoot, "package.json"));
1973
+ let packageJson = await hfs5.json(joinPaths(options.config.workspaceRoot, options.projectRoot, "package.json"));
1985
1974
  if (!packageJson) {
1986
1975
  throw new Error("Cannot find package.json configuration file");
1987
1976
  }
@@ -2159,21 +2148,25 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
2159
2148
  });
2160
2149
 
2161
2150
  // ../unbuild/src/build.ts
2162
- import { hfs as hfs10 } from "@humanfs/node";
2163
- import { createProjectGraphAsync as createProjectGraphAsync6, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph5, writeJsonFile as writeJsonFile3 } from "@nx/devkit";
2151
+ import { readCachedProjectGraph as readCachedProjectGraph4, writeJsonFile as writeJsonFile3 } from "@nx/devkit";
2164
2152
  import { getHelperDependency as getHelperDependency2, HelperDependency as HelperDependency2 } from "@nx/js";
2165
2153
  import { calculateProjectBuildableDependencies as calculateProjectBuildableDependencies3 } from "@nx/js/src/utils/buildable-libs-utils";
2166
2154
  import defu3 from "defu";
2155
+ import { existsSync as existsSync4 } from "node:fs";
2156
+ import { readFile as readFile5 } from "node:fs/promises";
2167
2157
  import { relative as relative4 } from "node:path";
2168
2158
  import { findWorkspaceRoot as findWorkspaceRoot4 } from "nx/src/utils/find-workspace-root";
2169
2159
  import { build as unbuild } from "unbuild";
2170
2160
 
2171
2161
  // ../unbuild/src/clean.ts
2172
- import { hfs as hfs9 } from "@humanfs/node";
2162
+ import { rm } from "node:fs/promises";
2173
2163
  async function clean3(name = "Unbuild", directory, config) {
2174
2164
  writeDebug(` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
2175
2165
  const stopwatch = getStopwatch(`${name} output clean`);
2176
- await hfs9.deleteAll(directory);
2166
+ await rm(directory, {
2167
+ recursive: true,
2168
+ force: true
2169
+ });
2177
2170
  stopwatch();
2178
2171
  }
2179
2172
  __name(clean3, "clean");
@@ -2224,28 +2217,8 @@ ${error ? error.message : "Unknown build error"}
2224
2217
  }
2225
2218
  }), "onErrorPlugin");
2226
2219
 
2227
- // ../unbuild/src/plugins/swc.ts
2228
- var swcPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => {
2229
- const { transform: transform3 } = __require("@swc/core");
2230
- return {
2231
- name: "storm:swc",
2232
- transform(code, filename) {
2233
- return transform3(code, {
2234
- filename,
2235
- jsc: {
2236
- transform: {
2237
- react: {
2238
- runtime: "automatic"
2239
- }
2240
- }
2241
- }
2242
- });
2243
- }
2244
- };
2245
- }, "swcPlugin");
2246
-
2247
2220
  // ../unbuild/src/plugins/tsc.ts
2248
- import { createProjectGraphAsync as createProjectGraphAsync5 } from "@nx/devkit";
2221
+ import { readCachedProjectGraph as readCachedProjectGraph3 } from "@nx/devkit";
2249
2222
  import { calculateProjectBuildableDependencies as calculateProjectBuildableDependencies2 } from "@nx/js/src/utils/buildable-libs-utils";
2250
2223
  import { getHelperDependency, HelperDependency } from "@nx/js/src/utils/compiler-helper-dependency";
2251
2224
  import ts2Plugin from "rollup-plugin-typescript2";
@@ -2278,9 +2251,7 @@ __name(createTsCompilerOptions, "createTsCompilerOptions");
2278
2251
 
2279
2252
  // ../unbuild/src/plugins/tsc.ts
2280
2253
  var tscPlugin2 = /* @__PURE__ */ __name(async (options, resolvedOptions) => {
2281
- const projectGraph = await createProjectGraphAsync5({
2282
- exitOnError: true
2283
- });
2254
+ const projectGraph = readCachedProjectGraph3();
2284
2255
  const result = calculateProjectBuildableDependencies2(void 0, projectGraph, resolvedOptions.config.workspaceRoot, resolvedOptions.projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
2285
2256
  let dependencies = result.dependencies;
2286
2257
  const tsLibDependency = getHelperDependency(HelperDependency.tsc, resolvedOptions.tsconfig, dependencies, projectGraph, true);
@@ -2299,37 +2270,39 @@ var tscPlugin2 = /* @__PURE__ */ __name(async (options, resolvedOptions) => {
2299
2270
 
2300
2271
  // ../unbuild/src/plugins/type-definitions.ts
2301
2272
  import { relative as relative3 } from "node:path";
2302
- var typeDefinitions = /* @__PURE__ */ __name((options, resolvedOptions) => ({
2303
- name: "storm:dts-bundle",
2304
- async generateBundle(_opts, bundle) {
2305
- for (const file of Object.values(bundle)) {
2306
- if (file.type === "asset" || !file.isEntry || file.facadeModuleId == null) {
2307
- continue;
2308
- }
2309
- const hasDefaultExport = file.exports.includes("default");
2310
- const entrySourceFileName = relative3(options.projectRoot, file.facadeModuleId);
2311
- const entrySourceDtsName = entrySourceFileName.replace(/\.[cm]?[jt]sx?$/, "");
2312
- const dtsFileName = file.fileName.replace(/\.[cm]?js$/, ".d.ts");
2313
- const relativeSourceDtsName = JSON.stringify("./" + entrySourceDtsName);
2314
- const dtsFileSource = hasDefaultExport ? `
2273
+ function typeDefinitions(projectRoot) {
2274
+ return {
2275
+ name: "storm:dts-bundle",
2276
+ async generateBundle(_opts, bundle) {
2277
+ for (const file of Object.values(bundle)) {
2278
+ if (file.type === "asset" || !file.isEntry || file.facadeModuleId == null) {
2279
+ continue;
2280
+ }
2281
+ const hasDefaultExport = file.exports.includes("default");
2282
+ const entrySourceFileName = relative3(projectRoot, file.facadeModuleId);
2283
+ const entrySourceDtsName = entrySourceFileName.replace(/\.[cm]?[jt]sx?$/, "");
2284
+ const dtsFileName = file.fileName.replace(/\.[cm]?js$/, ".d.ts");
2285
+ const relativeSourceDtsName = JSON.stringify("./" + entrySourceDtsName);
2286
+ const dtsFileSource = hasDefaultExport ? `
2315
2287
  export * from ${relativeSourceDtsName};
2316
2288
  export { default } from ${relativeSourceDtsName};
2317
2289
  ` : `export * from ${relativeSourceDtsName};
2318
2290
  `;
2319
- this.emitFile({
2320
- type: "asset",
2321
- fileName: dtsFileName,
2322
- source: dtsFileSource
2323
- });
2291
+ this.emitFile({
2292
+ type: "asset",
2293
+ fileName: dtsFileName,
2294
+ source: dtsFileSource
2295
+ });
2296
+ }
2324
2297
  }
2325
- }
2326
- }), "typeDefinitions");
2298
+ };
2299
+ }
2300
+ __name(typeDefinitions, "typeDefinitions");
2327
2301
 
2328
2302
  // ../unbuild/src/config.ts
2329
2303
  var getDefaultBuildPlugins2 = /* @__PURE__ */ __name(async (options, resolvedOptions) => Promise.all([
2330
2304
  analyzePlugin(options, resolvedOptions),
2331
- swcPlugin(options, resolvedOptions),
2332
- typeDefinitions(options, resolvedOptions),
2305
+ typeDefinitions(resolvedOptions.projectRoot),
2333
2306
  tscPlugin2(options, resolvedOptions),
2334
2307
  onErrorPlugin2(options, resolvedOptions)
2335
2308
  ].map((plugin) => Promise.resolve(plugin))), "getDefaultBuildPlugins");
@@ -2354,38 +2327,34 @@ async function resolveOptions3(options) {
2354
2327
  options = defu3(options, configFile);
2355
2328
  }
2356
2329
  }
2357
- const projectGraph = await createProjectGraphAsync6({
2358
- exitOnError: true
2359
- });
2330
+ const projectGraph = readCachedProjectGraph4();
2360
2331
  const projectJsonPath = joinPaths(config.workspaceRoot, projectRoot, "project.json");
2361
- if (!await hfs10.isFile(projectJsonPath)) {
2332
+ if (!existsSync4(projectJsonPath)) {
2362
2333
  throw new Error("Cannot find project.json configuration");
2363
2334
  }
2364
- const projectJson = await hfs10.json(projectJsonPath);
2335
+ const projectJsonContent = await readFile5(projectJsonPath, "utf8");
2336
+ const projectJson = JSON.parse(projectJsonContent);
2365
2337
  const projectName = projectJson.name;
2366
2338
  const packageJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "package.json");
2367
- if (!await hfs10.isFile(packageJsonPath)) {
2339
+ if (!existsSync4(packageJsonPath)) {
2368
2340
  throw new Error("Cannot find package.json configuration");
2369
2341
  }
2370
- const packageJson = await hfs10.json(packageJsonPath);
2342
+ const packageJsonContent = await readFile5(packageJsonPath, "utf8");
2343
+ const packageJson = JSON.parse(packageJsonContent);
2371
2344
  let tsconfig = options.tsconfig;
2372
2345
  if (!tsconfig) {
2373
2346
  tsconfig = joinPaths(workspaceRoot3.dir, projectRoot, "tsconfig.json");
2374
2347
  }
2375
- if (!await hfs10.isFile(tsconfig)) {
2348
+ if (!existsSync4(tsconfig)) {
2376
2349
  throw new Error("Cannot find tsconfig.json configuration");
2377
2350
  }
2378
2351
  let sourceRoot = projectJson.sourceRoot;
2379
2352
  if (!sourceRoot) {
2380
2353
  sourceRoot = joinPaths(projectRoot, "src");
2381
2354
  }
2382
- if (!await hfs10.isDirectory(sourceRoot)) {
2355
+ if (!existsSync4(sourceRoot)) {
2383
2356
  throw new Error("Cannot find sourceRoot directory");
2384
2357
  }
2385
- const projectConfigurations = readProjectsConfigurationFromProjectGraph5(projectGraph);
2386
- if (!projectConfigurations?.projects?.[projectName]) {
2387
- throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
2388
- }
2389
2358
  const result = calculateProjectBuildableDependencies3(void 0, projectGraph, workspaceRoot3.dir, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
2390
2359
  let dependencies = result.dependencies;
2391
2360
  const tsLibDependency = getHelperDependency2(HelperDependency2.tsc, tsconfig, dependencies, projectGraph, true);
@@ -2506,21 +2475,21 @@ async function resolveOptions3(options) {
2506
2475
  }
2507
2476
  __name(resolveOptions3, "resolveOptions");
2508
2477
  async function generatePackageJson3(options) {
2509
- if (options.generatePackageJson !== false && await hfs10.isFile(joinPaths(options.projectRoot, "package.json"))) {
2478
+ if (options.generatePackageJson !== false && existsSync4(joinPaths(options.projectRoot, "package.json"))) {
2510
2479
  writeDebug(" \u270D\uFE0F Writing package.json file", options.config);
2511
2480
  const stopwatch = getStopwatch("Write package.json file");
2512
2481
  const packageJsonPath = joinPaths(options.projectRoot, "project.json");
2513
- if (!await hfs10.isFile(packageJsonPath)) {
2482
+ if (!existsSync4(packageJsonPath)) {
2514
2483
  throw new Error("Cannot find package.json configuration");
2515
2484
  }
2516
- let packageJson = await hfs10.json(joinPaths(options.config.workspaceRoot, options.projectRoot, "package.json"));
2517
- if (!packageJson) {
2485
+ let packageJsonContent = await readFile5(joinPaths(options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
2486
+ if (!packageJsonContent) {
2518
2487
  throw new Error("Cannot find package.json configuration file");
2519
2488
  }
2489
+ let packageJson = JSON.parse(packageJsonContent);
2520
2490
  packageJson = await addPackageDependencies(options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
2521
2491
  packageJson = await addWorkspacePackageJsonFields(options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
2522
- packageJson = await addPackageJsonExports(options.sourceRoot, packageJson);
2523
- await writeJsonFile3(joinPaths(options.outDir, "package.json"), packageJson);
2492
+ await writeJsonFile3(joinPaths(options.outDir, "package.json"), await addPackageJsonExports(options.sourceRoot, packageJson));
2524
2493
  stopwatch();
2525
2494
  }
2526
2495
  return options;
@@ -3441,11 +3410,587 @@ import { deriveNewSemverVersion, validReleaseVersionPrefixes } from "nx/src/comm
3441
3410
  import { interpolate } from "nx/src/tasks-runner/utils";
3442
3411
  import { prerelease } from "semver";
3443
3412
 
3413
+ // ../workspace-tools/src/base/base-executor.untyped.ts
3414
+ import { defineUntypedSchema } from "untyped";
3415
+ var base_executor_untyped_default = defineUntypedSchema({
3416
+ $schema: {
3417
+ id: "baseExecutor",
3418
+ title: "Base Executor",
3419
+ description: "A base type definition for an executor schema"
3420
+ },
3421
+ outputPath: {
3422
+ $schema: {
3423
+ title: "Output Path",
3424
+ type: "string",
3425
+ format: "path",
3426
+ description: "The output path for the build"
3427
+ },
3428
+ $default: "dist/{projectRoot}"
3429
+ }
3430
+ });
3431
+
3432
+ // ../workspace-tools/src/base/base-generator.untyped.ts
3433
+ import { defineUntypedSchema as defineUntypedSchema2 } from "untyped";
3434
+ var base_generator_untyped_default = defineUntypedSchema2({
3435
+ $schema: {
3436
+ id: "BaseGeneratorSchema",
3437
+ title: "Base Generator",
3438
+ description: "A type definition for the base Generator schema"
3439
+ },
3440
+ directory: {
3441
+ $schema: {
3442
+ title: "Directory",
3443
+ type: "string",
3444
+ description: "The directory to create the library in"
3445
+ }
3446
+ }
3447
+ });
3448
+
3449
+ // ../workspace-tools/src/base/cargo-base-executor.untyped.ts
3450
+ import { defineUntypedSchema as defineUntypedSchema3 } from "untyped";
3451
+ var cargo_base_executor_untyped_default = defineUntypedSchema3({
3452
+ ...base_executor_untyped_default,
3453
+ $schema: {
3454
+ id: "cargoBaseExecutor",
3455
+ title: "Cargo Base Executor",
3456
+ description: "A base type definition for a Cargo/rust related executor schema"
3457
+ },
3458
+ package: {
3459
+ $schema: {
3460
+ title: "Cargo.toml Path",
3461
+ type: "string",
3462
+ format: "path",
3463
+ description: "The path to the Cargo.toml file"
3464
+ },
3465
+ $default: "{projectRoot}/Cargo.toml"
3466
+ },
3467
+ toolchain: {
3468
+ $schema: {
3469
+ title: "Toolchain",
3470
+ description: "The type of toolchain to use for the build",
3471
+ enum: [
3472
+ "stable",
3473
+ "beta",
3474
+ "nightly"
3475
+ ],
3476
+ default: "stable"
3477
+ },
3478
+ $default: "stable"
3479
+ },
3480
+ target: {
3481
+ $schema: {
3482
+ title: "Target",
3483
+ type: "string",
3484
+ description: "The target to build"
3485
+ }
3486
+ },
3487
+ allTargets: {
3488
+ $schema: {
3489
+ title: "All Targets",
3490
+ type: "boolean",
3491
+ description: "Build all targets"
3492
+ }
3493
+ },
3494
+ profile: {
3495
+ $schema: {
3496
+ title: "Profile",
3497
+ type: "string",
3498
+ description: "The profile to build"
3499
+ }
3500
+ },
3501
+ release: {
3502
+ $schema: {
3503
+ title: "Release",
3504
+ type: "boolean",
3505
+ description: "Build in release mode"
3506
+ }
3507
+ },
3508
+ features: {
3509
+ $schema: {
3510
+ title: "Features",
3511
+ type: "string",
3512
+ description: "The features to build",
3513
+ oneOf: [
3514
+ {
3515
+ type: "string"
3516
+ },
3517
+ {
3518
+ type: "array",
3519
+ items: {
3520
+ type: "string"
3521
+ }
3522
+ }
3523
+ ]
3524
+ }
3525
+ },
3526
+ allFeatures: {
3527
+ $schema: {
3528
+ title: "All Features",
3529
+ type: "boolean",
3530
+ description: "Build all features"
3531
+ }
3532
+ }
3533
+ });
3534
+
3535
+ // ../workspace-tools/src/base/typescript-build-executor.untyped.ts
3536
+ import { defineUntypedSchema as defineUntypedSchema4 } from "untyped";
3537
+ var typescript_build_executor_untyped_default = defineUntypedSchema4({
3538
+ ...base_executor_untyped_default,
3539
+ $schema: {
3540
+ id: "TypeScriptBuildExecutorSchema",
3541
+ title: "TypeScript Build Executor",
3542
+ description: "A type definition for the base TypeScript build executor schema",
3543
+ required: [
3544
+ "entry",
3545
+ "tsconfig"
3546
+ ]
3547
+ },
3548
+ entry: {
3549
+ $schema: {
3550
+ title: "Entry File(s)",
3551
+ format: "path",
3552
+ type: "array",
3553
+ description: "The entry file or files to build",
3554
+ items: {
3555
+ type: "string"
3556
+ }
3557
+ },
3558
+ $default: [
3559
+ "{sourceRoot}/index.ts"
3560
+ ]
3561
+ },
3562
+ tsconfig: {
3563
+ $schema: {
3564
+ title: "TSConfig Path",
3565
+ type: "string",
3566
+ format: "path",
3567
+ description: "The path to the tsconfig file"
3568
+ },
3569
+ $default: "{projectRoot}/tsconfig.json"
3570
+ },
3571
+ bundle: {
3572
+ $schema: {
3573
+ title: "Bundle",
3574
+ type: "boolean",
3575
+ description: "Bundle the output"
3576
+ },
3577
+ $default: false
3578
+ },
3579
+ minify: {
3580
+ $schema: {
3581
+ title: "Minify",
3582
+ type: "boolean",
3583
+ description: "Minify the output"
3584
+ },
3585
+ $default: false
3586
+ },
3587
+ debug: {
3588
+ $schema: {
3589
+ title: "Debug",
3590
+ type: "boolean",
3591
+ description: "Debug the output"
3592
+ },
3593
+ $default: false
3594
+ },
3595
+ sourcemap: {
3596
+ $schema: {
3597
+ title: "Sourcemap",
3598
+ type: "boolean",
3599
+ description: "Generate a sourcemap"
3600
+ },
3601
+ $default: false
3602
+ },
3603
+ silent: {
3604
+ $schema: {
3605
+ title: "Silent",
3606
+ type: "boolean",
3607
+ description: "Should the build run silently - only report errors back to the user"
3608
+ },
3609
+ $default: false
3610
+ },
3611
+ target: {
3612
+ $schema: {
3613
+ title: "Target",
3614
+ type: "string",
3615
+ description: "The target to build",
3616
+ enum: [
3617
+ "es3",
3618
+ "es5",
3619
+ "es6",
3620
+ "es2015",
3621
+ "es2016",
3622
+ "es2017",
3623
+ "es2018",
3624
+ "es2019",
3625
+ "es2020",
3626
+ "es2021",
3627
+ "es2022",
3628
+ "es2023",
3629
+ "es2024",
3630
+ "esnext",
3631
+ "node12",
3632
+ "node14",
3633
+ "node16",
3634
+ "node18",
3635
+ "node20",
3636
+ "node22",
3637
+ "browser",
3638
+ "chrome58",
3639
+ "chrome59",
3640
+ "chrome60"
3641
+ ]
3642
+ },
3643
+ $default: "esnext",
3644
+ $resolve: /* @__PURE__ */ __name((val = "esnext") => val.toLowerCase(), "$resolve")
3645
+ },
3646
+ format: {
3647
+ $schema: {
3648
+ title: "Format",
3649
+ type: "array",
3650
+ description: "The format to build",
3651
+ items: {
3652
+ type: "string",
3653
+ enum: [
3654
+ "cjs",
3655
+ "esm",
3656
+ "iife"
3657
+ ]
3658
+ }
3659
+ },
3660
+ $resolve: /* @__PURE__ */ __name((val = [
3661
+ "cjs",
3662
+ "esm"
3663
+ ]) => [].concat(val), "$resolve")
3664
+ },
3665
+ platform: {
3666
+ $schema: {
3667
+ title: "Platform",
3668
+ type: "string",
3669
+ description: "The platform to build",
3670
+ enum: [
3671
+ "neutral",
3672
+ "node",
3673
+ "browser"
3674
+ ]
3675
+ },
3676
+ $default: "neutral"
3677
+ },
3678
+ external: {
3679
+ $schema: {
3680
+ title: "External",
3681
+ type: "array",
3682
+ description: "The external dependencies"
3683
+ },
3684
+ $resolve: /* @__PURE__ */ __name((val = []) => [].concat(val), "$resolve")
3685
+ },
3686
+ define: {
3687
+ $schema: {
3688
+ title: "Define",
3689
+ type: "object",
3690
+ tsType: "Record<string, string>",
3691
+ description: "The define values"
3692
+ },
3693
+ $resolve: /* @__PURE__ */ __name((val = {}) => val, "$resolve"),
3694
+ $default: {}
3695
+ },
3696
+ env: {
3697
+ $schema: {
3698
+ title: "Environment Variables",
3699
+ type: "object",
3700
+ tsType: "Record<string, string>",
3701
+ description: "The environment variable values"
3702
+ },
3703
+ $resolve: /* @__PURE__ */ __name((val = {}) => val, "$resolve"),
3704
+ $default: {}
3705
+ }
3706
+ });
3707
+
3708
+ // ../workspace-tools/src/base/typescript-library-generator.untyped.ts
3709
+ import { defineUntypedSchema as defineUntypedSchema5 } from "untyped";
3710
+ var typescript_library_generator_untyped_default = defineUntypedSchema5({
3711
+ ...base_generator_untyped_default,
3712
+ $schema: {
3713
+ id: "TypeScriptLibraryGeneratorSchema",
3714
+ title: "TypeScript Library Generator",
3715
+ description: "A type definition for the base TypeScript Library Generator schema",
3716
+ required: [
3717
+ "directory",
3718
+ "name"
3719
+ ]
3720
+ },
3721
+ name: {
3722
+ $schema: {
3723
+ title: "Name",
3724
+ type: "string",
3725
+ description: "The name of the library"
3726
+ }
3727
+ },
3728
+ description: {
3729
+ $schema: {
3730
+ title: "Description",
3731
+ type: "string",
3732
+ description: "The description of the library"
3733
+ }
3734
+ },
3735
+ buildExecutor: {
3736
+ $schema: {
3737
+ title: "Build Executor",
3738
+ type: "string",
3739
+ description: "The executor to use for building the library"
3740
+ },
3741
+ $default: "@storm-software/workspace-tools:unbuild"
3742
+ },
3743
+ platform: {
3744
+ $schema: {
3745
+ title: "Platform",
3746
+ type: "string",
3747
+ description: "The platform to target with the library",
3748
+ enum: [
3749
+ "neutral",
3750
+ "node",
3751
+ "browser"
3752
+ ]
3753
+ },
3754
+ $default: "neutral"
3755
+ },
3756
+ devDependencies: {
3757
+ $schema: {
3758
+ title: "Dev Dependencies",
3759
+ type: "object",
3760
+ description: "The dev dependencies to install"
3761
+ }
3762
+ },
3763
+ dependencies: {
3764
+ $schema: {
3765
+ title: "Dependencies",
3766
+ type: "object",
3767
+ description: "The dependencies to install"
3768
+ }
3769
+ },
3770
+ peerDependencies: {
3771
+ $schema: {
3772
+ title: "Peer Dependencies",
3773
+ type: "object",
3774
+ description: "The peer dependencies to install"
3775
+ }
3776
+ },
3777
+ peerDependenciesMeta: {
3778
+ $schema: {
3779
+ title: "Peer Dependencies Meta",
3780
+ type: "object",
3781
+ description: "The peer dependencies meta"
3782
+ }
3783
+ },
3784
+ tags: {
3785
+ $schema: {
3786
+ title: "Tags",
3787
+ type: "string",
3788
+ description: "The tags for the library"
3789
+ }
3790
+ },
3791
+ tsconfigOptions: {
3792
+ $schema: {
3793
+ title: "TypeScript Config (tsconfig.json) Options",
3794
+ type: "object",
3795
+ description: "The TypeScript configuration options"
3796
+ }
3797
+ },
3798
+ skipFormat: {
3799
+ $schema: {
3800
+ title: "Skip Format",
3801
+ type: "boolean",
3802
+ description: "Skip formatting"
3803
+ }
3804
+ },
3805
+ skipTsConfig: {
3806
+ $schema: {
3807
+ title: "Skip TsConfig",
3808
+ type: "boolean",
3809
+ description: "Skip TypeScript configuration"
3810
+ }
3811
+ },
3812
+ skipPackageJson: {
3813
+ $schema: {
3814
+ title: "Skip Package Json",
3815
+ type: "boolean",
3816
+ description: "Skip package.json"
3817
+ }
3818
+ },
3819
+ includeBabelRc: {
3820
+ $schema: {
3821
+ title: "Include Babel Rc",
3822
+ type: "boolean",
3823
+ description: "Include Babel configuration"
3824
+ }
3825
+ },
3826
+ unitTestRunner: {
3827
+ $schema: {
3828
+ title: "Unit Test Runner",
3829
+ type: "string",
3830
+ enum: [
3831
+ "jest",
3832
+ "vitest",
3833
+ "none"
3834
+ ],
3835
+ description: "The unit test runner to use"
3836
+ }
3837
+ },
3838
+ linter: {
3839
+ $schema: {
3840
+ title: "Linter",
3841
+ type: "string",
3842
+ description: "The linter to use"
3843
+ }
3844
+ },
3845
+ testEnvironment: {
3846
+ $schema: {
3847
+ title: "Test Environment",
3848
+ type: "string",
3849
+ enum: [
3850
+ "jsdom",
3851
+ "node"
3852
+ ],
3853
+ description: "The test environment to use"
3854
+ }
3855
+ },
3856
+ importPath: {
3857
+ $schema: {
3858
+ title: "Import Path",
3859
+ type: "string",
3860
+ description: "The import path for the library"
3861
+ }
3862
+ },
3863
+ js: {
3864
+ $schema: {
3865
+ title: "JavaScript",
3866
+ type: "boolean",
3867
+ description: "Use JavaScript instead of TypeScript"
3868
+ }
3869
+ },
3870
+ pascalCaseFiles: {
3871
+ $schema: {
3872
+ title: "Pascal Case Files",
3873
+ type: "boolean",
3874
+ description: "Use PascalCase for file names"
3875
+ }
3876
+ },
3877
+ strict: {
3878
+ $schema: {
3879
+ title: "Strict",
3880
+ type: "boolean",
3881
+ description: "Enable strict mode"
3882
+ }
3883
+ },
3884
+ publishable: {
3885
+ $schema: {
3886
+ title: "Publishable",
3887
+ type: "boolean",
3888
+ description: "Make the library publishable"
3889
+ }
3890
+ },
3891
+ buildable: {
3892
+ $schema: {
3893
+ title: "Buildable",
3894
+ type: "boolean",
3895
+ description: "Make the library buildable"
3896
+ }
3897
+ },
3898
+ setParserOptionsProject: {
3899
+ $schema: {
3900
+ title: "Set Parser Options Project",
3901
+ type: "boolean",
3902
+ description: "Set parser options project"
3903
+ }
3904
+ },
3905
+ config: {
3906
+ $schema: {
3907
+ title: "Config",
3908
+ type: "string",
3909
+ enum: [
3910
+ "workspace",
3911
+ "project",
3912
+ "npm-scripts"
3913
+ ],
3914
+ description: "The configuration type"
3915
+ }
3916
+ },
3917
+ compiler: {
3918
+ $schema: {
3919
+ title: "Compiler",
3920
+ type: "string",
3921
+ description: "The compiler to use"
3922
+ }
3923
+ },
3924
+ bundler: {
3925
+ $schema: {
3926
+ title: "Bundler",
3927
+ type: "string",
3928
+ description: "The bundler to use"
3929
+ }
3930
+ },
3931
+ skipTypeCheck: {
3932
+ $schema: {
3933
+ title: "Skip Type Check",
3934
+ type: "boolean",
3935
+ description: "Skip type checking"
3936
+ }
3937
+ },
3938
+ minimal: {
3939
+ $schema: {
3940
+ title: "Minimal",
3941
+ type: "boolean",
3942
+ description: "Create a minimal library"
3943
+ }
3944
+ },
3945
+ rootProject: {
3946
+ $schema: {
3947
+ title: "Root Project",
3948
+ type: "boolean",
3949
+ description: "Create a root project"
3950
+ }
3951
+ },
3952
+ simpleName: {
3953
+ $schema: {
3954
+ title: "Simple Name",
3955
+ type: "boolean",
3956
+ description: "Use a simple name for the library"
3957
+ }
3958
+ },
3959
+ addPlugin: {
3960
+ $schema: {
3961
+ title: "Add Plugin",
3962
+ type: "boolean",
3963
+ description: "Add a plugin to the library"
3964
+ }
3965
+ },
3966
+ useProjectJson: {
3967
+ $schema: {
3968
+ title: "Use Project Json",
3969
+ type: "boolean",
3970
+ description: "Use project.json"
3971
+ }
3972
+ },
3973
+ skipWorkspacesWarning: {
3974
+ $schema: {
3975
+ title: "Skip Workspaces Warning",
3976
+ type: "boolean",
3977
+ description: "Skip workspaces warning"
3978
+ }
3979
+ },
3980
+ useTscExecutor: {
3981
+ $schema: {
3982
+ title: "Use Tsc Executor",
3983
+ type: "boolean",
3984
+ description: "Use TSC executor"
3985
+ }
3986
+ }
3987
+ });
3988
+
3444
3989
  // ../workspace-tools/src/utils/get-project-configurations.ts
3445
3990
  import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/project-graph/utils/retrieve-workspace-files";
3446
3991
 
3447
3992
  // ../workspace-tools/src/utils/lock-file.ts
3448
- import { existsSync as existsSync2 } from "node:fs";
3993
+ import { existsSync as existsSync5 } from "node:fs";
3449
3994
  import { join as join2 } from "node:path";
3450
3995
  import { output as output2, readJsonFile, workspaceRoot as workspaceRoot2 } from "nx/src/devkit-exports";
3451
3996
  import { getNpmLockfileDependencies, getNpmLockfileNodes } from "nx/src/plugins/js/lock-file/npm-parser";