@storm-software/esbuild 0.41.1 → 0.41.2

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 (53) hide show
  1. package/README.md +1 -1
  2. package/dist/assets.cjs +6 -6
  3. package/dist/assets.js +5 -5
  4. package/dist/build.cjs +13 -13
  5. package/dist/build.js +12 -12
  6. package/dist/{chunk-VNLMOUVN.js → chunk-3NHHHWA2.js} +2 -2
  7. package/dist/{chunk-QOTJTLX7.js → chunk-4NWQIND4.js} +1 -1
  8. package/dist/{chunk-B3MHVZOK.cjs → chunk-4V73TPC7.cjs} +2 -2
  9. package/dist/{chunk-C25ALB4J.cjs → chunk-5T7LV3VF.cjs} +81 -75
  10. package/dist/{chunk-BWMW4ZUS.cjs → chunk-5YNL6VNW.cjs} +24 -24
  11. package/dist/{chunk-JCICRU7K.cjs → chunk-62Y6Y42O.cjs} +2 -2
  12. package/dist/{chunk-72UBXZRO.js → chunk-E3PX7E5J.js} +2 -2
  13. package/dist/chunk-EN26FAA2.cjs +6 -0
  14. package/dist/{chunk-55UPQQ65.cjs → chunk-FAL7YAO3.cjs} +84 -84
  15. package/dist/{chunk-BK5GLVSJ.cjs → chunk-GJGUIJAB.cjs} +13 -13
  16. package/dist/{chunk-IULOZ7MO.cjs → chunk-HSJ2BWA7.cjs} +5 -5
  17. package/dist/{chunk-CEJM5IFH.js → chunk-HVQQWRMH.js} +3 -3
  18. package/dist/{chunk-KV6GNLVF.js → chunk-IC54RIRD.js} +1 -1
  19. package/dist/{chunk-RBXXACL5.cjs → chunk-KEVRLQE4.cjs} +20 -20
  20. package/dist/{chunk-RNXNYWO3.js → chunk-KGNFKVEH.js} +5 -5
  21. package/dist/{chunk-LBRDOW2V.cjs → chunk-KHAZPE4L.cjs} +7 -7
  22. package/dist/{chunk-H7NSISN4.cjs → chunk-LDSRC54X.cjs} +16 -16
  23. package/dist/{chunk-NLIYZM5H.cjs → chunk-NCWOG3XF.cjs} +5 -5
  24. package/dist/{chunk-FHHEEOIV.js → chunk-NEVF2Z32.js} +2 -2
  25. package/dist/{chunk-Q3WZPCLD.js → chunk-NNYGWF35.js} +3 -3
  26. package/dist/{chunk-NACKZM5D.js → chunk-WCPIVIQK.js} +2 -2
  27. package/dist/{chunk-VLK67MTI.js → chunk-WRR5M4KJ.js} +4 -4
  28. package/dist/{chunk-2LYIFO7K.js → chunk-XUY5SM57.js} +2 -2
  29. package/dist/{chunk-KXZCIMKJ.js → chunk-Y2TMW2OD.js} +32 -26
  30. package/dist/{chunk-7KIT5JE6.js → chunk-YCGENY4P.js} +8 -8
  31. package/dist/{chunk-T4N45NGL.cjs → chunk-YU5AMY3Q.cjs} +6 -6
  32. package/dist/clean.cjs +5 -5
  33. package/dist/clean.js +4 -4
  34. package/dist/config.cjs +6 -6
  35. package/dist/config.js +5 -5
  36. package/dist/context.cjs +7 -7
  37. package/dist/context.js +6 -6
  38. package/dist/index.cjs +15 -15
  39. package/dist/index.js +13 -13
  40. package/dist/package-json.cjs +6 -6
  41. package/dist/package-json.js +5 -5
  42. package/dist/plugins/deps-check.cjs +5 -5
  43. package/dist/plugins/deps-check.js +4 -4
  44. package/dist/plugins/resolve-paths.cjs +11 -11
  45. package/dist/plugins/resolve-paths.js +2 -2
  46. package/dist/tsup.cjs +5 -5
  47. package/dist/tsup.js +4 -4
  48. package/dist/types.cjs +2 -2
  49. package/dist/types.js +2 -2
  50. package/dist/watch.cjs +7 -7
  51. package/dist/watch.js +3 -3
  52. package/package.json +4 -4
  53. package/dist/chunk-XHTD4QDZ.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 _chunkB3MHVZOKcjs = require('./chunk-B3MHVZOK.cjs');
4
+ var _chunk4V73TPC7cjs = require('./chunk-4V73TPC7.cjs');
5
5
 
6
6
 
7
- var _chunkJCICRU7Kcjs = require('./chunk-JCICRU7K.cjs');
7
+ var _chunk62Y6Y42Ocjs = require('./chunk-62Y6Y42O.cjs');
8
8
 
9
9
  // ../config-tools/src/logger/console.ts
10
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
10
+ _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
11
11
 
12
12
  // ../config-tools/src/types.ts
13
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
13
+ _chunk62Y6Y42Ocjs.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
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
38
+ _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
39
39
 
40
40
  // ../config/src/index.ts
41
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
41
+ _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
42
42
 
43
43
  // ../config/src/constants.ts
44
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
44
+ _chunk62Y6Y42Ocjs.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
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
67
+ _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
68
68
 
69
69
  // ../config/src/schema.ts
70
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
70
+ _chunk62Y6Y42Ocjs.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
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
278
+ _chunk62Y6Y42Ocjs.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
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
303
+ _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
304
304
 
305
305
  // ../config-tools/src/utilities/find-up.ts
306
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
306
+ _chunk62Y6Y42Ocjs.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 _chunkB3MHVZOKcjs.correctPaths.call(void 0,
375
+ return _chunk4V73TPC7cjs.correctPaths.call(void 0,
376
376
  _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
377
377
  );
378
378
  }
379
- return _chunkB3MHVZOKcjs.correctPaths.call(void 0,
379
+ return _chunk4V73TPC7cjs.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
- _chunkB3MHVZOKcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
439
+ _chunk4V73TPC7cjs.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
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
481
+ _chunk62Y6Y42Ocjs.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
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
511
+ _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
512
512
 
513
513
  // ../config-tools/src/logger/is-unicode-supported.ts
514
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
514
+ _chunk62Y6Y42Ocjs.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
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
539
+ _chunk62Y6Y42Ocjs.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
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
545
+ _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
546
546
  var getLogLevel = (label) => {
547
547
  switch (label) {
548
548
  case "all":
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS
3
- } from "./chunk-FHHEEOIV.js";
3
+ } from "./chunk-NEVF2Z32.js";
4
4
  import {
5
5
  getEnv,
6
6
  getWorkspaceConfig
7
- } from "./chunk-Q3WZPCLD.js";
7
+ } from "./chunk-NNYGWF35.js";
8
8
  import {
9
9
  getStopwatch,
10
10
  writeDebug
11
- } from "./chunk-NACKZM5D.js";
11
+ } from "./chunk-WCPIVIQK.js";
12
12
  import {
13
13
  joinPaths
14
- } from "./chunk-KV6GNLVF.js";
14
+ } from "./chunk-IC54RIRD.js";
15
15
  import {
16
16
  init_esm_shims
17
- } from "./chunk-72UBXZRO.js";
17
+ } from "./chunk-E3PX7E5J.js";
18
18
 
19
19
  // src/context.ts
20
20
  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 _chunk55UPQQ65cjs = require('./chunk-55UPQQ65.cjs');
3
+ var _chunkFAL7YAO3cjs = require('./chunk-FAL7YAO3.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkRBXXACL5cjs = require('./chunk-RBXXACL5.cjs');
7
+ var _chunkKEVRLQE4cjs = require('./chunk-KEVRLQE4.cjs');
8
8
 
9
9
 
10
- var _chunkJCICRU7Kcjs = require('./chunk-JCICRU7K.cjs');
10
+ var _chunk62Y6Y42Ocjs = require('./chunk-62Y6Y42O.cjs');
11
11
 
12
12
  // src/assets.ts
13
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
13
+ _chunk62Y6Y42Ocjs.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
- _chunkRBXXACL5cjs.writeDebug.call(void 0,
16
+ _chunkKEVRLQE4cjs.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 = _chunkRBXXACL5cjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
21
- await _chunk55UPQQ65cjs.copyAssets.call(void 0,
20
+ const stopwatch = _chunkKEVRLQE4cjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
21
+ await _chunkFAL7YAO3cjs.copyAssets.call(void 0,
22
22
  context.workspaceConfig,
23
23
  _nullishCoalesce(context.options.assets, () => ( [])),
24
24
  context.outputPath,
@@ -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 _chunkIULOZ7MOcjs = require('./chunk-IULOZ7MO.cjs');
3
+ var _chunkHSJ2BWA7cjs = require('./chunk-HSJ2BWA7.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunk55UPQQ65cjs = require('./chunk-55UPQQ65.cjs');
7
+ var _chunkFAL7YAO3cjs = require('./chunk-FAL7YAO3.cjs');
8
8
 
9
9
 
10
10
 
11
- var _chunkRBXXACL5cjs = require('./chunk-RBXXACL5.cjs');
11
+ var _chunkKEVRLQE4cjs = require('./chunk-KEVRLQE4.cjs');
12
12
 
13
13
 
14
- var _chunkB3MHVZOKcjs = require('./chunk-B3MHVZOK.cjs');
14
+ var _chunk4V73TPC7cjs = require('./chunk-4V73TPC7.cjs');
15
15
 
16
16
 
17
- var _chunkJCICRU7Kcjs = require('./chunk-JCICRU7K.cjs');
17
+ var _chunk62Y6Y42Ocjs = require('./chunk-62Y6Y42O.cjs');
18
18
 
19
19
  // src/context.ts
20
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
20
+ _chunk62Y6Y42Ocjs.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 _chunk55UPQQ65cjs.getWorkspaceConfig.call(void 0, true, {
35
+ const workspaceConfig = await _chunkFAL7YAO3cjs.getWorkspaceConfig.call(void 0, true, {
36
36
  workspaceRoot: workspaceRoot.dir
37
37
  });
38
- _chunkRBXXACL5cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
39
- const stopwatch = _chunkRBXXACL5cjs.getStopwatch.call(void 0, "Build options resolution");
38
+ _chunkKEVRLQE4cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
39
+ const stopwatch = _chunkKEVRLQE4cjs.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 = _chunkB3MHVZOKcjs.joinPaths.call(void 0,
43
+ const projectJsonPath = _chunk4V73TPC7cjs.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, _chunkIULOZ7MOcjs.DEFAULT_BUILD_OPTIONS);
60
+ const options = _defu2.default.call(void 0, userOptions, _chunkHSJ2BWA7cjs.DEFAULT_BUILD_OPTIONS);
61
61
  options.name ??= projectName;
62
- const packageJsonPath = _chunkB3MHVZOKcjs.joinPaths.call(void 0,
62
+ const packageJsonPath = _chunk4V73TPC7cjs.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 = _chunk55UPQQ65cjs.getEnv.call(void 0, "esbuild", options);
70
+ const env = _chunkFAL7YAO3cjs.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: _chunkB3MHVZOKcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
73
+ tsconfig: _chunk4V73TPC7cjs.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 || _chunkB3MHVZOKcjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
100
- outputPath: resolvedOptions.outputPath || _chunkB3MHVZOKcjs.joinPaths.call(void 0,
99
+ sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunk4V73TPC7cjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
100
+ outputPath: resolvedOptions.outputPath || _chunk4V73TPC7cjs.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 _chunkRBXXACL5cjs = require('./chunk-RBXXACL5.cjs');
4
+ var _chunkKEVRLQE4cjs = require('./chunk-KEVRLQE4.cjs');
5
5
 
6
6
 
7
- var _chunkJCICRU7Kcjs = require('./chunk-JCICRU7K.cjs');
7
+ var _chunk62Y6Y42Ocjs = require('./chunk-62Y6Y42O.cjs');
8
8
 
9
9
  // src/clean.ts
10
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
10
+ _chunk62Y6Y42Ocjs.init_cjs_shims.call(void 0, );
11
11
  var _promises = require('fs/promises');
12
12
  async function clean(name = "ESBuild", directory, config) {
13
- _chunkRBXXACL5cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
14
- const stopwatch = _chunkRBXXACL5cjs.getStopwatch.call(void 0, `${name} output clean`);
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`);
15
15
  await cleanDirectories(directory);
16
16
  stopwatch();
17
17
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  DEFAULT_COMPILED_BANNER
3
- } from "./chunk-Q3WZPCLD.js";
3
+ } from "./chunk-NNYGWF35.js";
4
4
  import {
5
5
  init_esm_shims
6
- } from "./chunk-72UBXZRO.js";
6
+ } from "./chunk-E3PX7E5J.js";
7
7
 
8
8
  // src/config.ts
9
9
  init_esm_shims();
@@ -13,14 +13,14 @@ import {
13
13
  writeDebug,
14
14
  writeTrace,
15
15
  writeWarning
16
- } from "./chunk-NACKZM5D.js";
16
+ } from "./chunk-WCPIVIQK.js";
17
17
  import {
18
18
  correctPaths,
19
19
  joinPaths
20
- } from "./chunk-KV6GNLVF.js";
20
+ } from "./chunk-IC54RIRD.js";
21
21
  import {
22
22
  init_esm_shims
23
- } from "./chunk-72UBXZRO.js";
23
+ } from "./chunk-E3PX7E5J.js";
24
24
 
25
25
  // ../build-tools/src/config.ts
26
26
  init_esm_shims();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  correctPaths,
3
3
  joinPaths
4
- } from "./chunk-KV6GNLVF.js";
4
+ } from "./chunk-IC54RIRD.js";
5
5
  import {
6
6
  init_esm_shims
7
- } from "./chunk-72UBXZRO.js";
7
+ } from "./chunk-E3PX7E5J.js";
8
8
 
9
9
  // ../config-tools/src/logger/console.ts
10
10
  init_esm_shims();
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  addPackageDependencies,
3
3
  addWorkspacePackageJsonFields
4
- } from "./chunk-Q3WZPCLD.js";
4
+ } from "./chunk-NNYGWF35.js";
5
5
  import {
6
6
  getStopwatch,
7
7
  writeDebug
8
- } from "./chunk-NACKZM5D.js";
8
+ } from "./chunk-WCPIVIQK.js";
9
9
  import {
10
10
  joinPaths
11
- } from "./chunk-KV6GNLVF.js";
11
+ } from "./chunk-IC54RIRD.js";
12
12
  import {
13
13
  init_esm_shims
14
- } from "./chunk-72UBXZRO.js";
14
+ } from "./chunk-E3PX7E5J.js";
15
15
 
16
16
  // src/package-json.ts
17
17
  init_esm_shims();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-NACKZM5D.js";
4
+ } from "./chunk-WCPIVIQK.js";
5
5
  import {
6
6
  init_esm_shims
7
- } from "./chunk-72UBXZRO.js";
7
+ } from "./chunk-E3PX7E5J.js";
8
8
 
9
9
  // src/clean.ts
10
10
  init_esm_shims();
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-NACKZM5D.js";
4
+ } from "./chunk-WCPIVIQK.js";
5
5
  import {
6
6
  joinPaths
7
- } from "./chunk-KV6GNLVF.js";
7
+ } from "./chunk-IC54RIRD.js";
8
8
  import {
9
9
  __commonJS,
10
10
  __dirname,
11
11
  __require,
12
12
  __toESM,
13
13
  init_esm_shims
14
- } from "./chunk-72UBXZRO.js";
14
+ } from "./chunk-E3PX7E5J.js";
15
15
 
16
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/dist/chunk-BYH4XDRH.js
16
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b8584d6fbd29e6db4e299eaf46843332/node_modules/tsup/dist/chunk-BYH4XDRH.js
17
17
  var require_chunk_BYH4XDRH = __commonJS({
18
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/dist/chunk-BYH4XDRH.js"(exports) {
18
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b8584d6fbd29e6db4e299eaf46843332/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=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/dist/chunk-TWFEYLU4.js
27
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b8584d6fbd29e6db4e299eaf46843332/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=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/dist/chunk-TWFEYLU4.js"(exports) {
33
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b8584d6fbd29e6db4e299eaf46843332/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=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/dist/chunk-VGC3FXLU.js
409
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b8584d6fbd29e6db4e299eaf46843332/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=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/dist/chunk-VGC3FXLU.js"(exports) {
418
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b8584d6fbd29e6db4e299eaf46843332/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=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/dist/chunk-JZ25TPTY.js
645
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b8584d6fbd29e6db4e299eaf46843332/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=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/dist/chunk-JZ25TPTY.js"(exports) {
649
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b8584d6fbd29e6db4e299eaf46843332/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=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/dist/commonjs-plugin.js
697
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b8584d6fbd29e6db4e299eaf46843332/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=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/dist/commonjs-plugin.js"(exports, module) {
701
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b8584d6fbd29e6db4e299eaf46843332/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=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/dist/index.js
1029
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b8584d6fbd29e6db4e299eaf46843332/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=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/dist/index.js"(exports) {
1045
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b8584d6fbd29e6db4e299eaf46843332/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());
@@ -1752,17 +1752,23 @@ var require_dist = __commonJS({
1752
1752
  if (result) {
1753
1753
  info.code = result.code;
1754
1754
  if (result.map) {
1755
- const originalConsumer = await new (0, _sourcemap.SourceMapConsumer)(
1756
- parseSourceMap(info.map)
1757
- );
1758
- const newConsumer = await new (0, _sourcemap.SourceMapConsumer)(
1759
- parseSourceMap(result.map)
1760
- );
1761
- const generator = _sourcemap.SourceMapGenerator.fromSourceMap(newConsumer);
1762
- generator.applySourceMap(originalConsumer, info.path);
1763
- info.map = generator.toJSON();
1764
- originalConsumer.destroy();
1765
- newConsumer.destroy();
1755
+ try {
1756
+ const originalConsumer = await new (0, _sourcemap.SourceMapConsumer)(
1757
+ parseSourceMap(info.map)
1758
+ );
1759
+ const newConsumer = await new (0, _sourcemap.SourceMapConsumer)(
1760
+ parseSourceMap(result.map)
1761
+ );
1762
+ const generator = _sourcemap.SourceMapGenerator.fromSourceMap(newConsumer);
1763
+ generator.applySourceMap(originalConsumer, info.path);
1764
+ info.map = generator.toJSON();
1765
+ originalConsumer.destroy();
1766
+ newConsumer.destroy();
1767
+ } catch (error) {
1768
+ console.warn(
1769
+ `Failed to parse sourcemap for ${info.path}: ${error.message}`
1770
+ );
1771
+ }
1766
1772
  }
1767
1773
  }
1768
1774
  }
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  depsCheckPlugin
3
- } from "./chunk-VNLMOUVN.js";
3
+ } from "./chunk-3NHHHWA2.js";
4
4
  import {
5
5
  copyBuildAssets
6
- } from "./chunk-CEJM5IFH.js";
6
+ } from "./chunk-HVQQWRMH.js";
7
7
  import {
8
8
  cleanDirectories
9
- } from "./chunk-2LYIFO7K.js";
9
+ } from "./chunk-XUY5SM57.js";
10
10
  import {
11
11
  resolveContext
12
- } from "./chunk-RNXNYWO3.js";
12
+ } from "./chunk-KGNFKVEH.js";
13
13
  import {
14
14
  generatePackageJson
15
- } from "./chunk-VLK67MTI.js";
15
+ } from "./chunk-WRR5M4KJ.js";
16
16
  import {
17
17
  executeTsup
18
- } from "./chunk-KXZCIMKJ.js";
18
+ } from "./chunk-Y2TMW2OD.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-NACKZM5D.js";
26
+ } from "./chunk-WCPIVIQK.js";
27
27
  import {
28
28
  init_esm_shims
29
- } from "./chunk-72UBXZRO.js";
29
+ } from "./chunk-E3PX7E5J.js";
30
30
 
31
31
  // src/build.ts
32
32
  init_esm_shims();
@@ -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 _chunkRBXXACL5cjs = require('./chunk-RBXXACL5.cjs');
4
+ var _chunkKEVRLQE4cjs = require('./chunk-KEVRLQE4.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkJCICRU7Kcjs = require('./chunk-JCICRU7K.cjs');
8
+ var _chunk62Y6Y42Ocjs = require('./chunk-62Y6Y42O.cjs');
9
9
 
10
10
  // src/plugins/deps-check.ts
11
- _chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
11
+ _chunk62Y6Y42Ocjs.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 = _chunkJCICRU7Kcjs.__require.call(void 0, pkgJsonPath);
43
+ const pkgContents = _chunk62Y6Y42Ocjs.__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
- _chunkRBXXACL5cjs.writeWarning.call(void 0,
78
+ _chunkKEVRLQE4cjs.writeWarning.call(void 0,
79
79
  `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
80
80
  );
81
- _chunkRBXXACL5cjs.writeError.call(void 0,
81
+ _chunkKEVRLQE4cjs.writeError.call(void 0,
82
82
  `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
83
83
  );
84
84
  if (filteredMissingDeps.length > 0) {
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 _chunkNLIYZM5Hcjs = require('./chunk-NLIYZM5H.cjs');
5
- require('./chunk-RBXXACL5.cjs');
6
- require('./chunk-B3MHVZOK.cjs');
7
- require('./chunk-JCICRU7K.cjs');
4
+ var _chunkNCWOG3XFcjs = require('./chunk-NCWOG3XF.cjs');
5
+ require('./chunk-KEVRLQE4.cjs');
6
+ require('./chunk-4V73TPC7.cjs');
7
+ require('./chunk-62Y6Y42O.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.clean = _chunkNLIYZM5Hcjs.clean; exports.cleanDirectories = _chunkNLIYZM5Hcjs.cleanDirectories;
11
+ exports.clean = _chunkNCWOG3XFcjs.clean; exports.cleanDirectories = _chunkNCWOG3XFcjs.cleanDirectories;
package/dist/clean.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-2LYIFO7K.js";
5
- import "./chunk-NACKZM5D.js";
6
- import "./chunk-KV6GNLVF.js";
7
- import "./chunk-72UBXZRO.js";
4
+ } from "./chunk-XUY5SM57.js";
5
+ import "./chunk-WCPIVIQK.js";
6
+ import "./chunk-IC54RIRD.js";
7
+ import "./chunk-E3PX7E5J.js";
8
8
  export {
9
9
  clean,
10
10
  cleanDirectories