@storm-software/esbuild 0.41.4 → 0.41.6

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 (54) hide show
  1. package/README.md +1 -2
  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 +13 -13
  6. package/dist/build.js +12 -12
  7. package/dist/{chunk-5T7LV3VF.cjs → chunk-5JSRSHEO.cjs} +64 -64
  8. package/dist/{chunk-FAL7YAO3.cjs → chunk-5Q5D5KXU.cjs} +84 -84
  9. package/dist/{chunk-GJGUIJAB.cjs → chunk-5SH5JYCH.cjs} +13 -13
  10. package/dist/{chunk-WCPIVIQK.js → chunk-AHPJROFI.js} +2 -2
  11. package/dist/{chunk-KGNFKVEH.js → chunk-BPCPTEEN.js} +5 -5
  12. package/dist/{chunk-KEVRLQE4.cjs → chunk-ERN6S5PZ.cjs} +20 -20
  13. package/dist/{chunk-IC54RIRD.js → chunk-F5UNQT4I.js} +1 -1
  14. package/dist/{chunk-62Y6Y42O.cjs → chunk-FYOYVWLV.cjs} +2 -2
  15. package/dist/{chunk-YCGENY4P.js → chunk-GQHCGKUH.js} +8 -8
  16. package/dist/{chunk-NNYGWF35.js → chunk-I4I4LVFE.js} +3 -3
  17. package/dist/{chunk-LDSRC54X.cjs → chunk-J3NLC5XP.cjs} +16 -16
  18. package/dist/{chunk-NCWOG3XF.cjs → chunk-KUO4BKRA.cjs} +5 -5
  19. package/dist/{chunk-5YNL6VNW.cjs → chunk-LMTUTP6F.cjs} +24 -24
  20. package/dist/{chunk-HVQQWRMH.js → chunk-MCAQJBXG.js} +3 -3
  21. package/dist/{chunk-WRR5M4KJ.js → chunk-MHBCYKCD.js} +4 -4
  22. package/dist/{chunk-HSJ2BWA7.cjs → chunk-NBS4OYN3.cjs} +5 -5
  23. package/dist/{chunk-YU5AMY3Q.cjs → chunk-NDLGLF4H.cjs} +6 -6
  24. package/dist/chunk-QC6ICIFT.cjs +6 -0
  25. package/dist/{chunk-NEVF2Z32.js → chunk-RP7QPKMS.js} +2 -2
  26. package/dist/{chunk-KHAZPE4L.cjs → chunk-SRXJPQBE.cjs} +7 -7
  27. package/dist/{chunk-Y2TMW2OD.js → chunk-UIZDGUH3.js} +15 -15
  28. package/dist/{chunk-E3PX7E5J.js → chunk-VKCYJZVE.js} +2 -2
  29. package/dist/{chunk-4V73TPC7.cjs → chunk-W3C5XSSN.cjs} +2 -2
  30. package/dist/{chunk-4NWQIND4.js → chunk-WOAQXYUT.js} +1 -1
  31. package/dist/{chunk-3NHHHWA2.js → chunk-XPQNCRAX.js} +2 -2
  32. package/dist/{chunk-XUY5SM57.js → chunk-Z45RNPYZ.js} +2 -2
  33. package/dist/clean.cjs +5 -5
  34. package/dist/clean.js +4 -4
  35. package/dist/config.cjs +6 -6
  36. package/dist/config.js +5 -5
  37. package/dist/context.cjs +7 -7
  38. package/dist/context.js +6 -6
  39. package/dist/index.cjs +15 -15
  40. package/dist/index.js +13 -13
  41. package/dist/package-json.cjs +6 -6
  42. package/dist/package-json.js +5 -5
  43. package/dist/plugins/deps-check.cjs +5 -5
  44. package/dist/plugins/deps-check.js +4 -4
  45. package/dist/plugins/resolve-paths.cjs +11 -11
  46. package/dist/plugins/resolve-paths.js +2 -2
  47. package/dist/tsup.cjs +5 -5
  48. package/dist/tsup.js +4 -4
  49. package/dist/types.cjs +2 -2
  50. package/dist/types.js +2 -2
  51. package/dist/watch.cjs +7 -7
  52. package/dist/watch.js +3 -3
  53. package/package.json +7 -7
  54. package/dist/chunk-EN26FAA2.cjs +0 -6
@@ -1,16 +1,16 @@
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
3
 
4
- var _chunk4V73TPC7cjs = require('./chunk-4V73TPC7.cjs');
4
+ var _chunkW3C5XSSNcjs = require('./chunk-W3C5XSSN.cjs');
5
5
 
6
6
 
7
- var _chunk62Y6Y42Ocjs = require('./chunk-62Y6Y42O.cjs');
7
+ var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
8
8
 
9
9
  // ../config-tools/src/logger/console.ts
10
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
10
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
11
11
 
12
12
  // ../config-tools/src/types.ts
13
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
13
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
14
14
  var LogLevel = {
15
15
  SILENT: 0,
16
16
  FATAL: 10,
@@ -35,13 +35,13 @@ var LogLevelLabel = {
35
35
  };
36
36
 
37
37
  // ../config-tools/src/utilities/get-default-config.ts
38
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
38
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
39
39
 
40
40
  // ../config/src/index.ts
41
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
41
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
42
42
 
43
43
  // ../config/src/constants.ts
44
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
44
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
45
45
  var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
46
46
  var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
47
47
  var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
@@ -64,10 +64,10 @@ If this sounds interesting, and you would like to help us in creating the next g
64
64
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
65
65
 
66
66
  // ../config/src/define-config.ts
67
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
67
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
68
68
 
69
69
  // ../config/src/schema.ts
70
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
70
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
71
71
  var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
72
72
  var DarkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
73
73
  var LightColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
@@ -275,7 +275,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
275
275
  );
276
276
 
277
277
  // ../config/src/types.ts
278
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
278
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
279
279
  var COLOR_KEYS = [
280
280
  "dark",
281
281
  "light",
@@ -300,10 +300,10 @@ var _promises = require('fs/promises');
300
300
  var _path = require('path');
301
301
 
302
302
  // ../config-tools/src/utilities/find-workspace-root.ts
303
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
303
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
304
304
 
305
305
  // ../config-tools/src/utilities/find-up.ts
306
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
306
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
307
307
 
308
308
 
309
309
  var MAX_PATH_SEARCH_DEPTH = 30;
@@ -372,11 +372,11 @@ var rootDirectories = [
372
372
  ];
373
373
  function findWorkspaceRootSafe(pathInsideMonorepo) {
374
374
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
375
- return _chunk4V73TPC7cjs.correctPaths.call(void 0,
375
+ return _chunkW3C5XSSNcjs.correctPaths.call(void 0,
376
376
  _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
377
377
  );
378
378
  }
379
- return _chunk4V73TPC7cjs.correctPaths.call(void 0,
379
+ return _chunkW3C5XSSNcjs.correctPaths.call(void 0,
380
380
  findFolderUp(
381
381
  _nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
382
382
  rootFiles,
@@ -436,7 +436,7 @@ var getDefaultConfig = async (root) => {
436
436
  const workspaceRoot = findWorkspaceRoot(root);
437
437
  if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
438
438
  const file = await _promises.readFile.call(void 0,
439
- _chunk4V73TPC7cjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
439
+ _chunkW3C5XSSNcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
440
440
  "utf8"
441
441
  );
442
442
  if (file) {
@@ -478,7 +478,7 @@ var getDefaultConfig = async (root) => {
478
478
  };
479
479
 
480
480
  // ../config-tools/src/logger/chalk.ts
481
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
481
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
482
482
  var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
483
483
  var chalkDefault = {
484
484
  hex: (_) => (message) => message,
@@ -508,10 +508,10 @@ var getChalk = () => {
508
508
  };
509
509
 
510
510
  // ../config-tools/src/logger/console-icons.ts
511
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
511
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
512
512
 
513
513
  // ../config-tools/src/logger/is-unicode-supported.ts
514
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
514
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
515
515
  function isUnicodeSupported() {
516
516
  if (process.platform !== "win32") {
517
517
  return process.env.TERM !== "linux";
@@ -536,13 +536,13 @@ var CONSOLE_ICONS = {
536
536
  };
537
537
 
538
538
  // ../config-tools/src/logger/format-timestamp.ts
539
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
539
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
540
540
  var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
541
541
  return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
542
542
  };
543
543
 
544
544
  // ../config-tools/src/logger/get-log-level.ts
545
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
545
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
546
546
  var getLogLevel = (label) => {
547
547
  switch (label) {
548
548
  case "all":
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "./chunk-E3PX7E5J.js";
3
+ } from "./chunk-VKCYJZVE.js";
4
4
 
5
5
  // ../config-tools/src/utilities/correct-paths.ts
6
6
  init_esm_shims();
@@ -33,9 +33,9 @@ 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__b8584d6fbd29e6db4e299eaf46843332/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__954ae7dac9bca61c20aa20d91ee91417/node_modules/tsup/assets/cjs_shims.js
37
37
  var init_cjs_shims = __esm({
38
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b8584d6fbd29e6db4e299eaf46843332/node_modules/tsup/assets/cjs_shims.js"() {
38
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__954ae7dac9bca61c20aa20d91ee91417/node_modules/tsup/assets/cjs_shims.js"() {
39
39
  }
40
40
  });
41
41
 
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  depsCheckPlugin
3
- } from "./chunk-3NHHHWA2.js";
3
+ } from "./chunk-XPQNCRAX.js";
4
4
  import {
5
5
  copyBuildAssets
6
- } from "./chunk-HVQQWRMH.js";
6
+ } from "./chunk-MCAQJBXG.js";
7
7
  import {
8
8
  cleanDirectories
9
- } from "./chunk-XUY5SM57.js";
9
+ } from "./chunk-Z45RNPYZ.js";
10
10
  import {
11
11
  resolveContext
12
- } from "./chunk-KGNFKVEH.js";
12
+ } from "./chunk-BPCPTEEN.js";
13
13
  import {
14
14
  generatePackageJson
15
- } from "./chunk-WRR5M4KJ.js";
15
+ } from "./chunk-MHBCYKCD.js";
16
16
  import {
17
17
  executeTsup
18
- } from "./chunk-Y2TMW2OD.js";
18
+ } from "./chunk-UIZDGUH3.js";
19
19
  import {
20
20
  getStopwatch,
21
21
  writeDebug,
@@ -23,10 +23,10 @@ import {
23
23
  writeFatal,
24
24
  writeSuccess,
25
25
  writeWarning
26
- } from "./chunk-WCPIVIQK.js";
26
+ } from "./chunk-AHPJROFI.js";
27
27
  import {
28
28
  init_esm_shims
29
- } from "./chunk-E3PX7E5J.js";
29
+ } from "./chunk-VKCYJZVE.js";
30
30
 
31
31
  // src/build.ts
32
32
  init_esm_shims();
@@ -13,14 +13,14 @@ import {
13
13
  writeDebug,
14
14
  writeTrace,
15
15
  writeWarning
16
- } from "./chunk-WCPIVIQK.js";
16
+ } from "./chunk-AHPJROFI.js";
17
17
  import {
18
18
  correctPaths,
19
19
  joinPaths
20
- } from "./chunk-IC54RIRD.js";
20
+ } from "./chunk-F5UNQT4I.js";
21
21
  import {
22
22
  init_esm_shims
23
- } from "./chunk-E3PX7E5J.js";
23
+ } from "./chunk-VKCYJZVE.js";
24
24
 
25
25
  // ../build-tools/src/config.ts
26
26
  init_esm_shims();
@@ -1,23 +1,23 @@
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 _chunkHSJ2BWA7cjs = require('./chunk-HSJ2BWA7.cjs');
3
+ var _chunkNBS4OYN3cjs = require('./chunk-NBS4OYN3.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkFAL7YAO3cjs = require('./chunk-FAL7YAO3.cjs');
7
+ var _chunk5Q5D5KXUcjs = require('./chunk-5Q5D5KXU.cjs');
8
8
 
9
9
 
10
10
 
11
- var _chunkKEVRLQE4cjs = require('./chunk-KEVRLQE4.cjs');
11
+ var _chunkERN6S5PZcjs = require('./chunk-ERN6S5PZ.cjs');
12
12
 
13
13
 
14
- var _chunk4V73TPC7cjs = require('./chunk-4V73TPC7.cjs');
14
+ var _chunkW3C5XSSNcjs = require('./chunk-W3C5XSSN.cjs');
15
15
 
16
16
 
17
- var _chunk62Y6Y42Ocjs = require('./chunk-62Y6Y42O.cjs');
17
+ var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
18
18
 
19
19
  // src/context.ts
20
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
20
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
21
21
 
22
22
 
23
23
 
@@ -32,15 +32,15 @@ async function resolveContext(userOptions) {
32
32
  if (!workspaceRoot) {
33
33
  throw new Error("Cannot find Nx workspace root");
34
34
  }
35
- const workspaceConfig = await _chunkFAL7YAO3cjs.getWorkspaceConfig.call(void 0, true, {
35
+ const workspaceConfig = await _chunk5Q5D5KXUcjs.getWorkspaceConfig.call(void 0, true, {
36
36
  workspaceRoot: workspaceRoot.dir
37
37
  });
38
- _chunkKEVRLQE4cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
39
- const stopwatch = _chunkKEVRLQE4cjs.getStopwatch.call(void 0, "Build options resolution");
38
+ _chunkERN6S5PZcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
39
+ const stopwatch = _chunkERN6S5PZcjs.getStopwatch.call(void 0, "Build options resolution");
40
40
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
41
41
  exitOnError: true
42
42
  });
43
- const projectJsonPath = _chunk4V73TPC7cjs.joinPaths.call(void 0,
43
+ const projectJsonPath = _chunkW3C5XSSNcjs.joinPaths.call(void 0,
44
44
  workspaceRoot.dir,
45
45
  projectRoot,
46
46
  "project.json"
@@ -57,9 +57,9 @@ async function resolveContext(userOptions) {
57
57
  "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."
58
58
  );
59
59
  }
60
- const options = _defu2.default.call(void 0, userOptions, _chunkHSJ2BWA7cjs.DEFAULT_BUILD_OPTIONS);
60
+ const options = _defu2.default.call(void 0, userOptions, _chunkNBS4OYN3cjs.DEFAULT_BUILD_OPTIONS);
61
61
  options.name ??= projectName;
62
- const packageJsonPath = _chunk4V73TPC7cjs.joinPaths.call(void 0,
62
+ const packageJsonPath = _chunkW3C5XSSNcjs.joinPaths.call(void 0,
63
63
  workspaceRoot.dir,
64
64
  options.projectRoot,
65
65
  "package.json"
@@ -67,10 +67,10 @@ async function resolveContext(userOptions) {
67
67
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
68
68
  throw new Error("Cannot find package.json configuration");
69
69
  }
70
- const env = _chunkFAL7YAO3cjs.getEnv.call(void 0, "esbuild", options);
70
+ const env = _chunk5Q5D5KXUcjs.getEnv.call(void 0, "esbuild", options);
71
71
  const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
72
72
  const resolvedOptions = {
73
- tsconfig: _chunk4V73TPC7cjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
73
+ tsconfig: _chunkW3C5XSSNcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
74
74
  ...options,
75
75
  metafile: userOptions.mode === "development",
76
76
  clean: false,
@@ -96,8 +96,8 @@ async function resolveContext(userOptions) {
96
96
  projectConfigurations,
97
97
  projectName,
98
98
  projectGraph,
99
- sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunk4V73TPC7cjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
100
- outputPath: resolvedOptions.outputPath || _chunk4V73TPC7cjs.joinPaths.call(void 0,
99
+ sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkW3C5XSSNcjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
100
+ outputPath: resolvedOptions.outputPath || _chunkW3C5XSSNcjs.joinPaths.call(void 0,
101
101
  workspaceConfig.workspaceRoot,
102
102
  "dist",
103
103
  resolvedOptions.projectRoot
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkKEVRLQE4cjs = require('./chunk-KEVRLQE4.cjs');
4
+ var _chunkERN6S5PZcjs = require('./chunk-ERN6S5PZ.cjs');
5
5
 
6
6
 
7
- var _chunk62Y6Y42Ocjs = require('./chunk-62Y6Y42O.cjs');
7
+ var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
8
8
 
9
9
  // src/clean.ts
10
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
10
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
11
11
  var _promises = require('fs/promises');
12
12
  async function clean(name = "ESBuild", directory, config) {
13
- _chunkKEVRLQE4cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
14
- const stopwatch = _chunkKEVRLQE4cjs.getStopwatch.call(void 0, `${name} output clean`);
13
+ _chunkERN6S5PZcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
14
+ const stopwatch = _chunkERN6S5PZcjs.getStopwatch.call(void 0, `${name} output clean`);
15
15
  await cleanDirectories(directory);
16
16
  stopwatch();
17
17
  }
@@ -1,21 +1,21 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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 _chunkYU5AMY3Qcjs = require('./chunk-YU5AMY3Q.cjs');
3
+ var _chunkNDLGLF4Hcjs = require('./chunk-NDLGLF4H.cjs');
4
4
 
5
5
 
6
- var _chunkKHAZPE4Lcjs = require('./chunk-KHAZPE4L.cjs');
6
+ var _chunkSRXJPQBEcjs = require('./chunk-SRXJPQBE.cjs');
7
7
 
8
8
 
9
- var _chunkNCWOG3XFcjs = require('./chunk-NCWOG3XF.cjs');
9
+ var _chunkKUO4BKRAcjs = require('./chunk-KUO4BKRA.cjs');
10
10
 
11
11
 
12
- var _chunkLDSRC54Xcjs = require('./chunk-LDSRC54X.cjs');
12
+ var _chunkJ3NLC5XPcjs = require('./chunk-J3NLC5XP.cjs');
13
13
 
14
14
 
15
- var _chunkGJGUIJABcjs = require('./chunk-GJGUIJAB.cjs');
15
+ var _chunk5SH5JYCHcjs = require('./chunk-5SH5JYCH.cjs');
16
16
 
17
17
 
18
- var _chunk5T7LV3VFcjs = require('./chunk-5T7LV3VF.cjs');
18
+ var _chunk5JSRSHEOcjs = require('./chunk-5JSRSHEO.cjs');
19
19
 
20
20
 
21
21
 
@@ -23,29 +23,29 @@ var _chunk5T7LV3VFcjs = require('./chunk-5T7LV3VF.cjs');
23
23
 
24
24
 
25
25
 
26
- var _chunkKEVRLQE4cjs = require('./chunk-KEVRLQE4.cjs');
26
+ var _chunkERN6S5PZcjs = require('./chunk-ERN6S5PZ.cjs');
27
27
 
28
28
 
29
- var _chunk62Y6Y42Ocjs = require('./chunk-62Y6Y42O.cjs');
29
+ var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
30
30
 
31
31
  // src/build.ts
32
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
32
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
33
33
  var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
34
34
  var _globby = require('globby');
35
35
  async function reportResults(context) {
36
36
  if (_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) === 0) {
37
37
  if (context.result.warnings.length > 0) {
38
- _chunkKEVRLQE4cjs.writeWarning.call(void 0,
38
+ _chunkERN6S5PZcjs.writeWarning.call(void 0,
39
39
  ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
40
40
  context.workspaceConfig
41
41
  );
42
42
  }
43
- _chunkKEVRLQE4cjs.writeSuccess.call(void 0,
43
+ _chunkERN6S5PZcjs.writeSuccess.call(void 0,
44
44
  ` \u{1F4E6} The ${context.options.name} build completed successfully`,
45
45
  context.workspaceConfig
46
46
  );
47
47
  } 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) {
48
- _chunkKEVRLQE4cjs.writeError.call(void 0,
48
+ _chunkERN6S5PZcjs.writeError.call(void 0,
49
49
  ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
50
50
  context.workspaceConfig
51
51
  );
@@ -74,7 +74,7 @@ async function dependencyCheck(options) {
74
74
  write: false,
75
75
  // no need to write for analysis
76
76
  outdir: "out",
77
- plugins: [_chunkYU5AMY3Qcjs.depsCheckPlugin.call(void 0, options.bundle)]
77
+ plugins: [_chunkNDLGLF4Hcjs.depsCheckPlugin.call(void 0, options.bundle)]
78
78
  });
79
79
  await buildPromise.catch(() => {
80
80
  });
@@ -82,36 +82,36 @@ async function dependencyCheck(options) {
82
82
  }
83
83
  async function cleanOutputPath(context) {
84
84
  if (context.clean !== false && context.outputPath) {
85
- _chunkKEVRLQE4cjs.writeDebug.call(void 0,
85
+ _chunkERN6S5PZcjs.writeDebug.call(void 0,
86
86
  ` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
87
87
  context.workspaceConfig
88
88
  );
89
- const stopwatch = _chunkKEVRLQE4cjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
90
- await _chunkNCWOG3XFcjs.cleanDirectories.call(void 0, context.outputPath);
89
+ const stopwatch = _chunkERN6S5PZcjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
90
+ await _chunkKUO4BKRAcjs.cleanDirectories.call(void 0, context.outputPath);
91
91
  stopwatch();
92
92
  }
93
93
  return context;
94
94
  }
95
95
  async function build2(options) {
96
- _chunkKEVRLQE4cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
97
- const stopwatch = _chunkKEVRLQE4cjs.getStopwatch.call(void 0, "ESBuild pipeline");
96
+ _chunkERN6S5PZcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
97
+ const stopwatch = _chunkERN6S5PZcjs.getStopwatch.call(void 0, "ESBuild pipeline");
98
98
  try {
99
99
  const opts = Array.isArray(options) ? options : [options];
100
100
  if (opts.length === 0) {
101
101
  throw new Error("No build options were provided");
102
102
  }
103
- const context = await _chunkLDSRC54Xcjs.resolveContext.call(void 0, options);
103
+ const context = await _chunkJ3NLC5XPcjs.resolveContext.call(void 0, options);
104
104
  await cleanOutputPath(context);
105
105
  await Promise.all([
106
106
  dependencyCheck(context.options),
107
- _chunkGJGUIJABcjs.generatePackageJson.call(void 0, context),
108
- _chunkKHAZPE4Lcjs.copyBuildAssets.call(void 0, context),
109
- _chunk5T7LV3VFcjs.executeTsup.call(void 0, context)
107
+ _chunk5SH5JYCHcjs.generatePackageJson.call(void 0, context),
108
+ _chunkSRXJPQBEcjs.copyBuildAssets.call(void 0, context),
109
+ _chunk5JSRSHEOcjs.executeTsup.call(void 0, context)
110
110
  ]);
111
111
  await reportResults(context);
112
- _chunkKEVRLQE4cjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
112
+ _chunkERN6S5PZcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
113
113
  } catch (error) {
114
- _chunkKEVRLQE4cjs.writeFatal.call(void 0,
114
+ _chunkERN6S5PZcjs.writeFatal.call(void 0,
115
115
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated."
116
116
  );
117
117
  throw error;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  copyAssets
3
- } from "./chunk-NNYGWF35.js";
3
+ } from "./chunk-I4I4LVFE.js";
4
4
  import {
5
5
  getStopwatch,
6
6
  writeDebug
7
- } from "./chunk-WCPIVIQK.js";
7
+ } from "./chunk-AHPJROFI.js";
8
8
  import {
9
9
  init_esm_shims
10
- } from "./chunk-E3PX7E5J.js";
10
+ } from "./chunk-VKCYJZVE.js";
11
11
 
12
12
  // src/assets.ts
13
13
  init_esm_shims();
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  addPackageDependencies,
3
3
  addWorkspacePackageJsonFields
4
- } from "./chunk-NNYGWF35.js";
4
+ } from "./chunk-I4I4LVFE.js";
5
5
  import {
6
6
  getStopwatch,
7
7
  writeDebug
8
- } from "./chunk-WCPIVIQK.js";
8
+ } from "./chunk-AHPJROFI.js";
9
9
  import {
10
10
  joinPaths
11
- } from "./chunk-IC54RIRD.js";
11
+ } from "./chunk-F5UNQT4I.js";
12
12
  import {
13
13
  init_esm_shims
14
- } from "./chunk-E3PX7E5J.js";
14
+ } from "./chunk-VKCYJZVE.js";
15
15
 
16
16
  // src/package-json.ts
17
17
  init_esm_shims();
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkFAL7YAO3cjs = require('./chunk-FAL7YAO3.cjs');
3
+ var _chunk5Q5D5KXUcjs = require('./chunk-5Q5D5KXU.cjs');
4
4
 
5
5
 
6
- var _chunk62Y6Y42Ocjs = require('./chunk-62Y6Y42O.cjs');
6
+ var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
7
7
 
8
8
  // src/config.ts
9
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
9
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
10
10
  var DEFAULT_BUILD_OPTIONS = {
11
11
  assets: [],
12
12
  platform: "node",
@@ -46,8 +46,8 @@ var DEFAULT_BUILD_OPTIONS = {
46
46
  ".woff2": "file"
47
47
  },
48
48
  banner: {
49
- js: _chunkFAL7YAO3cjs.DEFAULT_COMPILED_BANNER,
50
- css: _chunkFAL7YAO3cjs.DEFAULT_COMPILED_BANNER
49
+ js: _chunk5Q5D5KXUcjs.DEFAULT_COMPILED_BANNER,
50
+ css: _chunk5Q5D5KXUcjs.DEFAULT_COMPILED_BANNER
51
51
  }
52
52
  };
53
53
 
@@ -1,14 +1,14 @@
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(); } }
2
2
 
3
3
 
4
- var _chunkKEVRLQE4cjs = require('./chunk-KEVRLQE4.cjs');
4
+ var _chunkERN6S5PZcjs = require('./chunk-ERN6S5PZ.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunk62Y6Y42Ocjs = require('./chunk-62Y6Y42O.cjs');
8
+ var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
9
9
 
10
10
  // src/plugins/deps-check.ts
11
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
11
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
12
12
  var _module = require('module');
13
13
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
14
14
  var unusedIgnore = [
@@ -40,7 +40,7 @@ var depsCheckPlugin = (bundle) => ({
40
40
  name: "storm:deps-check",
41
41
  setup(build) {
42
42
  const pkgJsonPath = _path2.default.join(process.cwd(), "package.json");
43
- const pkgContents = _chunk62Y6Y42Ocjs.__require.call(void 0, pkgJsonPath);
43
+ const pkgContents = _chunkFYOYVWLVcjs.__require.call(void 0, pkgJsonPath);
44
44
  const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
45
45
  const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
46
46
  const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
@@ -75,10 +75,10 @@ var depsCheckPlugin = (bundle) => ({
75
75
  const filteredMissingDeps = missingDependencies.filter((dep) => {
76
76
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
77
77
  });
78
- _chunkKEVRLQE4cjs.writeWarning.call(void 0,
78
+ _chunkERN6S5PZcjs.writeWarning.call(void 0,
79
79
  `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
80
80
  );
81
- _chunkKEVRLQE4cjs.writeError.call(void 0,
81
+ _chunkERN6S5PZcjs.writeError.call(void 0,
82
82
  `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
83
83
  );
84
84
  if (filteredMissingDeps.length > 0) {
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
4
+
5
+ // src/types.ts
6
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  DEFAULT_COMPILED_BANNER
3
- } from "./chunk-NNYGWF35.js";
3
+ } from "./chunk-I4I4LVFE.js";
4
4
  import {
5
5
  init_esm_shims
6
- } from "./chunk-E3PX7E5J.js";
6
+ } from "./chunk-VKCYJZVE.js";
7
7
 
8
8
  // src/config.ts
9
9
  init_esm_shims();
@@ -1,24 +1,24 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkFAL7YAO3cjs = require('./chunk-FAL7YAO3.cjs');
3
+ var _chunk5Q5D5KXUcjs = require('./chunk-5Q5D5KXU.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkKEVRLQE4cjs = require('./chunk-KEVRLQE4.cjs');
7
+ var _chunkERN6S5PZcjs = require('./chunk-ERN6S5PZ.cjs');
8
8
 
9
9
 
10
- var _chunk62Y6Y42Ocjs = require('./chunk-62Y6Y42O.cjs');
10
+ var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
11
11
 
12
12
  // src/assets.ts
13
- _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
13
+ _chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
14
14
  async function copyBuildAssets(context) {
15
15
  if (_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) === 0) {
16
- _chunkKEVRLQE4cjs.writeDebug.call(void 0,
16
+ _chunkERN6S5PZcjs.writeDebug.call(void 0,
17
17
  ` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`,
18
18
  context.workspaceConfig
19
19
  );
20
- const stopwatch = _chunkKEVRLQE4cjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
21
- await _chunkFAL7YAO3cjs.copyAssets.call(void 0,
20
+ const stopwatch = _chunkERN6S5PZcjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
21
+ await _chunk5Q5D5KXUcjs.copyAssets.call(void 0,
22
22
  context.workspaceConfig,
23
23
  _nullishCoalesce(context.options.assets, () => ( [])),
24
24
  context.outputPath,