@storm-software/esbuild 0.50.0 → 0.51.1

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 (52) hide show
  1. package/README.md +1 -1
  2. package/bin/esbuild.cjs +10 -10
  3. package/dist/assets.cjs +6 -6
  4. package/dist/assets.js +5 -5
  5. package/dist/build.cjs +12 -12
  6. package/dist/build.js +11 -11
  7. package/dist/{chunk-ODJD6MXD.cjs → chunk-47NX64PH.cjs} +5 -5
  8. package/dist/{chunk-X3DZ5OK7.js → chunk-7BWY3BGW.js} +2 -2
  9. package/dist/{chunk-47V6EQ6C.cjs → chunk-7S2N7N3D.cjs} +64 -64
  10. package/dist/{chunk-27QZEPTJ.cjs → chunk-7TVTZIVE.cjs} +2 -2
  11. package/dist/{chunk-Z2T7Y5BP.js → chunk-D543A34U.js} +1 -1
  12. package/dist/{chunk-PDJKPN5A.cjs → chunk-ED3VWWR5.cjs} +2 -2
  13. package/dist/{chunk-V4OQRIHI.js → chunk-EXPFKRMQ.js} +15 -15
  14. package/dist/{chunk-7BG5MW6F.js → chunk-FOQNA2LU.js} +5 -5
  15. package/dist/{chunk-SNDP6MVM.cjs → chunk-G4GMEAHM.cjs} +9 -9
  16. package/dist/{chunk-JEQDRKFQ.cjs → chunk-HH54I6PD.cjs} +18 -18
  17. package/dist/{chunk-3BP44YM5.cjs → chunk-HLMV2RBF.cjs} +5 -5
  18. package/dist/{chunk-RVOMG3ZA.js → chunk-J7JUCKR5.js} +2 -2
  19. package/dist/{chunk-H3UGI6K3.js → chunk-JSUZIFOI.js} +1 -1
  20. package/dist/chunk-JYUHLS4B.cjs +6 -0
  21. package/dist/{chunk-QDZYEJUZ.cjs → chunk-NBF2ZIGI.cjs} +22 -22
  22. package/dist/{chunk-YBT2VSX7.js → chunk-NNLPQ2CE.js} +3 -3
  23. package/dist/{chunk-R2U7CSOX.cjs → chunk-NT6JOLFV.cjs} +83 -83
  24. package/dist/{chunk-L2G3IGG7.js → chunk-QTEVRHRE.js} +4 -4
  25. package/dist/{chunk-5EQ2JTQP.cjs → chunk-SK6FXSPH.cjs} +7 -7
  26. package/dist/{chunk-QLWZJY6H.cjs → chunk-T3GS5C2B.cjs} +13 -13
  27. package/dist/{chunk-65GBSOHO.js → chunk-VCP6KK35.js} +1 -1
  28. package/dist/{chunk-BPGCR6N5.js → chunk-VYSP7KB2.js} +7 -7
  29. package/dist/{chunk-X33VEVCJ.js → chunk-WAJ7I33E.js} +2 -2
  30. package/dist/{chunk-LLY6GY6I.js → chunk-YHEJID7E.js} +3 -3
  31. package/dist/clean.cjs +4 -4
  32. package/dist/clean.js +3 -3
  33. package/dist/config.cjs +6 -6
  34. package/dist/config.js +5 -5
  35. package/dist/context.cjs +7 -7
  36. package/dist/context.js +6 -6
  37. package/dist/index.cjs +14 -14
  38. package/dist/index.js +12 -12
  39. package/dist/package-json.cjs +6 -6
  40. package/dist/package-json.js +5 -5
  41. package/dist/plugins/deps-check.cjs +6 -6
  42. package/dist/plugins/deps-check.js +2 -2
  43. package/dist/plugins/resolve-paths.cjs +11 -11
  44. package/dist/plugins/resolve-paths.js +2 -2
  45. package/dist/tsup.cjs +5 -5
  46. package/dist/tsup.js +4 -4
  47. package/dist/types.cjs +2 -2
  48. package/dist/types.js +2 -2
  49. package/dist/watch.cjs +6 -6
  50. package/dist/watch.js +2 -2
  51. package/package.json +5 -5
  52. package/dist/chunk-MZQ25SHR.cjs +0 -6
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  joinPaths
3
- } from "./chunk-65GBSOHO.js";
3
+ } from "./chunk-VCP6KK35.js";
4
4
  import {
5
5
  getStopwatch,
6
6
  writeDebug
7
- } from "./chunk-H3UGI6K3.js";
7
+ } from "./chunk-JSUZIFOI.js";
8
8
  import {
9
9
  __commonJS,
10
10
  __dirname,
11
11
  __require,
12
12
  __toESM,
13
13
  init_esm_shims
14
- } from "./chunk-RVOMG3ZA.js";
14
+ } from "./chunk-J7JUCKR5.js";
15
15
 
16
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/dist/chunk-BYH4XDRH.js
16
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/dist/chunk-BYH4XDRH.js
17
17
  var require_chunk_BYH4XDRH = __commonJS({
18
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/dist/chunk-BYH4XDRH.js"(exports) {
18
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/dist/chunk-BYH4XDRH.js"(exports) {
19
19
  "use strict";
20
20
  init_esm_shims();
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24,13 +24,13 @@ var require_chunk_BYH4XDRH = __commonJS({
24
24
  }
25
25
  });
26
26
 
27
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/dist/chunk-TWFEYLU4.js
27
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/dist/chunk-TWFEYLU4.js
28
28
  import * as __import_fs from "fs";
29
29
  import * as __import_path from "path";
30
30
  import * as __import_resolveFrom from "resolve-from";
31
31
  import * as __import_tinyglobby from "tinyglobby";
32
32
  var require_chunk_TWFEYLU4 = __commonJS({
33
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/dist/chunk-TWFEYLU4.js"(exports) {
33
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/dist/chunk-TWFEYLU4.js"(exports) {
34
34
  init_esm_shims();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  function _interopRequireDefault(obj) {
@@ -406,7 +406,7 @@ var require_chunk_TWFEYLU4 = __commonJS({
406
406
  }
407
407
  });
408
408
 
409
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/dist/chunk-VGC3FXLU.js
409
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/dist/chunk-VGC3FXLU.js
410
410
  import * as __import_fs2 from "fs";
411
411
  import * as __import_path2 from "path";
412
412
  import * as __import_joycon from "joycon";
@@ -415,7 +415,7 @@ import * as __import_util from "util";
415
415
  import * as __import_worker_threads from "worker_threads";
416
416
  import * as __import_picocolors from "picocolors";
417
417
  var require_chunk_VGC3FXLU = __commonJS({
418
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/dist/chunk-VGC3FXLU.js"(exports) {
418
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/dist/chunk-VGC3FXLU.js"(exports) {
419
419
  init_esm_shims();
420
420
  var __import___chunkTWFEYLU4_js = __toESM(require_chunk_TWFEYLU4());
421
421
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -642,11 +642,11 @@ var require_chunk_VGC3FXLU = __commonJS({
642
642
  }
643
643
  });
644
644
 
645
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/dist/chunk-JZ25TPTY.js
645
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/dist/chunk-JZ25TPTY.js
646
646
  import * as __import_worker_threads2 from "worker_threads";
647
647
  import * as __import_picocolors2 from "picocolors";
648
648
  var require_chunk_JZ25TPTY = __commonJS({
649
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/dist/chunk-JZ25TPTY.js"(exports) {
649
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/dist/chunk-JZ25TPTY.js"(exports) {
650
650
  init_esm_shims();
651
651
  Object.defineProperty(exports, "__esModule", { value: true });
652
652
  function _interopRequireDefault(obj) {
@@ -694,11 +694,11 @@ var require_chunk_JZ25TPTY = __commonJS({
694
694
  }
695
695
  });
696
696
 
697
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/dist/commonjs-plugin.js
697
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/dist/commonjs-plugin.js
698
698
  import * as __import_fs3 from "fs";
699
699
  import * as __import_esbuild from "esbuild";
700
700
  var require_commonjs_plugin = __commonJS({
701
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/dist/commonjs-plugin.js"(exports, module) {
701
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/dist/commonjs-plugin.js"(exports, module) {
702
702
  init_esm_shims();
703
703
  var __defProp = Object.defineProperty;
704
704
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1026,7 +1026,7 @@ var require_commonjs_plugin = __commonJS({
1026
1026
  }
1027
1027
  });
1028
1028
 
1029
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/dist/index.js
1029
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/dist/index.js
1030
1030
  import * as __import_path3 from "path";
1031
1031
  import * as __import_fs4 from "fs";
1032
1032
  import * as __import_worker_threads3 from "worker_threads";
@@ -1042,7 +1042,7 @@ import * as __import_rollup from "rollup";
1042
1042
  import * as __import_typescript from "typescript";
1043
1043
  import * as __import_chokidar from "chokidar";
1044
1044
  var require_dist = __commonJS({
1045
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/dist/index.js"(exports) {
1045
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/dist/index.js"(exports) {
1046
1046
  init_esm_shims();
1047
1047
  var __import___chunkBYH4XDRH_js = __toESM(require_chunk_BYH4XDRH());
1048
1048
  var __import___chunkVGC3FXLU_js = __toESM(require_chunk_VGC3FXLU());
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS
3
- } from "./chunk-X33VEVCJ.js";
3
+ } from "./chunk-WAJ7I33E.js";
4
4
  import {
5
5
  getEnv,
6
6
  getWorkspaceConfig
7
- } from "./chunk-LLY6GY6I.js";
7
+ } from "./chunk-YHEJID7E.js";
8
8
  import {
9
9
  joinPaths
10
- } from "./chunk-65GBSOHO.js";
10
+ } from "./chunk-VCP6KK35.js";
11
11
  import {
12
12
  formatLogMessage,
13
13
  getStopwatch,
14
14
  writeDebug
15
- } from "./chunk-H3UGI6K3.js";
15
+ } from "./chunk-JSUZIFOI.js";
16
16
  import {
17
17
  init_esm_shims
18
- } from "./chunk-RVOMG3ZA.js";
18
+ } from "./chunk-J7JUCKR5.js";
19
19
 
20
20
  // src/context.ts
21
21
  init_esm_shims();
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkPDJKPN5Acjs = require('./chunk-PDJKPN5A.cjs');
3
+ var _chunkED3VWWR5cjs = require('./chunk-ED3VWWR5.cjs');
4
4
 
5
5
  // ../config-tools/src/logger/console.ts
6
- _chunkPDJKPN5Acjs.init_cjs_shims.call(void 0, );
6
+ _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
7
7
 
8
8
  // ../config-tools/src/types.ts
9
- _chunkPDJKPN5Acjs.init_cjs_shims.call(void 0, );
9
+ _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
10
10
  var LogLevel = {
11
11
  SILENT: 0,
12
12
  FATAL: 10,
@@ -31,7 +31,7 @@ var LogLevelLabel = {
31
31
  };
32
32
 
33
33
  // ../config-tools/src/utilities/colors.ts
34
- _chunkPDJKPN5Acjs.init_cjs_shims.call(void 0, );
34
+ _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
35
35
  var DEFAULT_COLOR_CONFIG = {
36
36
  light: {
37
37
  background: "#fafafa",
@@ -68,7 +68,7 @@ var DEFAULT_COLOR_CONFIG = {
68
68
  };
69
69
 
70
70
  // ../config-tools/src/logger/chalk.ts
71
- _chunkPDJKPN5Acjs.init_cjs_shims.call(void 0, );
71
+ _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
72
72
  var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
73
73
  var chalkDefault = {
74
74
  hex: (_) => (message) => message,
@@ -102,10 +102,10 @@ var getChalk = () => {
102
102
  };
103
103
 
104
104
  // ../config-tools/src/logger/console-icons.ts
105
- _chunkPDJKPN5Acjs.init_cjs_shims.call(void 0, );
105
+ _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
106
106
 
107
107
  // ../config-tools/src/logger/is-unicode-supported.ts
108
- _chunkPDJKPN5Acjs.init_cjs_shims.call(void 0, );
108
+ _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
109
109
  function isUnicodeSupported() {
110
110
  if (process.platform !== "win32") {
111
111
  return process.env.TERM !== "linux";
@@ -130,13 +130,13 @@ var CONSOLE_ICONS = {
130
130
  };
131
131
 
132
132
  // ../config-tools/src/logger/format-timestamp.ts
133
- _chunkPDJKPN5Acjs.init_cjs_shims.call(void 0, );
133
+ _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
134
134
  var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
135
135
  return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
136
136
  };
137
137
 
138
138
  // ../config-tools/src/logger/get-log-level.ts
139
- _chunkPDJKPN5Acjs.init_cjs_shims.call(void 0, );
139
+ _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
140
140
  var getLogLevel = (label) => {
141
141
  switch (label) {
142
142
  case "all":
@@ -1,24 +1,24 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkODJD6MXDcjs = require('./chunk-ODJD6MXD.cjs');
3
+ var _chunk47NX64PHcjs = require('./chunk-47NX64PH.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkR2U7CSOXcjs = require('./chunk-R2U7CSOX.cjs');
7
+ var _chunkNT6JOLFVcjs = require('./chunk-NT6JOLFV.cjs');
8
8
 
9
9
 
10
- var _chunk27QZEPTJcjs = require('./chunk-27QZEPTJ.cjs');
10
+ var _chunk7TVTZIVEcjs = require('./chunk-7TVTZIVE.cjs');
11
11
 
12
12
 
13
13
 
14
14
 
15
- var _chunkSNDP6MVMcjs = require('./chunk-SNDP6MVM.cjs');
15
+ var _chunkG4GMEAHMcjs = require('./chunk-G4GMEAHM.cjs');
16
16
 
17
17
 
18
- var _chunkPDJKPN5Acjs = require('./chunk-PDJKPN5A.cjs');
18
+ var _chunkED3VWWR5cjs = require('./chunk-ED3VWWR5.cjs');
19
19
 
20
20
  // src/context.ts
21
- _chunkPDJKPN5Acjs.init_cjs_shims.call(void 0, );
21
+ _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
22
22
 
23
23
 
24
24
 
@@ -33,15 +33,15 @@ async function resolveContext(userOptions) {
33
33
  if (!workspaceRoot) {
34
34
  throw new Error("Cannot find Nx workspace root");
35
35
  }
36
- const workspaceConfig = await _chunkR2U7CSOXcjs.getWorkspaceConfig.call(void 0, true, {
36
+ const workspaceConfig = await _chunkNT6JOLFVcjs.getWorkspaceConfig.call(void 0, true, {
37
37
  workspaceRoot: workspaceRoot.dir
38
38
  });
39
- _chunkSNDP6MVMcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
40
- const stopwatch = _chunkSNDP6MVMcjs.getStopwatch.call(void 0, "Build options resolution");
39
+ _chunkG4GMEAHMcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
40
+ const stopwatch = _chunkG4GMEAHMcjs.getStopwatch.call(void 0, "Build options resolution");
41
41
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
42
42
  exitOnError: true
43
43
  });
44
- const projectJsonPath = _chunk27QZEPTJcjs.joinPaths.call(void 0,
44
+ const projectJsonPath = _chunk7TVTZIVEcjs.joinPaths.call(void 0,
45
45
  workspaceRoot.dir,
46
46
  projectRoot,
47
47
  "project.json"
@@ -58,9 +58,9 @@ async function resolveContext(userOptions) {
58
58
  "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."
59
59
  );
60
60
  }
61
- const options = _defu2.default.call(void 0, userOptions, _chunkODJD6MXDcjs.DEFAULT_BUILD_OPTIONS);
61
+ const options = _defu2.default.call(void 0, userOptions, _chunk47NX64PHcjs.DEFAULT_BUILD_OPTIONS);
62
62
  options.name ??= projectName;
63
- const packageJsonPath = _chunk27QZEPTJcjs.joinPaths.call(void 0,
63
+ const packageJsonPath = _chunk7TVTZIVEcjs.joinPaths.call(void 0,
64
64
  workspaceRoot.dir,
65
65
  options.projectRoot,
66
66
  "package.json"
@@ -68,11 +68,11 @@ async function resolveContext(userOptions) {
68
68
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
69
69
  throw new Error("Cannot find package.json configuration");
70
70
  }
71
- const env = _chunkR2U7CSOXcjs.getEnv.call(void 0, "esbuild", options);
71
+ const env = _chunkNT6JOLFVcjs.getEnv.call(void 0, "esbuild", options);
72
72
  const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
73
73
  const resolvedOptions = {
74
74
  ...options,
75
- tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunk27QZEPTJcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
75
+ tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunk7TVTZIVEcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
76
76
  metafile: userOptions.mode === "development",
77
77
  clean: false,
78
78
  env,
@@ -97,8 +97,8 @@ async function resolveContext(userOptions) {
97
97
  projectConfigurations,
98
98
  projectName,
99
99
  projectGraph,
100
- sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunk27QZEPTJcjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
101
- outputPath: resolvedOptions.outputPath || _chunk27QZEPTJcjs.joinPaths.call(void 0,
100
+ sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunk7TVTZIVEcjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
101
+ outputPath: resolvedOptions.outputPath || _chunk7TVTZIVEcjs.joinPaths.call(void 0,
102
102
  workspaceConfig.workspaceRoot,
103
103
  "dist",
104
104
  resolvedOptions.projectRoot
@@ -107,10 +107,10 @@ async function resolveContext(userOptions) {
107
107
  };
108
108
  context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
109
109
  if (context.options.verbose) {
110
- _chunkSNDP6MVMcjs.writeDebug.call(void 0,
110
+ _chunkG4GMEAHMcjs.writeDebug.call(void 0,
111
111
  ` \u2699\uFE0F Build options resolved:
112
112
 
113
- ${_chunkSNDP6MVMcjs.formatLogMessage.call(void 0, context.options)}`,
113
+ ${_chunkG4GMEAHMcjs.formatLogMessage.call(void 0, context.options)}`,
114
114
  workspaceConfig
115
115
  );
116
116
  }
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkSNDP6MVMcjs = require('./chunk-SNDP6MVM.cjs');
4
+ var _chunkG4GMEAHMcjs = require('./chunk-G4GMEAHM.cjs');
5
5
 
6
6
 
7
- var _chunkPDJKPN5Acjs = require('./chunk-PDJKPN5A.cjs');
7
+ var _chunkED3VWWR5cjs = require('./chunk-ED3VWWR5.cjs');
8
8
 
9
9
  // src/clean.ts
10
- _chunkPDJKPN5Acjs.init_cjs_shims.call(void 0, );
10
+ _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
11
11
  var _promises = require('fs/promises');
12
12
  async function clean(name = "ESBuild", directory, config) {
13
- _chunkSNDP6MVMcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
14
- const stopwatch = _chunkSNDP6MVMcjs.getStopwatch.call(void 0, `${name} output clean`);
13
+ _chunkG4GMEAHMcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
14
+ const stopwatch = _chunkG4GMEAHMcjs.getStopwatch.call(void 0, `${name} output clean`);
15
15
  await cleanDirectories(directory);
16
16
  stopwatch();
17
17
  }
@@ -33,12 +33,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  mod
34
34
  ));
35
35
 
36
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/assets/esm_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/assets/esm_shims.js
37
37
  import { fileURLToPath } from "url";
38
38
  import path from "path";
39
39
  var getFilename, getDirname, __dirname;
40
40
  var init_esm_shims = __esm({
41
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/assets/esm_shims.js"() {
41
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__951eea6f126fd84bd771c4f315c150af/node_modules/tsup/assets/esm_shims.js"() {
42
42
  getFilename = () => fileURLToPath(import.meta.url);
43
43
  getDirname = () => path.dirname(getFilename());
44
44
  __dirname = /* @__PURE__ */ getDirname();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "./chunk-RVOMG3ZA.js";
3
+ } from "./chunk-J7JUCKR5.js";
4
4
 
5
5
  // ../config-tools/src/logger/console.ts
6
6
  init_esm_shims();
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ var _chunkED3VWWR5cjs = require('./chunk-ED3VWWR5.cjs');
4
+
5
+ // src/types.ts
6
+ _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk5EQ2JTQPcjs = require('./chunk-5EQ2JTQP.cjs');
3
+ var _chunkSK6FXSPHcjs = require('./chunk-SK6FXSPH.cjs');
4
4
 
5
5
 
6
- var _chunk3BP44YM5cjs = require('./chunk-3BP44YM5.cjs');
6
+ var _chunkHLMV2RBFcjs = require('./chunk-HLMV2RBF.cjs');
7
7
 
8
8
 
9
- var _chunkJEQDRKFQcjs = require('./chunk-JEQDRKFQ.cjs');
9
+ var _chunkHH54I6PDcjs = require('./chunk-HH54I6PD.cjs');
10
10
 
11
11
 
12
- var _chunkQLWZJY6Hcjs = require('./chunk-QLWZJY6H.cjs');
12
+ var _chunkT3GS5C2Bcjs = require('./chunk-T3GS5C2B.cjs');
13
13
 
14
14
 
15
- var _chunk47V6EQ6Ccjs = require('./chunk-47V6EQ6C.cjs');
15
+ var _chunk7S2N7N3Dcjs = require('./chunk-7S2N7N3D.cjs');
16
16
 
17
17
 
18
18
 
@@ -20,27 +20,27 @@ var _chunk47V6EQ6Ccjs = require('./chunk-47V6EQ6C.cjs');
20
20
 
21
21
 
22
22
 
23
- var _chunkSNDP6MVMcjs = require('./chunk-SNDP6MVM.cjs');
23
+ var _chunkG4GMEAHMcjs = require('./chunk-G4GMEAHM.cjs');
24
24
 
25
25
 
26
- var _chunkPDJKPN5Acjs = require('./chunk-PDJKPN5A.cjs');
26
+ var _chunkED3VWWR5cjs = require('./chunk-ED3VWWR5.cjs');
27
27
 
28
28
  // src/build.ts
29
- _chunkPDJKPN5Acjs.init_cjs_shims.call(void 0, );
29
+ _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
30
30
  async function reportResults(context) {
31
31
  if (_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) === 0) {
32
32
  if (context.result.warnings.length > 0) {
33
- _chunkSNDP6MVMcjs.writeWarning.call(void 0,
33
+ _chunkG4GMEAHMcjs.writeWarning.call(void 0,
34
34
  ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
35
35
  context.workspaceConfig
36
36
  );
37
37
  }
38
- _chunkSNDP6MVMcjs.writeSuccess.call(void 0,
38
+ _chunkG4GMEAHMcjs.writeSuccess.call(void 0,
39
39
  ` \u{1F4E6} The ${context.options.name} build completed successfully`,
40
40
  context.workspaceConfig
41
41
  );
42
42
  } else if (_optionalChain([context, 'access', _4 => _4.result, 'optionalAccess', _5 => _5.errors]) && _optionalChain([context, 'access', _6 => _6.result, 'optionalAccess', _7 => _7.errors, 'access', _8 => _8.length]) > 0) {
43
- _chunkSNDP6MVMcjs.writeError.call(void 0,
43
+ _chunkG4GMEAHMcjs.writeError.call(void 0,
44
44
  ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
45
45
  context.workspaceConfig
46
46
  );
@@ -51,36 +51,36 @@ async function reportResults(context) {
51
51
  }
52
52
  async function cleanOutputPath(context) {
53
53
  if (context.clean !== false && context.outputPath) {
54
- _chunkSNDP6MVMcjs.writeDebug.call(void 0,
54
+ _chunkG4GMEAHMcjs.writeDebug.call(void 0,
55
55
  ` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
56
56
  context.workspaceConfig
57
57
  );
58
- const stopwatch = _chunkSNDP6MVMcjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
59
- await _chunk3BP44YM5cjs.cleanDirectories.call(void 0, context.outputPath);
58
+ const stopwatch = _chunkG4GMEAHMcjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
59
+ await _chunkHLMV2RBFcjs.cleanDirectories.call(void 0, context.outputPath);
60
60
  stopwatch();
61
61
  }
62
62
  return context;
63
63
  }
64
64
  async function build(options) {
65
- _chunkSNDP6MVMcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
66
- const stopwatch = _chunkSNDP6MVMcjs.getStopwatch.call(void 0, "ESBuild pipeline");
65
+ _chunkG4GMEAHMcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
66
+ const stopwatch = _chunkG4GMEAHMcjs.getStopwatch.call(void 0, "ESBuild pipeline");
67
67
  try {
68
68
  const opts = Array.isArray(options) ? options : [options];
69
69
  if (opts.length === 0) {
70
70
  throw new Error("No build options were provided");
71
71
  }
72
- const context = await _chunkJEQDRKFQcjs.resolveContext.call(void 0, options);
72
+ const context = await _chunkHH54I6PDcjs.resolveContext.call(void 0, options);
73
73
  await cleanOutputPath(context);
74
74
  await Promise.all([
75
75
  // dependencyCheck(context.options),
76
- _chunkQLWZJY6Hcjs.generatePackageJson.call(void 0, context),
77
- _chunk5EQ2JTQPcjs.copyBuildAssets.call(void 0, context),
78
- _chunk47V6EQ6Ccjs.executeTsup.call(void 0, context)
76
+ _chunkT3GS5C2Bcjs.generatePackageJson.call(void 0, context),
77
+ _chunkSK6FXSPHcjs.copyBuildAssets.call(void 0, context),
78
+ _chunk7S2N7N3Dcjs.executeTsup.call(void 0, context)
79
79
  ]);
80
80
  await reportResults(context);
81
- _chunkSNDP6MVMcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
81
+ _chunkG4GMEAHMcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
82
82
  } catch (error) {
83
- _chunkSNDP6MVMcjs.writeFatal.call(void 0,
83
+ _chunkG4GMEAHMcjs.writeFatal.call(void 0,
84
84
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated."
85
85
  );
86
86
  throw error;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  copyAssets
3
- } from "./chunk-LLY6GY6I.js";
3
+ } from "./chunk-YHEJID7E.js";
4
4
  import {
5
5
  getStopwatch,
6
6
  writeDebug
7
- } from "./chunk-H3UGI6K3.js";
7
+ } from "./chunk-JSUZIFOI.js";
8
8
  import {
9
9
  init_esm_shims
10
- } from "./chunk-RVOMG3ZA.js";
10
+ } from "./chunk-J7JUCKR5.js";
11
11
 
12
12
  // src/assets.ts
13
13
  init_esm_shims();