@storm-software/esbuild 0.45.3 → 0.45.4

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 -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 +13 -13
  6. package/dist/build.js +12 -12
  7. package/dist/{chunk-P7E4FGWI.js → chunk-2SUTZQJO.js} +2 -2
  8. package/dist/{chunk-F3RSGQZH.cjs → chunk-666X5DAD.cjs} +85 -85
  9. package/dist/{chunk-NZ6JCAUU.cjs → chunk-AH5IZCVU.cjs} +5 -5
  10. package/dist/{chunk-N6SRJ3MW.js → chunk-BHU3AZEV.js} +5 -5
  11. package/dist/{chunk-W4MPEWRT.js → chunk-BRYMNX33.js} +15 -15
  12. package/dist/{chunk-NLSJKLSC.cjs → chunk-C6RNYTS3.cjs} +64 -64
  13. package/dist/{chunk-4X2ID2CD.js → chunk-C7MXKCEV.js} +3 -3
  14. package/dist/chunk-CSKW6ZGK.cjs +6 -0
  15. package/dist/{chunk-I52SUD5S.js → chunk-D5BUKXUF.js} +2 -2
  16. package/dist/{chunk-VRHF33Y5.cjs → chunk-E4UJTY7B.cjs} +2 -2
  17. package/dist/{chunk-RBQ2BQCC.cjs → chunk-E5WQ7RCZ.cjs} +5 -5
  18. package/dist/{chunk-NZ3FE3ZT.js → chunk-F2NFCPLY.js} +8 -8
  19. package/dist/{chunk-UF7MZTGE.cjs → chunk-HBZMQYVF.cjs} +2 -2
  20. package/dist/{chunk-LU3VPU4P.cjs → chunk-HOU7FIPQ.cjs} +6 -6
  21. package/dist/{chunk-4FDCADS4.js → chunk-KMAWKT2J.js} +3 -3
  22. package/dist/{chunk-L2SAFC2E.js → chunk-LXRH5WPF.js} +2 -2
  23. package/dist/{chunk-AQLVPEJX.js → chunk-MZAOJVAF.js} +1 -1
  24. package/dist/{chunk-3IZVDKCD.js → chunk-NVMEEE6W.js} +2 -2
  25. package/dist/{chunk-6HRIZYNW.js → chunk-OGMV3O2R.js} +4 -4
  26. package/dist/{chunk-F4PL6OZA.js → chunk-PFUD6XZ2.js} +1 -1
  27. package/dist/{chunk-2UVDRFO7.cjs → chunk-RMEQ2MPX.cjs} +13 -13
  28. package/dist/{chunk-KE66Z7IC.cjs → chunk-RTDSY2NY.cjs} +7 -7
  29. package/dist/{chunk-YBSO5IT4.cjs → chunk-TIT5WULO.cjs} +20 -20
  30. package/dist/{chunk-KLZ2SML6.js → chunk-YFVYTJH3.js} +2 -2
  31. package/dist/{chunk-ZASUM7XP.cjs → chunk-ZEY37G5M.cjs} +18 -18
  32. package/dist/{chunk-J4JQBPNB.cjs → chunk-ZVOXGROU.cjs} +24 -24
  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 +4 -4
  54. package/dist/chunk-5OLNQTRT.cjs +0 -6
@@ -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 _chunkF3RSGQZHcjs = require('./chunk-F3RSGQZH.cjs');
3
+ var _chunk666X5DADcjs = require('./chunk-666X5DAD.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkYBSO5IT4cjs = require('./chunk-YBSO5IT4.cjs');
7
+ var _chunkTIT5WULOcjs = require('./chunk-TIT5WULO.cjs');
8
8
 
9
9
 
10
- var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
10
+ var _chunkE4UJTY7Bcjs = require('./chunk-E4UJTY7B.cjs');
11
11
 
12
12
  // src/assets.ts
13
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
13
+ _chunkE4UJTY7Bcjs.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]) && _optionalChain([context, 'access', _4 => _4.options, 'access', _5 => _5.assets, 'optionalAccess', _6 => _6.length])) {
16
- _chunkYBSO5IT4cjs.writeDebug.call(void 0,
16
+ _chunkTIT5WULOcjs.writeDebug.call(void 0,
17
17
  ` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
18
18
  context.workspaceConfig
19
19
  );
20
- const stopwatch = _chunkYBSO5IT4cjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
21
- await _chunkF3RSGQZHcjs.copyAssets.call(void 0,
20
+ const stopwatch = _chunkTIT5WULOcjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
21
+ await _chunk666X5DADcjs.copyAssets.call(void 0,
22
22
  context.workspaceConfig,
23
23
  _nullishCoalesce(context.options.assets, () => ( [])),
24
24
  context.outputPath,
@@ -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 _chunkUF7MZTGEcjs = require('./chunk-UF7MZTGE.cjs');
4
+ var _chunkHBZMQYVFcjs = require('./chunk-HBZMQYVF.cjs');
5
5
 
6
6
 
7
- var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
7
+ var _chunkE4UJTY7Bcjs = require('./chunk-E4UJTY7B.cjs');
8
8
 
9
9
  // ../config-tools/src/logger/console.ts
10
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
10
+ _chunkE4UJTY7Bcjs.init_cjs_shims.call(void 0, );
11
11
 
12
12
  // ../config-tools/src/types.ts
13
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
13
+ _chunkE4UJTY7Bcjs.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
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
38
+ _chunkE4UJTY7Bcjs.init_cjs_shims.call(void 0, );
39
39
 
40
40
  // ../config/src/index.ts
41
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
41
+ _chunkE4UJTY7Bcjs.init_cjs_shims.call(void 0, );
42
42
 
43
43
  // ../config/src/constants.ts
44
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
44
+ _chunkE4UJTY7Bcjs.init_cjs_shims.call(void 0, );
45
45
  var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
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
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
67
+ _chunkE4UJTY7Bcjs.init_cjs_shims.call(void 0, );
68
68
 
69
69
  // ../config/src/schema.ts
70
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
70
+ _chunkE4UJTY7Bcjs.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");
@@ -279,7 +279,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
279
279
  );
280
280
 
281
281
  // ../config/src/types.ts
282
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
282
+ _chunkE4UJTY7Bcjs.init_cjs_shims.call(void 0, );
283
283
  var COLOR_KEYS = [
284
284
  "dark",
285
285
  "light",
@@ -304,10 +304,10 @@ var _promises = require('fs/promises');
304
304
  var _path = require('path');
305
305
 
306
306
  // ../config-tools/src/utilities/find-workspace-root.ts
307
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
307
+ _chunkE4UJTY7Bcjs.init_cjs_shims.call(void 0, );
308
308
 
309
309
  // ../config-tools/src/utilities/find-up.ts
310
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
310
+ _chunkE4UJTY7Bcjs.init_cjs_shims.call(void 0, );
311
311
 
312
312
 
313
313
  var MAX_PATH_SEARCH_DEPTH = 30;
@@ -376,11 +376,11 @@ var rootDirectories = [
376
376
  ];
377
377
  function findWorkspaceRootSafe(pathInsideMonorepo) {
378
378
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
379
- return _chunkUF7MZTGEcjs.correctPaths.call(void 0,
379
+ return _chunkHBZMQYVFcjs.correctPaths.call(void 0,
380
380
  _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
381
381
  );
382
382
  }
383
- return _chunkUF7MZTGEcjs.correctPaths.call(void 0,
383
+ return _chunkHBZMQYVFcjs.correctPaths.call(void 0,
384
384
  findFolderUp(
385
385
  _nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
386
386
  rootFiles,
@@ -441,7 +441,7 @@ async function getPackageJsonConfig(root) {
441
441
  const workspaceRoot = findWorkspaceRoot(root);
442
442
  if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
443
443
  const file = await _promises.readFile.call(void 0,
444
- _chunkUF7MZTGEcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
444
+ _chunkHBZMQYVFcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
445
445
  "utf8"
446
446
  );
447
447
  if (file) {
@@ -515,7 +515,7 @@ function applyDefaultConfig(config) {
515
515
  }
516
516
 
517
517
  // ../config-tools/src/logger/chalk.ts
518
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
518
+ _chunkE4UJTY7Bcjs.init_cjs_shims.call(void 0, );
519
519
  var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
520
520
  var chalkDefault = {
521
521
  hex: (_) => (message) => message,
@@ -545,10 +545,10 @@ var getChalk = () => {
545
545
  };
546
546
 
547
547
  // ../config-tools/src/logger/console-icons.ts
548
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
548
+ _chunkE4UJTY7Bcjs.init_cjs_shims.call(void 0, );
549
549
 
550
550
  // ../config-tools/src/logger/is-unicode-supported.ts
551
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
551
+ _chunkE4UJTY7Bcjs.init_cjs_shims.call(void 0, );
552
552
  function isUnicodeSupported() {
553
553
  if (process.platform !== "win32") {
554
554
  return process.env.TERM !== "linux";
@@ -573,13 +573,13 @@ var CONSOLE_ICONS = {
573
573
  };
574
574
 
575
575
  // ../config-tools/src/logger/format-timestamp.ts
576
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
576
+ _chunkE4UJTY7Bcjs.init_cjs_shims.call(void 0, );
577
577
  var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
578
578
  return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
579
579
  };
580
580
 
581
581
  // ../config-tools/src/logger/get-log-level.ts
582
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
582
+ _chunkE4UJTY7Bcjs.init_cjs_shims.call(void 0, );
583
583
  var getLogLevel = (label) => {
584
584
  switch (label) {
585
585
  case "all":
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  writeError,
3
3
  writeWarning
4
- } from "./chunk-L2SAFC2E.js";
4
+ } from "./chunk-LXRH5WPF.js";
5
5
  import {
6
6
  __require,
7
7
  init_esm_shims
8
- } from "./chunk-I52SUD5S.js";
8
+ } from "./chunk-D5BUKXUF.js";
9
9
 
10
10
  // src/plugins/deps-check.ts
11
11
  init_esm_shims();
@@ -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 _chunkNZ6JCAUUcjs = require('./chunk-NZ6JCAUU.cjs');
3
+ var _chunkAH5IZCVUcjs = require('./chunk-AH5IZCVU.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkF3RSGQZHcjs = require('./chunk-F3RSGQZH.cjs');
7
+ var _chunk666X5DADcjs = require('./chunk-666X5DAD.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkYBSO5IT4cjs = require('./chunk-YBSO5IT4.cjs');
12
+ var _chunkTIT5WULOcjs = require('./chunk-TIT5WULO.cjs');
13
13
 
14
14
 
15
- var _chunkUF7MZTGEcjs = require('./chunk-UF7MZTGE.cjs');
15
+ var _chunkHBZMQYVFcjs = require('./chunk-HBZMQYVF.cjs');
16
16
 
17
17
 
18
- var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
18
+ var _chunkE4UJTY7Bcjs = require('./chunk-E4UJTY7B.cjs');
19
19
 
20
20
  // src/context.ts
21
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
21
+ _chunkE4UJTY7Bcjs.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 _chunkF3RSGQZHcjs.getWorkspaceConfig.call(void 0, true, {
36
+ const workspaceConfig = await _chunk666X5DADcjs.getWorkspaceConfig.call(void 0, true, {
37
37
  workspaceRoot: workspaceRoot.dir
38
38
  });
39
- _chunkYBSO5IT4cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
40
- const stopwatch = _chunkYBSO5IT4cjs.getStopwatch.call(void 0, "Build options resolution");
39
+ _chunkTIT5WULOcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
40
+ const stopwatch = _chunkTIT5WULOcjs.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 = _chunkUF7MZTGEcjs.joinPaths.call(void 0,
44
+ const projectJsonPath = _chunkHBZMQYVFcjs.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, _chunkNZ6JCAUUcjs.DEFAULT_BUILD_OPTIONS);
61
+ const options = _defu2.default.call(void 0, userOptions, _chunkAH5IZCVUcjs.DEFAULT_BUILD_OPTIONS);
62
62
  options.name ??= projectName;
63
- const packageJsonPath = _chunkUF7MZTGEcjs.joinPaths.call(void 0,
63
+ const packageJsonPath = _chunkHBZMQYVFcjs.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 = _chunkF3RSGQZHcjs.getEnv.call(void 0, "esbuild", options);
71
+ const env = _chunk666X5DADcjs.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 : _chunkUF7MZTGEcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
75
+ tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkHBZMQYVFcjs.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 || _chunkUF7MZTGEcjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
101
- outputPath: resolvedOptions.outputPath || _chunkUF7MZTGEcjs.joinPaths.call(void 0,
100
+ sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkHBZMQYVFcjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
101
+ outputPath: resolvedOptions.outputPath || _chunkHBZMQYVFcjs.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
- _chunkYBSO5IT4cjs.writeDebug.call(void 0,
110
+ _chunkTIT5WULOcjs.writeDebug.call(void 0,
111
111
  ` \u2699\uFE0F Build options resolved:
112
112
 
113
- ${_chunkYBSO5IT4cjs.formatLogMessage.call(void 0, context.options)}`,
113
+ ${_chunkTIT5WULOcjs.formatLogMessage.call(void 0, context.options)}`,
114
114
  workspaceConfig
115
115
  );
116
116
  }
@@ -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 _chunkLU3VPU4Pcjs = require('./chunk-LU3VPU4P.cjs');
3
+ var _chunkHOU7FIPQcjs = require('./chunk-HOU7FIPQ.cjs');
4
4
 
5
5
 
6
- var _chunkKE66Z7ICcjs = require('./chunk-KE66Z7IC.cjs');
6
+ var _chunkRTDSY2NYcjs = require('./chunk-RTDSY2NY.cjs');
7
7
 
8
8
 
9
- var _chunkRBQ2BQCCcjs = require('./chunk-RBQ2BQCC.cjs');
9
+ var _chunkE5WQ7RCZcjs = require('./chunk-E5WQ7RCZ.cjs');
10
10
 
11
11
 
12
- var _chunkZASUM7XPcjs = require('./chunk-ZASUM7XP.cjs');
12
+ var _chunkZEY37G5Mcjs = require('./chunk-ZEY37G5M.cjs');
13
13
 
14
14
 
15
- var _chunk2UVDRFO7cjs = require('./chunk-2UVDRFO7.cjs');
15
+ var _chunkRMEQ2MPXcjs = require('./chunk-RMEQ2MPX.cjs');
16
16
 
17
17
 
18
- var _chunkNLSJKLSCcjs = require('./chunk-NLSJKLSC.cjs');
18
+ var _chunkC6RNYTS3cjs = require('./chunk-C6RNYTS3.cjs');
19
19
 
20
20
 
21
21
 
@@ -23,29 +23,29 @@ var _chunkNLSJKLSCcjs = require('./chunk-NLSJKLSC.cjs');
23
23
 
24
24
 
25
25
 
26
- var _chunkYBSO5IT4cjs = require('./chunk-YBSO5IT4.cjs');
26
+ var _chunkTIT5WULOcjs = require('./chunk-TIT5WULO.cjs');
27
27
 
28
28
 
29
- var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
29
+ var _chunkE4UJTY7Bcjs = require('./chunk-E4UJTY7B.cjs');
30
30
 
31
31
  // src/build.ts
32
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
32
+ _chunkE4UJTY7Bcjs.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
- _chunkYBSO5IT4cjs.writeWarning.call(void 0,
38
+ _chunkTIT5WULOcjs.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
- _chunkYBSO5IT4cjs.writeSuccess.call(void 0,
43
+ _chunkTIT5WULOcjs.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
- _chunkYBSO5IT4cjs.writeError.call(void 0,
48
+ _chunkTIT5WULOcjs.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: [_chunkLU3VPU4Pcjs.depsCheckPlugin.call(void 0, options.bundle)]
77
+ plugins: [_chunkHOU7FIPQcjs.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
- _chunkYBSO5IT4cjs.writeDebug.call(void 0,
85
+ _chunkTIT5WULOcjs.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 = _chunkYBSO5IT4cjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
90
- await _chunkRBQ2BQCCcjs.cleanDirectories.call(void 0, context.outputPath);
89
+ const stopwatch = _chunkTIT5WULOcjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
90
+ await _chunkE5WQ7RCZcjs.cleanDirectories.call(void 0, context.outputPath);
91
91
  stopwatch();
92
92
  }
93
93
  return context;
94
94
  }
95
95
  async function build2(options) {
96
- _chunkYBSO5IT4cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
97
- const stopwatch = _chunkYBSO5IT4cjs.getStopwatch.call(void 0, "ESBuild pipeline");
96
+ _chunkTIT5WULOcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
97
+ const stopwatch = _chunkTIT5WULOcjs.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 _chunkZASUM7XPcjs.resolveContext.call(void 0, options);
103
+ const context = await _chunkZEY37G5Mcjs.resolveContext.call(void 0, options);
104
104
  await cleanOutputPath(context);
105
105
  await Promise.all([
106
106
  dependencyCheck(context.options),
107
- _chunk2UVDRFO7cjs.generatePackageJson.call(void 0, context),
108
- _chunkKE66Z7ICcjs.copyBuildAssets.call(void 0, context),
109
- _chunkNLSJKLSCcjs.executeTsup.call(void 0, context)
107
+ _chunkRMEQ2MPXcjs.generatePackageJson.call(void 0, context),
108
+ _chunkRTDSY2NYcjs.copyBuildAssets.call(void 0, context),
109
+ _chunkC6RNYTS3cjs.executeTsup.call(void 0, context)
110
110
  ]);
111
111
  await reportResults(context);
112
- _chunkYBSO5IT4cjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
112
+ _chunkTIT5WULOcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
113
113
  } catch (error) {
114
- _chunkYBSO5IT4cjs.writeFatal.call(void 0,
114
+ _chunkTIT5WULOcjs.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;
package/dist/clean.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkRBQ2BQCCcjs = require('./chunk-RBQ2BQCC.cjs');
5
- require('./chunk-YBSO5IT4.cjs');
6
- require('./chunk-UF7MZTGE.cjs');
7
- require('./chunk-VRHF33Y5.cjs');
4
+ var _chunkE5WQ7RCZcjs = require('./chunk-E5WQ7RCZ.cjs');
5
+ require('./chunk-TIT5WULO.cjs');
6
+ require('./chunk-HBZMQYVF.cjs');
7
+ require('./chunk-E4UJTY7B.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.clean = _chunkRBQ2BQCCcjs.clean; exports.cleanDirectories = _chunkRBQ2BQCCcjs.cleanDirectories;
11
+ exports.clean = _chunkE5WQ7RCZcjs.clean; exports.cleanDirectories = _chunkE5WQ7RCZcjs.cleanDirectories;
package/dist/clean.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-3IZVDKCD.js";
5
- import "./chunk-L2SAFC2E.js";
6
- import "./chunk-AQLVPEJX.js";
7
- import "./chunk-I52SUD5S.js";
4
+ } from "./chunk-NVMEEE6W.js";
5
+ import "./chunk-LXRH5WPF.js";
6
+ import "./chunk-MZAOJVAF.js";
7
+ import "./chunk-D5BUKXUF.js";
8
8
  export {
9
9
  clean,
10
10
  cleanDirectories
package/dist/config.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkNZ6JCAUUcjs = require('./chunk-NZ6JCAUU.cjs');
4
- require('./chunk-F3RSGQZH.cjs');
5
- require('./chunk-YBSO5IT4.cjs');
6
- require('./chunk-UF7MZTGE.cjs');
7
- require('./chunk-VRHF33Y5.cjs');
3
+ var _chunkAH5IZCVUcjs = require('./chunk-AH5IZCVU.cjs');
4
+ require('./chunk-666X5DAD.cjs');
5
+ require('./chunk-TIT5WULO.cjs');
6
+ require('./chunk-HBZMQYVF.cjs');
7
+ require('./chunk-E4UJTY7B.cjs');
8
8
 
9
9
 
10
- exports.DEFAULT_BUILD_OPTIONS = _chunkNZ6JCAUUcjs.DEFAULT_BUILD_OPTIONS;
10
+ exports.DEFAULT_BUILD_OPTIONS = _chunkAH5IZCVUcjs.DEFAULT_BUILD_OPTIONS;
package/dist/config.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS
3
- } from "./chunk-P7E4FGWI.js";
4
- import "./chunk-4X2ID2CD.js";
5
- import "./chunk-L2SAFC2E.js";
6
- import "./chunk-AQLVPEJX.js";
7
- import "./chunk-I52SUD5S.js";
3
+ } from "./chunk-2SUTZQJO.js";
4
+ import "./chunk-C7MXKCEV.js";
5
+ import "./chunk-LXRH5WPF.js";
6
+ import "./chunk-MZAOJVAF.js";
7
+ import "./chunk-D5BUKXUF.js";
8
8
  export {
9
9
  DEFAULT_BUILD_OPTIONS
10
10
  };
package/dist/context.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZASUM7XPcjs = require('./chunk-ZASUM7XP.cjs');
4
- require('./chunk-NZ6JCAUU.cjs');
5
- require('./chunk-F3RSGQZH.cjs');
6
- require('./chunk-YBSO5IT4.cjs');
7
- require('./chunk-UF7MZTGE.cjs');
8
- require('./chunk-VRHF33Y5.cjs');
3
+ var _chunkZEY37G5Mcjs = require('./chunk-ZEY37G5M.cjs');
4
+ require('./chunk-AH5IZCVU.cjs');
5
+ require('./chunk-666X5DAD.cjs');
6
+ require('./chunk-TIT5WULO.cjs');
7
+ require('./chunk-HBZMQYVF.cjs');
8
+ require('./chunk-E4UJTY7B.cjs');
9
9
 
10
10
 
11
- exports.resolveContext = _chunkZASUM7XPcjs.resolveContext;
11
+ exports.resolveContext = _chunkZEY37G5Mcjs.resolveContext;
package/dist/context.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveContext
3
- } from "./chunk-N6SRJ3MW.js";
4
- import "./chunk-P7E4FGWI.js";
5
- import "./chunk-4X2ID2CD.js";
6
- import "./chunk-L2SAFC2E.js";
7
- import "./chunk-AQLVPEJX.js";
8
- import "./chunk-I52SUD5S.js";
3
+ } from "./chunk-BHU3AZEV.js";
4
+ import "./chunk-2SUTZQJO.js";
5
+ import "./chunk-C7MXKCEV.js";
6
+ import "./chunk-LXRH5WPF.js";
7
+ import "./chunk-MZAOJVAF.js";
8
+ import "./chunk-D5BUKXUF.js";
9
9
  export {
10
10
  resolveContext
11
11
  };
package/dist/index.cjs CHANGED
@@ -1,23 +1,23 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-5OLNQTRT.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-CSKW6ZGK.cjs');
2
2
 
3
3
 
4
- var _chunkJ4JQBPNBcjs = require('./chunk-J4JQBPNB.cjs');
5
- require('./chunk-LU3VPU4P.cjs');
6
- require('./chunk-KE66Z7IC.cjs');
7
- require('./chunk-RBQ2BQCC.cjs');
8
- require('./chunk-ZASUM7XP.cjs');
9
- require('./chunk-NZ6JCAUU.cjs');
10
- require('./chunk-2UVDRFO7.cjs');
11
- require('./chunk-F3RSGQZH.cjs');
12
- require('./chunk-NLSJKLSC.cjs');
13
- require('./chunk-YBSO5IT4.cjs');
14
- require('./chunk-UF7MZTGE.cjs');
4
+ var _chunkZVOXGROUcjs = require('./chunk-ZVOXGROU.cjs');
5
+ require('./chunk-HOU7FIPQ.cjs');
6
+ require('./chunk-RTDSY2NY.cjs');
7
+ require('./chunk-E5WQ7RCZ.cjs');
8
+ require('./chunk-ZEY37G5M.cjs');
9
+ require('./chunk-AH5IZCVU.cjs');
10
+ require('./chunk-RMEQ2MPX.cjs');
11
+ require('./chunk-666X5DAD.cjs');
12
+ require('./chunk-C6RNYTS3.cjs');
13
+ require('./chunk-TIT5WULO.cjs');
14
+ require('./chunk-HBZMQYVF.cjs');
15
15
 
16
16
 
17
- var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
17
+ var _chunkE4UJTY7Bcjs = require('./chunk-E4UJTY7B.cjs');
18
18
 
19
19
  // src/index.ts
20
- _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
20
+ _chunkE4UJTY7Bcjs.init_cjs_shims.call(void 0, );
21
21
 
22
22
 
23
- exports.build = _chunkJ4JQBPNBcjs.build;
23
+ exports.build = _chunkZVOXGROUcjs.build;
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
- import "./chunk-F4PL6OZA.js";
1
+ import "./chunk-PFUD6XZ2.js";
2
2
  import {
3
3
  build
4
- } from "./chunk-NZ3FE3ZT.js";
5
- import "./chunk-KLZ2SML6.js";
6
- import "./chunk-4FDCADS4.js";
7
- import "./chunk-3IZVDKCD.js";
8
- import "./chunk-N6SRJ3MW.js";
9
- import "./chunk-P7E4FGWI.js";
10
- import "./chunk-6HRIZYNW.js";
11
- import "./chunk-4X2ID2CD.js";
12
- import "./chunk-W4MPEWRT.js";
13
- import "./chunk-L2SAFC2E.js";
14
- import "./chunk-AQLVPEJX.js";
4
+ } from "./chunk-F2NFCPLY.js";
5
+ import "./chunk-YFVYTJH3.js";
6
+ import "./chunk-KMAWKT2J.js";
7
+ import "./chunk-NVMEEE6W.js";
8
+ import "./chunk-BHU3AZEV.js";
9
+ import "./chunk-2SUTZQJO.js";
10
+ import "./chunk-OGMV3O2R.js";
11
+ import "./chunk-C7MXKCEV.js";
12
+ import "./chunk-BRYMNX33.js";
13
+ import "./chunk-LXRH5WPF.js";
14
+ import "./chunk-MZAOJVAF.js";
15
15
  import {
16
16
  init_esm_shims
17
- } from "./chunk-I52SUD5S.js";
17
+ } from "./chunk-D5BUKXUF.js";
18
18
 
19
19
  // src/index.ts
20
20
  init_esm_shims();
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2UVDRFO7cjs = require('./chunk-2UVDRFO7.cjs');
4
- require('./chunk-F3RSGQZH.cjs');
5
- require('./chunk-YBSO5IT4.cjs');
6
- require('./chunk-UF7MZTGE.cjs');
7
- require('./chunk-VRHF33Y5.cjs');
3
+ var _chunkRMEQ2MPXcjs = require('./chunk-RMEQ2MPX.cjs');
4
+ require('./chunk-666X5DAD.cjs');
5
+ require('./chunk-TIT5WULO.cjs');
6
+ require('./chunk-HBZMQYVF.cjs');
7
+ require('./chunk-E4UJTY7B.cjs');
8
8
 
9
9
 
10
- exports.generatePackageJson = _chunk2UVDRFO7cjs.generatePackageJson;
10
+ exports.generatePackageJson = _chunkRMEQ2MPXcjs.generatePackageJson;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  generatePackageJson
3
- } from "./chunk-6HRIZYNW.js";
4
- import "./chunk-4X2ID2CD.js";
5
- import "./chunk-L2SAFC2E.js";
6
- import "./chunk-AQLVPEJX.js";
7
- import "./chunk-I52SUD5S.js";
3
+ } from "./chunk-OGMV3O2R.js";
4
+ import "./chunk-C7MXKCEV.js";
5
+ import "./chunk-LXRH5WPF.js";
6
+ import "./chunk-MZAOJVAF.js";
7
+ import "./chunk-D5BUKXUF.js";
8
8
  export {
9
9
  generatePackageJson
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkLU3VPU4Pcjs = require('../chunk-LU3VPU4P.cjs');
4
- require('../chunk-YBSO5IT4.cjs');
5
- require('../chunk-UF7MZTGE.cjs');
6
- require('../chunk-VRHF33Y5.cjs');
3
+ var _chunkHOU7FIPQcjs = require('../chunk-HOU7FIPQ.cjs');
4
+ require('../chunk-TIT5WULO.cjs');
5
+ require('../chunk-HBZMQYVF.cjs');
6
+ require('../chunk-E4UJTY7B.cjs');
7
7
 
8
8
 
9
- exports.depsCheckPlugin = _chunkLU3VPU4Pcjs.depsCheckPlugin;
9
+ exports.depsCheckPlugin = _chunkHOU7FIPQcjs.depsCheckPlugin;