@storm-software/esbuild 0.35.12 → 0.35.14

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 (49) hide show
  1. package/README.md +1 -1
  2. package/bin/esbuild.cjs +61 -112
  3. package/dist/assets.cjs +5 -5
  4. package/dist/assets.js +4 -4
  5. package/dist/build.cjs +12 -13
  6. package/dist/build.js +11 -12
  7. package/dist/{chunk-ZF7HGC35.js → chunk-2LYIFO7K.js} +1 -1
  8. package/dist/{chunk-MYUKVBFG.cjs → chunk-55UPQQ65.cjs} +60 -60
  9. package/dist/{chunk-77XQDMGA.js → chunk-7KIT5JE6.js} +7 -7
  10. package/dist/{chunk-4PZGT5BH.cjs → chunk-B3MHVZOK.cjs} +2 -1
  11. package/dist/{chunk-WQVSYEMN.cjs → chunk-BK5GLVSJ.cjs} +11 -11
  12. package/dist/{chunk-EGUR2GEF.cjs → chunk-BWMW4ZUS.cjs} +22 -22
  13. package/dist/{chunk-HIO4TSG7.cjs → chunk-C25ALB4J.cjs} +5 -5
  14. package/dist/{chunk-Q366M4DV.js → chunk-CEJM5IFH.js} +2 -2
  15. package/dist/{chunk-MAXDIXOQ.js → chunk-FHHEEOIV.js} +1 -1
  16. package/dist/{chunk-PB5XBFPA.cjs → chunk-H7NSISN4.cjs} +15 -21
  17. package/dist/{chunk-OV5OYAJ7.cjs → chunk-IULOZ7MO.cjs} +3 -3
  18. package/dist/{chunk-F3R5ZFGB.js → chunk-KV6GNLVF.js} +1 -0
  19. package/dist/{chunk-POMR4JSG.js → chunk-KXZCIMKJ.js} +2 -2
  20. package/dist/{chunk-7VE5Y757.cjs → chunk-LBRDOW2V.cjs} +5 -5
  21. package/dist/{chunk-EBH4ZCN5.js → chunk-NACKZM5D.js} +1 -1
  22. package/dist/{chunk-77TTTWKY.cjs → chunk-NLIYZM5H.cjs} +3 -3
  23. package/dist/{chunk-47A73LZ7.js → chunk-Q3WZPCLD.js} +2 -2
  24. package/dist/{chunk-UAPH32Y3.cjs → chunk-RBXXACL5.cjs} +4 -4
  25. package/dist/{chunk-CV2AM72J.js → chunk-RNXNYWO3.js} +5 -11
  26. package/dist/{chunk-42HYZLJH.cjs → chunk-T4N45NGL.cjs} +3 -3
  27. package/dist/{chunk-SB2WRTQ2.js → chunk-VLK67MTI.js} +3 -3
  28. package/dist/{chunk-PDYSQLJS.js → chunk-VNLMOUVN.js} +1 -1
  29. package/dist/clean.cjs +4 -4
  30. package/dist/clean.js +3 -3
  31. package/dist/config.cjs +5 -5
  32. package/dist/config.js +4 -4
  33. package/dist/context.cjs +6 -7
  34. package/dist/context.js +5 -6
  35. package/dist/index.cjs +12 -13
  36. package/dist/index.js +11 -12
  37. package/dist/package-json.cjs +5 -5
  38. package/dist/package-json.js +4 -4
  39. package/dist/plugins/deps-check.cjs +4 -4
  40. package/dist/plugins/deps-check.js +3 -3
  41. package/dist/plugins/resolve-paths.cjs +82 -5
  42. package/dist/plugins/resolve-paths.js +81 -4
  43. package/dist/tsup.cjs +4 -4
  44. package/dist/tsup.js +3 -3
  45. package/dist/watch.cjs +4 -4
  46. package/dist/watch.js +2 -2
  47. package/package.json +84 -26
  48. package/dist/chunk-HPZXWRI7.cjs +0 -59
  49. package/dist/chunk-KR4NRRPF.js +0 -59
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.35.11-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.35.13-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/bin/esbuild.cjs CHANGED
@@ -907,12 +907,12 @@ function parseTree(text, errors = [], options = ParseOptions.DEFAULT) {
907
907
  }
908
908
  return result;
909
909
  }
910
- function findNodeAtLocation(root, path3) {
910
+ function findNodeAtLocation(root, path2) {
911
911
  if (!root) {
912
912
  return void 0;
913
913
  }
914
914
  let node = root;
915
- for (let segment of path3) {
915
+ for (let segment of path2) {
916
916
  if (typeof segment === "string") {
917
917
  if (node.type !== "object" || !Array.isArray(node.children)) {
918
918
  return void 0;
@@ -942,17 +942,17 @@ function getNodePath(node) {
942
942
  if (!node.parent || !node.parent.children) {
943
943
  return [];
944
944
  }
945
- const path3 = getNodePath(node.parent);
945
+ const path2 = getNodePath(node.parent);
946
946
  if (node.parent.type === "property") {
947
947
  const key = node.parent.children[0].value;
948
- path3.push(key);
948
+ path2.push(key);
949
949
  } else if (node.parent.type === "array") {
950
950
  const index = node.parent.children.indexOf(node);
951
951
  if (index !== -1) {
952
- path3.push(index);
952
+ path2.push(index);
953
953
  }
954
954
  }
955
- return path3;
955
+ return path2;
956
956
  }
957
957
  function getNodeValue(node) {
958
958
  switch (node.type) {
@@ -1335,14 +1335,14 @@ var init_parser = __esm({
1335
1335
 
1336
1336
  // ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/edit.js
1337
1337
  function setProperty(text, originalPath, value, options) {
1338
- const path3 = originalPath.slice();
1338
+ const path2 = originalPath.slice();
1339
1339
  const errors = [];
1340
1340
  const root = parseTree(text, errors);
1341
1341
  let parent = void 0;
1342
1342
  let lastSegment = void 0;
1343
- while (path3.length > 0) {
1344
- lastSegment = path3.pop();
1345
- parent = findNodeAtLocation(root, path3);
1343
+ while (path2.length > 0) {
1344
+ lastSegment = path2.pop();
1345
+ parent = findNodeAtLocation(root, path2);
1346
1346
  if (parent === void 0 && value !== void 0) {
1347
1347
  if (typeof lastSegment === "string") {
1348
1348
  value = { [lastSegment]: value };
@@ -1545,8 +1545,8 @@ function printParseErrorCode(code) {
1545
1545
  function format2(documentText, range, options) {
1546
1546
  return format(documentText, range, options);
1547
1547
  }
1548
- function modify(text, path3, value, options) {
1549
- return setProperty(text, path3, value, options);
1548
+ function modify(text, path2, value, options) {
1549
+ return setProperty(text, path2, value, options);
1550
1550
  }
1551
1551
  function applyEdits(text, edits) {
1552
1552
  let sortedEdits = edits.slice(0).sort((a, b) => {
@@ -2573,15 +2573,15 @@ var require_route = __commonJS({
2573
2573
  };
2574
2574
  }
2575
2575
  function wrapConversion(toModel, graph) {
2576
- const path3 = [graph[toModel].parent, toModel];
2576
+ const path2 = [graph[toModel].parent, toModel];
2577
2577
  let fn = conversions[graph[toModel].parent][toModel];
2578
2578
  let cur = graph[toModel].parent;
2579
2579
  while (graph[cur].parent) {
2580
- path3.unshift(graph[cur].parent);
2580
+ path2.unshift(graph[cur].parent);
2581
2581
  fn = link(conversions[graph[cur].parent][cur], fn);
2582
2582
  cur = graph[cur].parent;
2583
2583
  }
2584
- fn.conversion = path3;
2584
+ fn.conversion = path2;
2585
2585
  return fn;
2586
2586
  }
2587
2587
  module2.exports = function(fromModel) {
@@ -10147,56 +10147,56 @@ var require_fileutils = __commonJS({
10147
10147
  var path_1 = require("path");
10148
10148
  var tar = require_tar_stream();
10149
10149
  var zlib_1 = require("zlib");
10150
- function readJsonFile(path3, options) {
10151
- const content = (0, node_fs_1.readFileSync)(path3, "utf-8");
10150
+ function readJsonFile(path2, options) {
10151
+ const content = (0, node_fs_1.readFileSync)(path2, "utf-8");
10152
10152
  if (options) {
10153
10153
  options.endsWithNewline = content.charCodeAt(content.length - 1) === 10;
10154
10154
  }
10155
10155
  try {
10156
10156
  return (0, json_1.parseJson)(content, options);
10157
10157
  } catch (e) {
10158
- e.message = e.message.replace("JSON", path3);
10158
+ e.message = e.message.replace("JSON", path2);
10159
10159
  throw e;
10160
10160
  }
10161
10161
  }
10162
- function readYamlFile(path3, options) {
10163
- const content = (0, node_fs_1.readFileSync)(path3, "utf-8");
10162
+ function readYamlFile(path2, options) {
10163
+ const content = (0, node_fs_1.readFileSync)(path2, "utf-8");
10164
10164
  const { load } = require_js_yaml();
10165
- return load(content, { ...options, filename: path3 });
10165
+ return load(content, { ...options, filename: path2 });
10166
10166
  }
10167
- function writeJsonFile2(path3, data, options) {
10168
- (0, node_fs_1.mkdirSync)((0, path_1.dirname)(path3), { recursive: true });
10167
+ function writeJsonFile2(path2, data, options) {
10168
+ (0, node_fs_1.mkdirSync)((0, path_1.dirname)(path2), { recursive: true });
10169
10169
  const serializedJson = (0, json_1.serializeJson)(data, options);
10170
10170
  const content = options?.appendNewLine ? `${serializedJson}
10171
10171
  ` : serializedJson;
10172
- (0, node_fs_1.writeFileSync)(path3, content, { encoding: "utf-8" });
10172
+ (0, node_fs_1.writeFileSync)(path2, content, { encoding: "utf-8" });
10173
10173
  }
10174
- async function writeJsonFileAsync(path3, data, options) {
10175
- await (0, promises_1.mkdir)((0, path_1.dirname)(path3), { recursive: true });
10174
+ async function writeJsonFileAsync(path2, data, options) {
10175
+ await (0, promises_1.mkdir)((0, path_1.dirname)(path2), { recursive: true });
10176
10176
  const serializedJson = (0, json_1.serializeJson)(data, options);
10177
10177
  const content = options?.appendNewLine ? `${serializedJson}
10178
10178
  ` : serializedJson;
10179
- await (0, promises_1.writeFile)(path3, content, { encoding: "utf-8" });
10179
+ await (0, promises_1.writeFile)(path2, content, { encoding: "utf-8" });
10180
10180
  }
10181
- function directoryExists(path3) {
10181
+ function directoryExists(path2) {
10182
10182
  try {
10183
- return (0, node_fs_1.statSync)(path3).isDirectory();
10183
+ return (0, node_fs_1.statSync)(path2).isDirectory();
10184
10184
  } catch {
10185
10185
  return false;
10186
10186
  }
10187
10187
  }
10188
- function fileExists(path3) {
10188
+ function fileExists(path2) {
10189
10189
  try {
10190
- return (0, node_fs_1.statSync)(path3).isFile();
10190
+ return (0, node_fs_1.statSync)(path2).isFile();
10191
10191
  } catch {
10192
10192
  return false;
10193
10193
  }
10194
10194
  }
10195
- function createDirectory(path3) {
10196
- (0, node_fs_1.mkdirSync)(path3, { recursive: true });
10195
+ function createDirectory(path2) {
10196
+ (0, node_fs_1.mkdirSync)(path2, { recursive: true });
10197
10197
  }
10198
- function isRelativePath(path3) {
10199
- return path3 === "." || path3 === ".." || path3.startsWith("./") || path3.startsWith("../");
10198
+ function isRelativePath(path2) {
10199
+ return path2 === "." || path2 === ".." || path2.startsWith("./") || path2.startsWith("../");
10200
10200
  }
10201
10201
  async function extractFileFromTarball(tarballPath, file, destinationFilePath) {
10202
10202
  return new Promise((resolve, reject) => {
@@ -10227,8 +10227,8 @@ var require_fileutils = __commonJS({
10227
10227
  (0, node_fs_1.createReadStream)(tarballPath).pipe((0, zlib_1.createGunzip)()).pipe(tarExtractStream);
10228
10228
  });
10229
10229
  }
10230
- function readFileIfExisting(path3) {
10231
- return (0, node_fs_1.existsSync)(path3) ? (0, node_fs_1.readFileSync)(path3, "utf-8") : "";
10230
+ function readFileIfExisting(path2) {
10231
+ return (0, node_fs_1.existsSync)(path2) ? (0, node_fs_1.readFileSync)(path2, "utf-8") : "";
10232
10232
  }
10233
10233
  }
10234
10234
  });
@@ -10241,7 +10241,7 @@ var require_workspace_root = __commonJS({
10241
10241
  exports2.workspaceRoot = void 0;
10242
10242
  exports2.setWorkspaceRoot = setWorkspaceRoot;
10243
10243
  exports2.workspaceRootInner = workspaceRootInner;
10244
- var path3 = require("path");
10244
+ var path2 = require("path");
10245
10245
  var fileutils_1 = require_fileutils();
10246
10246
  exports2.workspaceRoot = workspaceRootInner(process.cwd(), process.cwd());
10247
10247
  function setWorkspaceRoot(root) {
@@ -10250,19 +10250,19 @@ var require_workspace_root = __commonJS({
10250
10250
  function workspaceRootInner(dir, candidateRoot) {
10251
10251
  if (process.env.NX_WORKSPACE_ROOT_PATH)
10252
10252
  return process.env.NX_WORKSPACE_ROOT_PATH;
10253
- if (path3.dirname(dir) === dir)
10253
+ if (path2.dirname(dir) === dir)
10254
10254
  return candidateRoot;
10255
10255
  const matches = [
10256
- path3.join(dir, "nx.json"),
10257
- path3.join(dir, "nx"),
10258
- path3.join(dir, "nx.bat")
10256
+ path2.join(dir, "nx.json"),
10257
+ path2.join(dir, "nx"),
10258
+ path2.join(dir, "nx.bat")
10259
10259
  ];
10260
10260
  if (matches.some((x) => (0, fileutils_1.fileExists)(x))) {
10261
10261
  return dir;
10262
- } else if ((0, fileutils_1.fileExists)(path3.join(dir, "node_modules", "nx", "package.json"))) {
10263
- return workspaceRootInner(path3.dirname(dir), dir);
10262
+ } else if ((0, fileutils_1.fileExists)(path2.join(dir, "node_modules", "nx", "package.json"))) {
10263
+ return workspaceRootInner(path2.dirname(dir), dir);
10264
10264
  } else {
10265
- return workspaceRootInner(path3.dirname(dir), candidateRoot);
10265
+ return workspaceRootInner(path2.dirname(dir), candidateRoot);
10266
10266
  }
10267
10267
  }
10268
10268
  }
@@ -10352,7 +10352,7 @@ var import_devkit = require("@nx/devkit");
10352
10352
  var import_build_tools3 = require("@storm-software/build-tools");
10353
10353
  var import_get_config = require("@storm-software/config-tools/get-config");
10354
10354
  var import_console3 = require("@storm-software/config-tools/logger/console");
10355
- var import_correct_paths2 = require("@storm-software/config-tools/utilities/correct-paths");
10355
+ var import_correct_paths = require("@storm-software/config-tools/utilities/correct-paths");
10356
10356
  var import_defu = __toESM(require("defu"), 1);
10357
10357
  var import_node_fs = require("fs");
10358
10358
  var import_promises2 = __toESM(require("fs/promises"), 1);
@@ -10404,54 +10404,6 @@ var DEFAULT_BUILD_OPTIONS = {
10404
10404
  }
10405
10405
  };
10406
10406
 
10407
- // src/plugins/resolve-paths.ts
10408
- var import_correct_paths = require("@storm-software/config-tools/utilities/correct-paths");
10409
- var import_node_path = __toESM(require("path"), 1);
10410
- function resolvePathsConfig(options, cwd, projectRoot) {
10411
- if (options?.compilerOptions?.paths) {
10412
- const paths = Object.entries(options.compilerOptions.paths);
10413
- const resolvedPaths = paths.map(([key, paths2]) => {
10414
- return [key, paths2.map((v) => import_node_path.default.resolve(cwd, v))];
10415
- });
10416
- return Object.fromEntries(resolvedPaths);
10417
- }
10418
- if (options.extends) {
10419
- const extendsPath = import_node_path.default.resolve(
10420
- projectRoot ? (0, import_correct_paths.joinPaths)(cwd, projectRoot, options.extends) : (0, import_correct_paths.joinPaths)(cwd, options.extends)
10421
- );
10422
- const extendsDir = import_node_path.default.dirname(extendsPath);
10423
- const extendsConfig = require(extendsPath);
10424
- return resolvePathsConfig(extendsConfig, extendsDir);
10425
- }
10426
- return [];
10427
- }
10428
- var resolvePathsPlugin = (context) => ({
10429
- name: "storm:resolve-paths",
10430
- setup(build3) {
10431
- const parentTsConfig = build3.initialOptions.tsconfig ? require((0, import_correct_paths.joinPaths)(
10432
- context.workspaceConfig.workspaceRoot,
10433
- build3.initialOptions.tsconfig.replace(
10434
- context.workspaceConfig.workspaceRoot,
10435
- ""
10436
- )
10437
- )) : require((0, import_correct_paths.joinPaths)(context.workspaceConfig.workspaceRoot, "tsconfig.json"));
10438
- const resolvedTsPaths = resolvePathsConfig(
10439
- parentTsConfig,
10440
- context.workspaceConfig.workspaceRoot,
10441
- context.options.projectRoot
10442
- );
10443
- const packagesRegex = new RegExp(
10444
- `^(${Object.keys(resolvedTsPaths).join("|")})$`
10445
- );
10446
- build3.onResolve({ filter: packagesRegex }, (args) => {
10447
- if (build3.initialOptions.external?.includes(args.path)) {
10448
- return { path: args.path, external: true };
10449
- }
10450
- return { path: `${resolvedTsPaths[args.path][0]}/index.ts` };
10451
- });
10452
- }
10453
- });
10454
-
10455
10407
  // src/context.ts
10456
10408
  async function resolveContext(userOptions) {
10457
10409
  const projectRoot = userOptions.projectRoot;
@@ -10467,7 +10419,7 @@ async function resolveContext(userOptions) {
10467
10419
  const projectGraph = await (0, import_devkit.createProjectGraphAsync)({
10468
10420
  exitOnError: true
10469
10421
  });
10470
- const projectJsonPath = (0, import_correct_paths2.joinPaths)(
10422
+ const projectJsonPath = (0, import_correct_paths.joinPaths)(
10471
10423
  workspaceRoot.dir,
10472
10424
  projectRoot,
10473
10425
  "project.json"
@@ -10486,7 +10438,7 @@ async function resolveContext(userOptions) {
10486
10438
  }
10487
10439
  const options = (0, import_defu.default)(userOptions, DEFAULT_BUILD_OPTIONS);
10488
10440
  options.name ??= projectName;
10489
- const packageJsonPath = (0, import_correct_paths2.joinPaths)(
10441
+ const packageJsonPath = (0, import_correct_paths.joinPaths)(
10490
10442
  workspaceRoot.dir,
10491
10443
  options.projectRoot,
10492
10444
  "package.json"
@@ -10497,7 +10449,7 @@ async function resolveContext(userOptions) {
10497
10449
  const env = (0, import_build_tools3.getEnv)("esbuild", options);
10498
10450
  const define = (0, import_defu.default)(options.define ?? {}, env ?? {});
10499
10451
  const resolvedOptions = {
10500
- tsconfig: (0, import_correct_paths2.joinPaths)(workspaceRoot.dir, projectRoot, "tsconfig.json"),
10452
+ tsconfig: (0, import_correct_paths.joinPaths)(workspaceRoot.dir, projectRoot, "tsconfig.json"),
10501
10453
  ...options,
10502
10454
  metafile: userOptions.mode === "development",
10503
10455
  clean: false,
@@ -10523,18 +10475,15 @@ async function resolveContext(userOptions) {
10523
10475
  projectConfigurations,
10524
10476
  projectName,
10525
10477
  projectGraph,
10526
- sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || (0, import_correct_paths2.joinPaths)(resolvedOptions.projectRoot, "src"),
10527
- outputPath: resolvedOptions.outputPath || (0, import_correct_paths2.joinPaths)(
10478
+ sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || (0, import_correct_paths.joinPaths)(resolvedOptions.projectRoot, "src"),
10479
+ outputPath: resolvedOptions.outputPath || (0, import_correct_paths.joinPaths)(
10528
10480
  workspaceConfig.workspaceRoot,
10529
10481
  "dist",
10530
10482
  resolvedOptions.projectRoot
10531
10483
  ),
10532
10484
  minify: resolvedOptions.minify || resolvedOptions.mode === "production"
10533
10485
  };
10534
- context.options.esbuildPlugins = [
10535
- resolvePathsPlugin(context),
10536
- ...context.options.esbuildPlugins ?? []
10537
- ];
10486
+ context.options.esbuildPlugins = [...context.options.esbuildPlugins ?? []];
10538
10487
  return context;
10539
10488
  }
10540
10489
 
@@ -10542,14 +10491,14 @@ async function resolveContext(userOptions) {
10542
10491
  var import_devkit2 = require("@nx/devkit");
10543
10492
  var import_build_tools4 = require("@storm-software/build-tools");
10544
10493
  var import_console4 = require("@storm-software/config-tools/logger/console");
10545
- var import_correct_paths3 = require("@storm-software/config-tools/utilities/correct-paths");
10494
+ var import_correct_paths2 = require("@storm-software/config-tools/utilities/correct-paths");
10546
10495
  var import_node_fs2 = require("fs");
10547
10496
  var import_promises3 = __toESM(require("fs/promises"), 1);
10548
10497
  async function generatePackageJson(context) {
10549
- if (context.options.generatePackageJson !== false && (0, import_node_fs2.existsSync)((0, import_correct_paths3.joinPaths)(context.options.projectRoot, "package.json"))) {
10498
+ if (context.options.generatePackageJson !== false && (0, import_node_fs2.existsSync)((0, import_correct_paths2.joinPaths)(context.options.projectRoot, "package.json"))) {
10550
10499
  (0, import_console4.writeDebug)(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
10551
10500
  const stopwatch = (0, import_console4.getStopwatch)("Write package.json file");
10552
- const packageJsonPath = (0, import_correct_paths3.joinPaths)(
10501
+ const packageJsonPath = (0, import_correct_paths2.joinPaths)(
10553
10502
  context.options.projectRoot,
10554
10503
  "project.json"
10555
10504
  );
@@ -10557,7 +10506,7 @@ async function generatePackageJson(context) {
10557
10506
  throw new Error("Cannot find package.json configuration");
10558
10507
  }
10559
10508
  const packageJsonFile = await import_promises3.default.readFile(
10560
- (0, import_correct_paths3.joinPaths)(
10509
+ (0, import_correct_paths2.joinPaths)(
10561
10510
  context.workspaceConfig.workspaceRoot,
10562
10511
  context.options.projectRoot,
10563
10512
  "package.json"
@@ -10663,7 +10612,7 @@ async function generatePackageJson(context) {
10663
10612
  }
10664
10613
  }
10665
10614
  await (0, import_devkit2.writeJsonFile)(
10666
- (0, import_correct_paths3.joinPaths)(context.outputPath, "package.json"),
10615
+ (0, import_correct_paths2.joinPaths)(context.outputPath, "package.json"),
10667
10616
  packageJson
10668
10617
  );
10669
10618
  stopwatch();
@@ -10674,7 +10623,7 @@ async function generatePackageJson(context) {
10674
10623
  // src/plugins/deps-check.ts
10675
10624
  var import_console5 = require("@storm-software/config-tools/logger/console");
10676
10625
  var import_node_module = require("module");
10677
- var import_node_path2 = __toESM(require("path"), 1);
10626
+ var import_node_path = __toESM(require("path"), 1);
10678
10627
  var unusedIgnore = [
10679
10628
  // these are our dev dependencies
10680
10629
  /@types\/.*?/,
@@ -10703,7 +10652,7 @@ var missingIgnore = [".prisma", "@prisma/client", "ts-toolbelt"];
10703
10652
  var depsCheckPlugin = (bundle) => ({
10704
10653
  name: "storm:deps-check",
10705
10654
  setup(build3) {
10706
- const pkgJsonPath = import_node_path2.default.join(process.cwd(), "package.json");
10655
+ const pkgJsonPath = import_node_path.default.join(process.cwd(), "package.json");
10707
10656
  const pkgContents = require(pkgJsonPath);
10708
10657
  const regDependencies = Object.keys(pkgContents["dependencies"] ?? {});
10709
10658
  const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
@@ -10756,7 +10705,7 @@ ${JSON.stringify(filteredMissingDeps)}
10756
10705
 
10757
10706
  // src/tsup.ts
10758
10707
  var import_console6 = require("@storm-software/config-tools/logger/console");
10759
- var import_correct_paths4 = require("@storm-software/config-tools/utilities/correct-paths");
10708
+ var import_correct_paths3 = require("@storm-software/config-tools/utilities/correct-paths");
10760
10709
  var import_tsup = require("tsup");
10761
10710
  async function executeTsup(context) {
10762
10711
  (0, import_console6.writeDebug)(
@@ -10766,7 +10715,7 @@ async function executeTsup(context) {
10766
10715
  const stopwatch = (0, import_console6.getStopwatch)(`${context.options.name} build`);
10767
10716
  await (0, import_tsup.build)({
10768
10717
  ...context.options,
10769
- outDir: context.options.distDir ? (0, import_correct_paths4.joinPaths)(context.outputPath, context.options.distDir) : context.outputPath,
10718
+ outDir: context.options.distDir ? (0, import_correct_paths3.joinPaths)(context.outputPath, context.options.distDir) : context.outputPath,
10770
10719
  workspaceConfig: context.workspaceConfig
10771
10720
  });
10772
10721
  stopwatch();
package/dist/assets.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk7VE5Y757cjs = require('./chunk-7VE5Y757.cjs');
4
- require('./chunk-MYUKVBFG.cjs');
5
- require('./chunk-UAPH32Y3.cjs');
6
- require('./chunk-4PZGT5BH.cjs');
3
+ var _chunkLBRDOW2Vcjs = require('./chunk-LBRDOW2V.cjs');
4
+ require('./chunk-55UPQQ65.cjs');
5
+ require('./chunk-RBXXACL5.cjs');
6
+ require('./chunk-B3MHVZOK.cjs');
7
7
  require('./chunk-JCICRU7K.cjs');
8
8
 
9
9
 
10
- exports.copyBuildAssets = _chunk7VE5Y757cjs.copyBuildAssets;
10
+ exports.copyBuildAssets = _chunkLBRDOW2Vcjs.copyBuildAssets;
package/dist/assets.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  copyBuildAssets
3
- } from "./chunk-Q366M4DV.js";
4
- import "./chunk-47A73LZ7.js";
5
- import "./chunk-EBH4ZCN5.js";
6
- import "./chunk-F3R5ZFGB.js";
3
+ } from "./chunk-CEJM5IFH.js";
4
+ import "./chunk-Q3WZPCLD.js";
5
+ import "./chunk-NACKZM5D.js";
6
+ import "./chunk-KV6GNLVF.js";
7
7
  import "./chunk-72UBXZRO.js";
8
8
  export {
9
9
  copyBuildAssets
package/dist/build.cjs CHANGED
@@ -1,18 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkEGUR2GEFcjs = require('./chunk-EGUR2GEF.cjs');
4
- require('./chunk-42HYZLJH.cjs');
5
- require('./chunk-7VE5Y757.cjs');
6
- require('./chunk-77TTTWKY.cjs');
7
- require('./chunk-PB5XBFPA.cjs');
8
- require('./chunk-HPZXWRI7.cjs');
9
- require('./chunk-OV5OYAJ7.cjs');
10
- require('./chunk-WQVSYEMN.cjs');
11
- require('./chunk-MYUKVBFG.cjs');
12
- require('./chunk-HIO4TSG7.cjs');
13
- require('./chunk-UAPH32Y3.cjs');
14
- require('./chunk-4PZGT5BH.cjs');
3
+ var _chunkBWMW4ZUScjs = require('./chunk-BWMW4ZUS.cjs');
4
+ require('./chunk-T4N45NGL.cjs');
5
+ require('./chunk-LBRDOW2V.cjs');
6
+ require('./chunk-NLIYZM5H.cjs');
7
+ require('./chunk-H7NSISN4.cjs');
8
+ require('./chunk-IULOZ7MO.cjs');
9
+ require('./chunk-BK5GLVSJ.cjs');
10
+ require('./chunk-55UPQQ65.cjs');
11
+ require('./chunk-C25ALB4J.cjs');
12
+ require('./chunk-RBXXACL5.cjs');
13
+ require('./chunk-B3MHVZOK.cjs');
15
14
  require('./chunk-JCICRU7K.cjs');
16
15
 
17
16
 
18
- exports.build = _chunkEGUR2GEFcjs.build;
17
+ exports.build = _chunkBWMW4ZUScjs.build;
package/dist/build.js CHANGED
@@ -1,17 +1,16 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-77XQDMGA.js";
4
- import "./chunk-PDYSQLJS.js";
5
- import "./chunk-Q366M4DV.js";
6
- import "./chunk-ZF7HGC35.js";
7
- import "./chunk-CV2AM72J.js";
8
- import "./chunk-KR4NRRPF.js";
9
- import "./chunk-MAXDIXOQ.js";
10
- import "./chunk-SB2WRTQ2.js";
11
- import "./chunk-47A73LZ7.js";
12
- import "./chunk-POMR4JSG.js";
13
- import "./chunk-EBH4ZCN5.js";
14
- import "./chunk-F3R5ZFGB.js";
3
+ } from "./chunk-7KIT5JE6.js";
4
+ import "./chunk-VNLMOUVN.js";
5
+ import "./chunk-CEJM5IFH.js";
6
+ import "./chunk-2LYIFO7K.js";
7
+ import "./chunk-RNXNYWO3.js";
8
+ import "./chunk-FHHEEOIV.js";
9
+ import "./chunk-VLK67MTI.js";
10
+ import "./chunk-Q3WZPCLD.js";
11
+ import "./chunk-KXZCIMKJ.js";
12
+ import "./chunk-NACKZM5D.js";
13
+ import "./chunk-KV6GNLVF.js";
15
14
  import "./chunk-72UBXZRO.js";
16
15
  export {
17
16
  build
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-EBH4ZCN5.js";
4
+ } from "./chunk-NACKZM5D.js";
5
5
  import {
6
6
  init_esm_shims
7
7
  } from "./chunk-72UBXZRO.js";