@storm-software/esbuild 0.45.13 → 0.45.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/dist/assets.cjs +4 -4
  3. package/dist/assets.js +3 -3
  4. package/dist/build.cjs +11 -11
  5. package/dist/build.js +10 -10
  6. package/dist/{chunk-OHC4AOQG.js → chunk-2KWHQXEB.js} +2 -2
  7. package/dist/{chunk-KFVVARZW.js → chunk-2SLML52B.js} +1 -1
  8. package/dist/{chunk-P3LL3C3V.cjs → chunk-6M35MSJB.cjs} +6 -6
  9. package/dist/{chunk-VYYRT4J4.cjs → chunk-6OYADFSA.cjs} +3 -3
  10. package/dist/{chunk-DMCSA7GD.cjs → chunk-7JLOTRDB.cjs} +4 -4
  11. package/dist/{chunk-PHUOQP5F.cjs → chunk-AFSMMQRW.cjs} +5 -5
  12. package/dist/{chunk-NXN35NZ7.cjs → chunk-AI7C5TSV.cjs} +10 -10
  13. package/dist/{chunk-DONA32WC.js → chunk-AMP5EOTJ.js} +1 -1
  14. package/dist/{chunk-YYB2TDMT.js → chunk-BSX5HNQU.js} +1 -1
  15. package/dist/{chunk-S4OFPSFS.js → chunk-FACAAHHC.js} +4 -4
  16. package/dist/{chunk-WMU243HH.js → chunk-FGSAPVGF.js} +3 -3
  17. package/dist/{chunk-LGDQLIWM.js → chunk-MPAKE565.js} +7 -7
  18. package/dist/{chunk-Y2WVY5RS.cjs → chunk-O23LLS4A.cjs} +3 -3
  19. package/dist/{chunk-J23YJYET.js → chunk-RRJJFUWA.js} +1 -1
  20. package/dist/{chunk-Q45WICGX.cjs → chunk-TWQRZNHN.cjs} +3 -3
  21. package/dist/{chunk-4T66RHLZ.cjs → chunk-VON742GS.cjs} +28 -28
  22. package/dist/{chunk-OVF7EMMD.js → chunk-VU2SMYN5.js} +1 -1
  23. package/dist/{chunk-CBRUGQFQ.cjs → chunk-WHCE6ZUN.cjs} +3 -3
  24. package/dist/{chunk-VREJONM4.js → chunk-XX2N6E6O.js} +2 -2
  25. package/dist/{chunk-LXFI4QN3.cjs → chunk-Z2PCSPBA.cjs} +22 -22
  26. package/dist/clean.cjs +3 -3
  27. package/dist/clean.js +2 -2
  28. package/dist/config.cjs +4 -4
  29. package/dist/config.js +3 -3
  30. package/dist/context.cjs +5 -5
  31. package/dist/context.js +4 -4
  32. package/dist/index.cjs +11 -11
  33. package/dist/index.js +10 -10
  34. package/dist/package-json.cjs +4 -4
  35. package/dist/package-json.js +3 -3
  36. package/dist/plugins/deps-check.cjs +3 -3
  37. package/dist/plugins/deps-check.js +2 -2
  38. package/dist/tsup.cjs +3 -3
  39. package/dist/tsup.js +2 -2
  40. package/dist/watch.cjs +3 -3
  41. package/dist/watch.js +1 -1
  42. package/package.json +5 -5
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.45.11-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.45.12-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/dist/assets.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkPHUOQP5Fcjs = require('./chunk-PHUOQP5F.cjs');
4
- require('./chunk-4T66RHLZ.cjs');
5
- require('./chunk-DMCSA7GD.cjs');
3
+ var _chunkAFSMMQRWcjs = require('./chunk-AFSMMQRW.cjs');
4
+ require('./chunk-VON742GS.cjs');
5
+ require('./chunk-7JLOTRDB.cjs');
6
6
  require('./chunk-REAX6FSO.cjs');
7
7
  require('./chunk-4ICWACJM.cjs');
8
8
 
9
9
 
10
- exports.copyBuildAssets = _chunkPHUOQP5Fcjs.copyBuildAssets;
10
+ exports.copyBuildAssets = _chunkAFSMMQRWcjs.copyBuildAssets;
package/dist/assets.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  copyBuildAssets
3
- } from "./chunk-OHC4AOQG.js";
4
- import "./chunk-KFVVARZW.js";
5
- import "./chunk-S4OFPSFS.js";
3
+ } from "./chunk-2KWHQXEB.js";
4
+ import "./chunk-2SLML52B.js";
5
+ import "./chunk-FACAAHHC.js";
6
6
  import "./chunk-A7I6K5HC.js";
7
7
  import "./chunk-GL7N7ANS.js";
8
8
  export {
package/dist/build.cjs CHANGED
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkLXFI4QN3cjs = require('./chunk-LXFI4QN3.cjs');
4
- require('./chunk-CBRUGQFQ.cjs');
5
- require('./chunk-PHUOQP5F.cjs');
6
- require('./chunk-VYYRT4J4.cjs');
7
- require('./chunk-NXN35NZ7.cjs');
8
- require('./chunk-Q45WICGX.cjs');
9
- require('./chunk-P3LL3C3V.cjs');
10
- require('./chunk-4T66RHLZ.cjs');
11
- require('./chunk-Y2WVY5RS.cjs');
12
- require('./chunk-DMCSA7GD.cjs');
3
+ var _chunkZ2PCSPBAcjs = require('./chunk-Z2PCSPBA.cjs');
4
+ require('./chunk-WHCE6ZUN.cjs');
5
+ require('./chunk-AFSMMQRW.cjs');
6
+ require('./chunk-6OYADFSA.cjs');
7
+ require('./chunk-AI7C5TSV.cjs');
8
+ require('./chunk-TWQRZNHN.cjs');
9
+ require('./chunk-6M35MSJB.cjs');
10
+ require('./chunk-VON742GS.cjs');
11
+ require('./chunk-O23LLS4A.cjs');
12
+ require('./chunk-7JLOTRDB.cjs');
13
13
  require('./chunk-REAX6FSO.cjs');
14
14
  require('./chunk-4ICWACJM.cjs');
15
15
 
16
16
 
17
- exports.build = _chunkLXFI4QN3cjs.build;
17
+ exports.build = _chunkZ2PCSPBAcjs.build;
package/dist/build.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-LGDQLIWM.js";
4
- import "./chunk-J23YJYET.js";
5
- import "./chunk-OHC4AOQG.js";
6
- import "./chunk-YYB2TDMT.js";
7
- import "./chunk-WMU243HH.js";
8
- import "./chunk-DONA32WC.js";
9
- import "./chunk-VREJONM4.js";
10
- import "./chunk-KFVVARZW.js";
11
- import "./chunk-OVF7EMMD.js";
12
- import "./chunk-S4OFPSFS.js";
3
+ } from "./chunk-MPAKE565.js";
4
+ import "./chunk-RRJJFUWA.js";
5
+ import "./chunk-2KWHQXEB.js";
6
+ import "./chunk-BSX5HNQU.js";
7
+ import "./chunk-FGSAPVGF.js";
8
+ import "./chunk-AMP5EOTJ.js";
9
+ import "./chunk-XX2N6E6O.js";
10
+ import "./chunk-2SLML52B.js";
11
+ import "./chunk-VU2SMYN5.js";
12
+ import "./chunk-FACAAHHC.js";
13
13
  import "./chunk-A7I6K5HC.js";
14
14
  import "./chunk-GL7N7ANS.js";
15
15
  export {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  copyAssets
3
- } from "./chunk-KFVVARZW.js";
3
+ } from "./chunk-2SLML52B.js";
4
4
  import {
5
5
  getStopwatch,
6
6
  writeDebug
7
- } from "./chunk-S4OFPSFS.js";
7
+ } from "./chunk-FACAAHHC.js";
8
8
  import {
9
9
  init_esm_shims
10
10
  } from "./chunk-GL7N7ANS.js";
@@ -14,7 +14,7 @@ import {
14
14
  writeDebug,
15
15
  writeTrace,
16
16
  writeWarning
17
- } from "./chunk-S4OFPSFS.js";
17
+ } from "./chunk-FACAAHHC.js";
18
18
  import {
19
19
  correctPaths,
20
20
  joinPaths
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
3
 
4
- var _chunk4T66RHLZcjs = require('./chunk-4T66RHLZ.cjs');
4
+ var _chunkVON742GScjs = require('./chunk-VON742GS.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkDMCSA7GDcjs = require('./chunk-DMCSA7GD.cjs');
8
+ var _chunk7JLOTRDBcjs = require('./chunk-7JLOTRDB.cjs');
9
9
 
10
10
 
11
11
  var _chunkREAX6FSOcjs = require('./chunk-REAX6FSO.cjs');
@@ -20,8 +20,8 @@ var _fs = require('fs');
20
20
  var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
21
21
  async function generatePackageJson(context) {
22
22
  if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkREAX6FSOcjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
23
- _chunkDMCSA7GDcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
24
- const stopwatch = _chunkDMCSA7GDcjs.getStopwatch.call(void 0, "Write package.json file");
23
+ _chunk7JLOTRDBcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
24
+ const stopwatch = _chunk7JLOTRDBcjs.getStopwatch.call(void 0, "Write package.json file");
25
25
  const packageJsonPath = _chunkREAX6FSOcjs.joinPaths.call(void 0,
26
26
  context.options.projectRoot,
27
27
  "project.json"
@@ -41,13 +41,13 @@ async function generatePackageJson(context) {
41
41
  if (!packageJson) {
42
42
  throw new Error("Cannot find package.json configuration file");
43
43
  }
44
- packageJson = await _chunk4T66RHLZcjs.addPackageDependencies.call(void 0,
44
+ packageJson = await _chunkVON742GScjs.addPackageDependencies.call(void 0,
45
45
  context.workspaceConfig.workspaceRoot,
46
46
  context.options.projectRoot,
47
47
  context.projectName,
48
48
  packageJson
49
49
  );
50
- packageJson = await _chunk4T66RHLZcjs.addWorkspacePackageJsonFields.call(void 0,
50
+ packageJson = await _chunkVON742GScjs.addWorkspacePackageJsonFields.call(void 0,
51
51
  context.workspaceConfig,
52
52
  context.options.projectRoot,
53
53
  context.sourceRoot,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkDMCSA7GDcjs = require('./chunk-DMCSA7GD.cjs');
4
+ var _chunk7JLOTRDBcjs = require('./chunk-7JLOTRDB.cjs');
5
5
 
6
6
 
7
7
  var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
@@ -10,8 +10,8 @@ var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
10
10
  _chunk4ICWACJMcjs.init_cjs_shims.call(void 0, );
11
11
  var _promises = require('fs/promises');
12
12
  async function clean(name = "ESBuild", directory, config) {
13
- _chunkDMCSA7GDcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
14
- const stopwatch = _chunkDMCSA7GDcjs.getStopwatch.call(void 0, `${name} output clean`);
13
+ _chunk7JLOTRDBcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
14
+ const stopwatch = _chunk7JLOTRDBcjs.getStopwatch.call(void 0, `${name} output clean`);
15
15
  await cleanDirectories(directory);
16
16
  stopwatch();
17
17
  }
@@ -146,10 +146,10 @@ var RegistryConfigSchema = z.object({
146
146
  var ColorConfigSchema = SingleThemeColorConfigSchema.or(
147
147
  MultiThemeColorConfigSchema
148
148
  ).describe("Colors used for various workspace elements");
149
- var ColorConfigMapSchema = z.union([
150
- z.object({ base: ColorConfigSchema }),
151
- z.record(z.string(), ColorConfigSchema)
152
- ]);
149
+ var ColorConfigMapSchema = z.record(
150
+ z.union([z.literal("base"), z.string()]),
151
+ ColorConfigSchema
152
+ );
153
153
  var ExtendsItemSchema = z.string().trim().describe(
154
154
  "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
155
155
  );
@@ -1,10 +1,10 @@
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 _chunk4T66RHLZcjs = require('./chunk-4T66RHLZ.cjs');
3
+ var _chunkVON742GScjs = require('./chunk-VON742GS.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkDMCSA7GDcjs = require('./chunk-DMCSA7GD.cjs');
7
+ var _chunk7JLOTRDBcjs = require('./chunk-7JLOTRDB.cjs');
8
8
 
9
9
 
10
10
  var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
@@ -13,12 +13,12 @@ var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
13
13
  _chunk4ICWACJMcjs.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
- _chunkDMCSA7GDcjs.writeDebug.call(void 0,
16
+ _chunk7JLOTRDBcjs.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 = _chunkDMCSA7GDcjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
21
- await _chunk4T66RHLZcjs.copyAssets.call(void 0,
20
+ const stopwatch = _chunk7JLOTRDBcjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
21
+ await _chunkVON742GScjs.copyAssets.call(void 0,
22
22
  context.workspaceConfig,
23
23
  _nullishCoalesce(context.options.assets, () => ( [])),
24
24
  context.outputPath,
@@ -1,15 +1,15 @@
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 _chunkQ45WICGXcjs = require('./chunk-Q45WICGX.cjs');
3
+ var _chunkTWQRZNHNcjs = require('./chunk-TWQRZNHN.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunk4T66RHLZcjs = require('./chunk-4T66RHLZ.cjs');
7
+ var _chunkVON742GScjs = require('./chunk-VON742GS.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkDMCSA7GDcjs = require('./chunk-DMCSA7GD.cjs');
12
+ var _chunk7JLOTRDBcjs = require('./chunk-7JLOTRDB.cjs');
13
13
 
14
14
 
15
15
  var _chunkREAX6FSOcjs = require('./chunk-REAX6FSO.cjs');
@@ -33,11 +33,11 @@ async function resolveContext(userOptions) {
33
33
  if (!workspaceRoot) {
34
34
  throw new Error("Cannot find Nx workspace root");
35
35
  }
36
- const workspaceConfig = await _chunk4T66RHLZcjs.getWorkspaceConfig.call(void 0, true, {
36
+ const workspaceConfig = await _chunkVON742GScjs.getWorkspaceConfig.call(void 0, true, {
37
37
  workspaceRoot: workspaceRoot.dir
38
38
  });
39
- _chunkDMCSA7GDcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
40
- const stopwatch = _chunkDMCSA7GDcjs.getStopwatch.call(void 0, "Build options resolution");
39
+ _chunk7JLOTRDBcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
40
+ const stopwatch = _chunk7JLOTRDBcjs.getStopwatch.call(void 0, "Build options resolution");
41
41
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
42
42
  exitOnError: true
43
43
  });
@@ -58,7 +58,7 @@ 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, _chunkQ45WICGXcjs.DEFAULT_BUILD_OPTIONS);
61
+ const options = _defu2.default.call(void 0, userOptions, _chunkTWQRZNHNcjs.DEFAULT_BUILD_OPTIONS);
62
62
  options.name ??= projectName;
63
63
  const packageJsonPath = _chunkREAX6FSOcjs.joinPaths.call(void 0,
64
64
  workspaceRoot.dir,
@@ -68,7 +68,7 @@ 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 = _chunk4T66RHLZcjs.getEnv.call(void 0, "esbuild", options);
71
+ const env = _chunkVON742GScjs.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,
@@ -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
- _chunkDMCSA7GDcjs.writeDebug.call(void 0,
110
+ _chunk7JLOTRDBcjs.writeDebug.call(void 0,
111
111
  ` \u2699\uFE0F Build options resolved:
112
112
 
113
- ${_chunkDMCSA7GDcjs.formatLogMessage.call(void 0, context.options)}`,
113
+ ${_chunk7JLOTRDBcjs.formatLogMessage.call(void 0, context.options)}`,
114
114
  workspaceConfig
115
115
  );
116
116
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_COMPILED_BANNER
3
- } from "./chunk-KFVVARZW.js";
3
+ } from "./chunk-2SLML52B.js";
4
4
  import {
5
5
  init_esm_shims
6
6
  } from "./chunk-GL7N7ANS.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-S4OFPSFS.js";
4
+ } from "./chunk-FACAAHHC.js";
5
5
  import {
6
6
  init_esm_shims
7
7
  } from "./chunk-GL7N7ANS.js";
@@ -146,10 +146,10 @@ var RegistryConfigSchema = z.object({
146
146
  var ColorConfigSchema = SingleThemeColorConfigSchema.or(
147
147
  MultiThemeColorConfigSchema
148
148
  ).describe("Colors used for various workspace elements");
149
- var ColorConfigMapSchema = z.union([
150
- z.object({ base: ColorConfigSchema }),
151
- z.record(z.string(), ColorConfigSchema)
152
- ]);
149
+ var ColorConfigMapSchema = z.record(
150
+ z.union([z.literal("base"), z.string()]),
151
+ ColorConfigSchema
152
+ );
153
153
  var ExtendsItemSchema = z.string().trim().describe(
154
154
  "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
155
155
  );
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS
3
- } from "./chunk-DONA32WC.js";
3
+ } from "./chunk-AMP5EOTJ.js";
4
4
  import {
5
5
  getEnv,
6
6
  getWorkspaceConfig
7
- } from "./chunk-KFVVARZW.js";
7
+ } from "./chunk-2SLML52B.js";
8
8
  import {
9
9
  formatLogMessage,
10
10
  getStopwatch,
11
11
  writeDebug
12
- } from "./chunk-S4OFPSFS.js";
12
+ } from "./chunk-FACAAHHC.js";
13
13
  import {
14
14
  joinPaths
15
15
  } from "./chunk-A7I6K5HC.js";
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  depsCheckPlugin
3
- } from "./chunk-J23YJYET.js";
3
+ } from "./chunk-RRJJFUWA.js";
4
4
  import {
5
5
  copyBuildAssets
6
- } from "./chunk-OHC4AOQG.js";
6
+ } from "./chunk-2KWHQXEB.js";
7
7
  import {
8
8
  cleanDirectories
9
- } from "./chunk-YYB2TDMT.js";
9
+ } from "./chunk-BSX5HNQU.js";
10
10
  import {
11
11
  resolveContext
12
- } from "./chunk-WMU243HH.js";
12
+ } from "./chunk-FGSAPVGF.js";
13
13
  import {
14
14
  generatePackageJson
15
- } from "./chunk-VREJONM4.js";
15
+ } from "./chunk-XX2N6E6O.js";
16
16
  import {
17
17
  executeTsup
18
- } from "./chunk-OVF7EMMD.js";
18
+ } from "./chunk-VU2SMYN5.js";
19
19
  import {
20
20
  getStopwatch,
21
21
  writeDebug,
@@ -23,7 +23,7 @@ import {
23
23
  writeFatal,
24
24
  writeSuccess,
25
25
  writeWarning
26
- } from "./chunk-S4OFPSFS.js";
26
+ } from "./chunk-FACAAHHC.js";
27
27
  import {
28
28
  init_esm_shims
29
29
  } from "./chunk-GL7N7ANS.js";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard2(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 _nullishCoalesce2(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain2(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; } var _class2;
2
2
 
3
3
 
4
- var _chunkDMCSA7GDcjs = require('./chunk-DMCSA7GD.cjs');
4
+ var _chunk7JLOTRDBcjs = require('./chunk-7JLOTRDB.cjs');
5
5
 
6
6
 
7
7
  var _chunkREAX6FSOcjs = require('./chunk-REAX6FSO.cjs');
@@ -2668,11 +2668,11 @@ module.exports = exports.default;
2668
2668
  _chunk4ICWACJMcjs.init_cjs_shims.call(void 0, );
2669
2669
  var import_tsup = _chunk4ICWACJMcjs.__toESM.call(void 0, require_dist(), 1);
2670
2670
  async function executeTsup(context) {
2671
- _chunkDMCSA7GDcjs.writeDebug.call(void 0,
2671
+ _chunk7JLOTRDBcjs.writeDebug.call(void 0,
2672
2672
  ` \u{1F680} Running ${context.options.name} build`,
2673
2673
  context.workspaceConfig
2674
2674
  );
2675
- const stopwatch = _chunkDMCSA7GDcjs.getStopwatch.call(void 0, `${context.options.name} build`);
2675
+ const stopwatch = _chunk7JLOTRDBcjs.getStopwatch.call(void 0, `${context.options.name} build`);
2676
2676
  await (0, import_tsup.build)({
2677
2677
  ...context.options,
2678
2678
  outDir: context.options.distDir ? _chunkREAX6FSOcjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeWarning
4
- } from "./chunk-S4OFPSFS.js";
4
+ } from "./chunk-FACAAHHC.js";
5
5
  import {
6
6
  __require,
7
7
  init_esm_shims
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk4T66RHLZcjs = require('./chunk-4T66RHLZ.cjs');
3
+ var _chunkVON742GScjs = require('./chunk-VON742GS.cjs');
4
4
 
5
5
 
6
6
  var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
@@ -44,8 +44,8 @@ var DEFAULT_BUILD_OPTIONS = {
44
44
  ".woff2": "file"
45
45
  },
46
46
  banner: {
47
- js: _chunk4T66RHLZcjs.DEFAULT_COMPILED_BANNER,
48
- css: _chunk4T66RHLZcjs.DEFAULT_COMPILED_BANNER
47
+ js: _chunkVON742GScjs.DEFAULT_COMPILED_BANNER,
48
+ css: _chunkVON742GScjs.DEFAULT_COMPILED_BANNER
49
49
  }
50
50
  };
51
51
 
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- var _chunkDMCSA7GDcjs = require('./chunk-DMCSA7GD.cjs');
17
+ var _chunk7JLOTRDBcjs = require('./chunk-7JLOTRDB.cjs');
18
18
 
19
19
 
20
20
 
@@ -65,7 +65,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
65
65
  output: "src/"
66
66
  });
67
67
  }
68
- _chunkDMCSA7GDcjs.writeTrace.call(void 0,
68
+ _chunk7JLOTRDBcjs.writeTrace.call(void 0,
69
69
  `\u{1F4DD} Copying the following assets to the output directory:
70
70
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkREAX6FSOcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
71
71
  config
@@ -78,7 +78,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
78
78
  });
79
79
  await assetHandler.processAllAssetsOnce();
80
80
  if (includeSrc === true) {
81
- _chunkDMCSA7GDcjs.writeDebug.call(void 0,
81
+ _chunk7JLOTRDBcjs.writeDebug.call(void 0,
82
82
  `\u{1F4DD} Adding banner and writing source files: ${_chunkREAX6FSOcjs.joinPaths.call(void 0,
83
83
  outputPath,
84
84
  "src"
@@ -163,7 +163,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
163
163
  }
164
164
  }
165
165
  if (localPackages.length > 0) {
166
- _chunkDMCSA7GDcjs.writeTrace.call(void 0,
166
+ _chunk7JLOTRDBcjs.writeTrace.call(void 0,
167
167
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
168
168
  );
169
169
  const projectJsonFile = await _promises.readFile.call(void 0,
@@ -211,12 +211,12 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
211
211
  return ret;
212
212
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
213
213
  } else {
214
- _chunkDMCSA7GDcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
214
+ _chunk7JLOTRDBcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
215
215
  }
216
216
  return packageJson;
217
217
  };
218
218
  var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
219
- const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkDMCSA7GDcjs.findWorkspaceRoot.call(void 0, );
219
+ const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunk7JLOTRDBcjs.findWorkspaceRoot.call(void 0, );
220
220
  const workspacePackageJsonContent = await _promises.readFile.call(void 0,
221
221
  _chunkREAX6FSOcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
222
222
  "utf8"
@@ -270,7 +270,7 @@ _chunk4ICWACJMcjs.init_cjs_shims.call(void 0, );
270
270
  var _c12 = require('c12');
271
271
 
272
272
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
273
- const workspacePath = filePath || _chunkDMCSA7GDcjs.findWorkspaceRoot.call(void 0, filePath);
273
+ const workspacePath = filePath || _chunk7JLOTRDBcjs.findWorkspaceRoot.call(void 0, filePath);
274
274
  const configs = await Promise.all([
275
275
  _c12.loadConfig.call(void 0, {
276
276
  cwd: workspacePath,
@@ -305,12 +305,12 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
305
305
  return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
306
306
  };
307
307
  var getConfigFile = async (filePath, additionalFileNames = []) => {
308
- const workspacePath = filePath ? filePath : _chunkDMCSA7GDcjs.findWorkspaceRoot.call(void 0, filePath);
308
+ const workspacePath = filePath ? filePath : _chunk7JLOTRDBcjs.findWorkspaceRoot.call(void 0, filePath);
309
309
  const result = await getConfigFileByName("storm-workspace", workspacePath);
310
310
  let config = result.config;
311
311
  const configFile = result.configFile;
312
312
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
313
- _chunkDMCSA7GDcjs.writeTrace.call(void 0,
313
+ _chunk7JLOTRDBcjs.writeTrace.call(void 0,
314
314
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
315
315
  {
316
316
  logLevel: "all"
@@ -326,7 +326,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
326
326
  for (const result2 of results) {
327
327
  if (_optionalChain([result2, 'optionalAccess', _28 => _28.config]) && _optionalChain([result2, 'optionalAccess', _29 => _29.configFile]) && Object.keys(result2.config).length > 0) {
328
328
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
329
- _chunkDMCSA7GDcjs.writeTrace.call(void 0,
329
+ _chunk7JLOTRDBcjs.writeTrace.call(void 0,
330
330
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
331
331
  {
332
332
  logLevel: "all"
@@ -436,13 +436,13 @@ var getConfigEnv = () => {
436
436
  },
437
437
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
438
438
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
439
- ) ? _chunkDMCSA7GDcjs.getLogLevelLabel.call(void 0,
439
+ ) ? _chunk7JLOTRDBcjs.getLogLevelLabel.call(void 0,
440
440
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
441
441
  ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
442
442
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
443
443
  };
444
444
  const themeNames = Object.keys(process.env).filter(
445
- (envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkDMCSA7GDcjs.COLOR_KEYS.every(
445
+ (envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunk7JLOTRDBcjs.COLOR_KEYS.every(
446
446
  (colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
447
447
  )
448
448
  );
@@ -453,16 +453,16 @@ var getConfigEnv = () => {
453
453
  },
454
454
  {}
455
455
  ) : getThemeColorConfigEnv(prefix);
456
- if (config.docs === _chunkDMCSA7GDcjs.STORM_DEFAULT_DOCS) {
457
- if (config.homepage === _chunkDMCSA7GDcjs.STORM_DEFAULT_HOMEPAGE) {
458
- config.docs = `${_chunkDMCSA7GDcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
456
+ if (config.docs === _chunk7JLOTRDBcjs.STORM_DEFAULT_DOCS) {
457
+ if (config.homepage === _chunk7JLOTRDBcjs.STORM_DEFAULT_HOMEPAGE) {
458
+ config.docs = `${_chunk7JLOTRDBcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
459
459
  } else {
460
460
  config.docs = `${config.homepage}/docs`;
461
461
  }
462
462
  }
463
- if (config.licensing === _chunkDMCSA7GDcjs.STORM_DEFAULT_LICENSING) {
464
- if (config.homepage === _chunkDMCSA7GDcjs.STORM_DEFAULT_HOMEPAGE) {
465
- config.licensing = `${_chunkDMCSA7GDcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
463
+ if (config.licensing === _chunk7JLOTRDBcjs.STORM_DEFAULT_LICENSING) {
464
+ if (config.homepage === _chunk7JLOTRDBcjs.STORM_DEFAULT_HOMEPAGE) {
465
+ config.licensing = `${_chunk7JLOTRDBcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
466
466
  } else {
467
467
  config.licensing = `${config.homepage}/docs`;
468
468
  }
@@ -764,9 +764,9 @@ var setConfigEnv = (config) => {
764
764
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
765
765
  process.env.LOG_LEVEL = String(config.logLevel);
766
766
  process.env.NX_VERBOSE_LOGGING = String(
767
- _chunkDMCSA7GDcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkDMCSA7GDcjs.LogLevel.DEBUG ? true : false
767
+ _chunk7JLOTRDBcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk7JLOTRDBcjs.LogLevel.DEBUG ? true : false
768
768
  );
769
- process.env.RUST_BACKTRACE = _chunkDMCSA7GDcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkDMCSA7GDcjs.LogLevel.DEBUG ? "full" : "none";
769
+ process.env.RUST_BACKTRACE = _chunk7JLOTRDBcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk7JLOTRDBcjs.LogLevel.DEBUG ? "full" : "none";
770
770
  }
771
771
  if (config.skipConfigLogging !== void 0) {
772
772
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
@@ -886,13 +886,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
886
886
  if (!_optionalChain([_static_cache, 'optionalAccess', _52 => _52.data]) || !_optionalChain([_static_cache, 'optionalAccess', _53 => _53.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
887
887
  let _workspaceRoot = workspaceRoot;
888
888
  if (!_workspaceRoot) {
889
- _workspaceRoot = _chunkDMCSA7GDcjs.findWorkspaceRoot.call(void 0, );
889
+ _workspaceRoot = _chunk7JLOTRDBcjs.findWorkspaceRoot.call(void 0, );
890
890
  }
891
891
  const configEnv = getConfigEnv();
892
892
  const configFile = await getConfigFile(_workspaceRoot);
893
893
  if (!configFile) {
894
894
  if (!skipLogs) {
895
- _chunkDMCSA7GDcjs.writeWarning.call(void 0,
895
+ _chunk7JLOTRDBcjs.writeWarning.call(void 0,
896
896
  "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
897
897
  { logLevel: "all" }
898
898
  );
@@ -901,9 +901,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
901
901
  return void 0;
902
902
  }
903
903
  }
904
- const defaultConfig = await _chunkDMCSA7GDcjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
905
- result = _chunkDMCSA7GDcjs.applyDefaultConfig.call(void 0,
906
- await _chunkDMCSA7GDcjs.stormWorkspaceConfigSchema.parseAsync(
904
+ const defaultConfig = await _chunk7JLOTRDBcjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
905
+ result = _chunk7JLOTRDBcjs.applyDefaultConfig.call(void 0,
906
+ await _chunk7JLOTRDBcjs.stormWorkspaceConfigSchema.parseAsync(
907
907
  _defu2.default.call(void 0, configEnv, configFile, defaultConfig)
908
908
  )
909
909
  );
@@ -945,9 +945,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
945
945
  );
946
946
  setConfigEnv(config);
947
947
  if (!skipLogs && !config.skipConfigLogging) {
948
- _chunkDMCSA7GDcjs.writeTrace.call(void 0,
948
+ _chunk7JLOTRDBcjs.writeTrace.call(void 0,
949
949
  `\u2699\uFE0F Using Storm Workspace configuration:
950
- ${_chunkDMCSA7GDcjs.formatLogMessage.call(void 0, config)}`,
950
+ ${_chunk7JLOTRDBcjs.formatLogMessage.call(void 0, config)}`,
951
951
  config
952
952
  );
953
953
  }
@@ -961,7 +961,7 @@ var getConfig = (workspaceRoot, skipLogs = false) => {
961
961
  var getWorkspaceConfig = (skipLogs = true, options = {}) => {
962
962
  let workspaceRoot = options.workspaceRoot;
963
963
  if (!workspaceRoot) {
964
- workspaceRoot = _chunkDMCSA7GDcjs.findWorkspaceRoot.call(void 0, options.cwd);
964
+ workspaceRoot = _chunk7JLOTRDBcjs.findWorkspaceRoot.call(void 0, options.cwd);
965
965
  }
966
966
  return getConfig(workspaceRoot, skipLogs);
967
967
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-S4OFPSFS.js";
4
+ } from "./chunk-FACAAHHC.js";
5
5
  import {
6
6
  joinPaths
7
7
  } from "./chunk-A7I6K5HC.js";
@@ -1,7 +1,7 @@
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 _chunkDMCSA7GDcjs = require('./chunk-DMCSA7GD.cjs');
4
+ var _chunk7JLOTRDBcjs = require('./chunk-7JLOTRDB.cjs');
5
5
 
6
6
 
7
7
 
@@ -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
- _chunkDMCSA7GDcjs.writeWarning.call(void 0,
78
+ _chunk7JLOTRDBcjs.writeWarning.call(void 0,
79
79
  `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
80
80
  );
81
- _chunkDMCSA7GDcjs.writeError.call(void 0,
81
+ _chunk7JLOTRDBcjs.writeError.call(void 0,
82
82
  `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
83
83
  );
84
84
  if (filteredMissingDeps.length > 0) {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  addPackageDependencies,
3
3
  addWorkspacePackageJsonFields
4
- } from "./chunk-KFVVARZW.js";
4
+ } from "./chunk-2SLML52B.js";
5
5
  import {
6
6
  getStopwatch,
7
7
  writeDebug
8
- } from "./chunk-S4OFPSFS.js";
8
+ } from "./chunk-FACAAHHC.js";
9
9
  import {
10
10
  joinPaths
11
11
  } from "./chunk-A7I6K5HC.js";
@@ -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 _chunkCBRUGQFQcjs = require('./chunk-CBRUGQFQ.cjs');
3
+ var _chunkWHCE6ZUNcjs = require('./chunk-WHCE6ZUN.cjs');
4
4
 
5
5
 
6
- var _chunkPHUOQP5Fcjs = require('./chunk-PHUOQP5F.cjs');
6
+ var _chunkAFSMMQRWcjs = require('./chunk-AFSMMQRW.cjs');
7
7
 
8
8
 
9
- var _chunkVYYRT4J4cjs = require('./chunk-VYYRT4J4.cjs');
9
+ var _chunk6OYADFSAcjs = require('./chunk-6OYADFSA.cjs');
10
10
 
11
11
 
12
- var _chunkNXN35NZ7cjs = require('./chunk-NXN35NZ7.cjs');
12
+ var _chunkAI7C5TSVcjs = require('./chunk-AI7C5TSV.cjs');
13
13
 
14
14
 
15
- var _chunkP3LL3C3Vcjs = require('./chunk-P3LL3C3V.cjs');
15
+ var _chunk6M35MSJBcjs = require('./chunk-6M35MSJB.cjs');
16
16
 
17
17
 
18
- var _chunkY2WVY5RScjs = require('./chunk-Y2WVY5RS.cjs');
18
+ var _chunkO23LLS4Acjs = require('./chunk-O23LLS4A.cjs');
19
19
 
20
20
 
21
21
 
@@ -23,7 +23,7 @@ var _chunkY2WVY5RScjs = require('./chunk-Y2WVY5RS.cjs');
23
23
 
24
24
 
25
25
 
26
- var _chunkDMCSA7GDcjs = require('./chunk-DMCSA7GD.cjs');
26
+ var _chunk7JLOTRDBcjs = require('./chunk-7JLOTRDB.cjs');
27
27
 
28
28
 
29
29
  var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
@@ -35,17 +35,17 @@ 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
- _chunkDMCSA7GDcjs.writeWarning.call(void 0,
38
+ _chunk7JLOTRDBcjs.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
- _chunkDMCSA7GDcjs.writeSuccess.call(void 0,
43
+ _chunk7JLOTRDBcjs.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
- _chunkDMCSA7GDcjs.writeError.call(void 0,
48
+ _chunk7JLOTRDBcjs.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: [_chunkCBRUGQFQcjs.depsCheckPlugin.call(void 0, options.bundle)]
77
+ plugins: [_chunkWHCE6ZUNcjs.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
- _chunkDMCSA7GDcjs.writeDebug.call(void 0,
85
+ _chunk7JLOTRDBcjs.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 = _chunkDMCSA7GDcjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
90
- await _chunkVYYRT4J4cjs.cleanDirectories.call(void 0, context.outputPath);
89
+ const stopwatch = _chunk7JLOTRDBcjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
90
+ await _chunk6OYADFSAcjs.cleanDirectories.call(void 0, context.outputPath);
91
91
  stopwatch();
92
92
  }
93
93
  return context;
94
94
  }
95
95
  async function build2(options) {
96
- _chunkDMCSA7GDcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
97
- const stopwatch = _chunkDMCSA7GDcjs.getStopwatch.call(void 0, "ESBuild pipeline");
96
+ _chunk7JLOTRDBcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
97
+ const stopwatch = _chunk7JLOTRDBcjs.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 _chunkNXN35NZ7cjs.resolveContext.call(void 0, options);
103
+ const context = await _chunkAI7C5TSVcjs.resolveContext.call(void 0, options);
104
104
  await cleanOutputPath(context);
105
105
  await Promise.all([
106
106
  dependencyCheck(context.options),
107
- _chunkP3LL3C3Vcjs.generatePackageJson.call(void 0, context),
108
- _chunkPHUOQP5Fcjs.copyBuildAssets.call(void 0, context),
109
- _chunkY2WVY5RScjs.executeTsup.call(void 0, context)
107
+ _chunk6M35MSJBcjs.generatePackageJson.call(void 0, context),
108
+ _chunkAFSMMQRWcjs.copyBuildAssets.call(void 0, context),
109
+ _chunkO23LLS4Acjs.executeTsup.call(void 0, context)
110
110
  ]);
111
111
  await reportResults(context);
112
- _chunkDMCSA7GDcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
112
+ _chunk7JLOTRDBcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
113
113
  } catch (error) {
114
- _chunkDMCSA7GDcjs.writeFatal.call(void 0,
114
+ _chunk7JLOTRDBcjs.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 _chunkVYYRT4J4cjs = require('./chunk-VYYRT4J4.cjs');
5
- require('./chunk-DMCSA7GD.cjs');
4
+ var _chunk6OYADFSAcjs = require('./chunk-6OYADFSA.cjs');
5
+ require('./chunk-7JLOTRDB.cjs');
6
6
  require('./chunk-REAX6FSO.cjs');
7
7
  require('./chunk-4ICWACJM.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.clean = _chunkVYYRT4J4cjs.clean; exports.cleanDirectories = _chunkVYYRT4J4cjs.cleanDirectories;
11
+ exports.clean = _chunk6OYADFSAcjs.clean; exports.cleanDirectories = _chunk6OYADFSAcjs.cleanDirectories;
package/dist/clean.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-YYB2TDMT.js";
5
- import "./chunk-S4OFPSFS.js";
4
+ } from "./chunk-BSX5HNQU.js";
5
+ import "./chunk-FACAAHHC.js";
6
6
  import "./chunk-A7I6K5HC.js";
7
7
  import "./chunk-GL7N7ANS.js";
8
8
  export {
package/dist/config.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQ45WICGXcjs = require('./chunk-Q45WICGX.cjs');
4
- require('./chunk-4T66RHLZ.cjs');
5
- require('./chunk-DMCSA7GD.cjs');
3
+ var _chunkTWQRZNHNcjs = require('./chunk-TWQRZNHN.cjs');
4
+ require('./chunk-VON742GS.cjs');
5
+ require('./chunk-7JLOTRDB.cjs');
6
6
  require('./chunk-REAX6FSO.cjs');
7
7
  require('./chunk-4ICWACJM.cjs');
8
8
 
9
9
 
10
- exports.DEFAULT_BUILD_OPTIONS = _chunkQ45WICGXcjs.DEFAULT_BUILD_OPTIONS;
10
+ exports.DEFAULT_BUILD_OPTIONS = _chunkTWQRZNHNcjs.DEFAULT_BUILD_OPTIONS;
package/dist/config.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS
3
- } from "./chunk-DONA32WC.js";
4
- import "./chunk-KFVVARZW.js";
5
- import "./chunk-S4OFPSFS.js";
3
+ } from "./chunk-AMP5EOTJ.js";
4
+ import "./chunk-2SLML52B.js";
5
+ import "./chunk-FACAAHHC.js";
6
6
  import "./chunk-A7I6K5HC.js";
7
7
  import "./chunk-GL7N7ANS.js";
8
8
  export {
package/dist/context.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkNXN35NZ7cjs = require('./chunk-NXN35NZ7.cjs');
4
- require('./chunk-Q45WICGX.cjs');
5
- require('./chunk-4T66RHLZ.cjs');
6
- require('./chunk-DMCSA7GD.cjs');
3
+ var _chunkAI7C5TSVcjs = require('./chunk-AI7C5TSV.cjs');
4
+ require('./chunk-TWQRZNHN.cjs');
5
+ require('./chunk-VON742GS.cjs');
6
+ require('./chunk-7JLOTRDB.cjs');
7
7
  require('./chunk-REAX6FSO.cjs');
8
8
  require('./chunk-4ICWACJM.cjs');
9
9
 
10
10
 
11
- exports.resolveContext = _chunkNXN35NZ7cjs.resolveContext;
11
+ exports.resolveContext = _chunkAI7C5TSVcjs.resolveContext;
package/dist/context.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveContext
3
- } from "./chunk-WMU243HH.js";
4
- import "./chunk-DONA32WC.js";
5
- import "./chunk-KFVVARZW.js";
6
- import "./chunk-S4OFPSFS.js";
3
+ } from "./chunk-FGSAPVGF.js";
4
+ import "./chunk-AMP5EOTJ.js";
5
+ import "./chunk-2SLML52B.js";
6
+ import "./chunk-FACAAHHC.js";
7
7
  import "./chunk-A7I6K5HC.js";
8
8
  import "./chunk-GL7N7ANS.js";
9
9
  export {
package/dist/index.cjs CHANGED
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-JCXAR46G.cjs');
2
2
 
3
3
 
4
- var _chunkLXFI4QN3cjs = require('./chunk-LXFI4QN3.cjs');
5
- require('./chunk-CBRUGQFQ.cjs');
6
- require('./chunk-PHUOQP5F.cjs');
7
- require('./chunk-VYYRT4J4.cjs');
8
- require('./chunk-NXN35NZ7.cjs');
9
- require('./chunk-Q45WICGX.cjs');
10
- require('./chunk-P3LL3C3V.cjs');
11
- require('./chunk-4T66RHLZ.cjs');
12
- require('./chunk-Y2WVY5RS.cjs');
13
- require('./chunk-DMCSA7GD.cjs');
4
+ var _chunkZ2PCSPBAcjs = require('./chunk-Z2PCSPBA.cjs');
5
+ require('./chunk-WHCE6ZUN.cjs');
6
+ require('./chunk-AFSMMQRW.cjs');
7
+ require('./chunk-6OYADFSA.cjs');
8
+ require('./chunk-AI7C5TSV.cjs');
9
+ require('./chunk-TWQRZNHN.cjs');
10
+ require('./chunk-6M35MSJB.cjs');
11
+ require('./chunk-VON742GS.cjs');
12
+ require('./chunk-O23LLS4A.cjs');
13
+ require('./chunk-7JLOTRDB.cjs');
14
14
  require('./chunk-REAX6FSO.cjs');
15
15
 
16
16
 
@@ -20,4 +20,4 @@ var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
20
20
  _chunk4ICWACJMcjs.init_cjs_shims.call(void 0, );
21
21
 
22
22
 
23
- exports.build = _chunkLXFI4QN3cjs.build;
23
+ exports.build = _chunkZ2PCSPBAcjs.build;
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import "./chunk-45F6WZFO.js";
2
2
  import {
3
3
  build
4
- } from "./chunk-LGDQLIWM.js";
5
- import "./chunk-J23YJYET.js";
6
- import "./chunk-OHC4AOQG.js";
7
- import "./chunk-YYB2TDMT.js";
8
- import "./chunk-WMU243HH.js";
9
- import "./chunk-DONA32WC.js";
10
- import "./chunk-VREJONM4.js";
11
- import "./chunk-KFVVARZW.js";
12
- import "./chunk-OVF7EMMD.js";
13
- import "./chunk-S4OFPSFS.js";
4
+ } from "./chunk-MPAKE565.js";
5
+ import "./chunk-RRJJFUWA.js";
6
+ import "./chunk-2KWHQXEB.js";
7
+ import "./chunk-BSX5HNQU.js";
8
+ import "./chunk-FGSAPVGF.js";
9
+ import "./chunk-AMP5EOTJ.js";
10
+ import "./chunk-XX2N6E6O.js";
11
+ import "./chunk-2SLML52B.js";
12
+ import "./chunk-VU2SMYN5.js";
13
+ import "./chunk-FACAAHHC.js";
14
14
  import "./chunk-A7I6K5HC.js";
15
15
  import {
16
16
  init_esm_shims
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkP3LL3C3Vcjs = require('./chunk-P3LL3C3V.cjs');
4
- require('./chunk-4T66RHLZ.cjs');
5
- require('./chunk-DMCSA7GD.cjs');
3
+ var _chunk6M35MSJBcjs = require('./chunk-6M35MSJB.cjs');
4
+ require('./chunk-VON742GS.cjs');
5
+ require('./chunk-7JLOTRDB.cjs');
6
6
  require('./chunk-REAX6FSO.cjs');
7
7
  require('./chunk-4ICWACJM.cjs');
8
8
 
9
9
 
10
- exports.generatePackageJson = _chunkP3LL3C3Vcjs.generatePackageJson;
10
+ exports.generatePackageJson = _chunk6M35MSJBcjs.generatePackageJson;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generatePackageJson
3
- } from "./chunk-VREJONM4.js";
4
- import "./chunk-KFVVARZW.js";
5
- import "./chunk-S4OFPSFS.js";
3
+ } from "./chunk-XX2N6E6O.js";
4
+ import "./chunk-2SLML52B.js";
5
+ import "./chunk-FACAAHHC.js";
6
6
  import "./chunk-A7I6K5HC.js";
7
7
  import "./chunk-GL7N7ANS.js";
8
8
  export {
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkCBRUGQFQcjs = require('../chunk-CBRUGQFQ.cjs');
4
- require('../chunk-DMCSA7GD.cjs');
3
+ var _chunkWHCE6ZUNcjs = require('../chunk-WHCE6ZUN.cjs');
4
+ require('../chunk-7JLOTRDB.cjs');
5
5
  require('../chunk-REAX6FSO.cjs');
6
6
  require('../chunk-4ICWACJM.cjs');
7
7
 
8
8
 
9
- exports.depsCheckPlugin = _chunkCBRUGQFQcjs.depsCheckPlugin;
9
+ exports.depsCheckPlugin = _chunkWHCE6ZUNcjs.depsCheckPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  depsCheckPlugin
3
- } from "../chunk-J23YJYET.js";
4
- import "../chunk-S4OFPSFS.js";
3
+ } from "../chunk-RRJJFUWA.js";
4
+ import "../chunk-FACAAHHC.js";
5
5
  import "../chunk-A7I6K5HC.js";
6
6
  import "../chunk-GL7N7ANS.js";
7
7
  export {
package/dist/tsup.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkY2WVY5RScjs = require('./chunk-Y2WVY5RS.cjs');
4
- require('./chunk-DMCSA7GD.cjs');
3
+ var _chunkO23LLS4Acjs = require('./chunk-O23LLS4A.cjs');
4
+ require('./chunk-7JLOTRDB.cjs');
5
5
  require('./chunk-REAX6FSO.cjs');
6
6
  require('./chunk-4ICWACJM.cjs');
7
7
 
8
8
 
9
- exports.executeTsup = _chunkY2WVY5RScjs.executeTsup;
9
+ exports.executeTsup = _chunkO23LLS4Acjs.executeTsup;
package/dist/tsup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  executeTsup
3
- } from "./chunk-OVF7EMMD.js";
4
- import "./chunk-S4OFPSFS.js";
3
+ } from "./chunk-VU2SMYN5.js";
4
+ import "./chunk-FACAAHHC.js";
5
5
  import "./chunk-A7I6K5HC.js";
6
6
  import "./chunk-GL7N7ANS.js";
7
7
  export {
package/dist/watch.cjs CHANGED
@@ -1,7 +1,7 @@
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
3
 
4
- var _chunkDMCSA7GDcjs = require('./chunk-DMCSA7GD.cjs');
4
+ var _chunk7JLOTRDBcjs = require('./chunk-7JLOTRDB.cjs');
5
5
  require('./chunk-REAX6FSO.cjs');
6
6
 
7
7
 
@@ -93,9 +93,9 @@ var watch = (context, options) => {
93
93
  return context.rebuild();
94
94
  });
95
95
  if (rebuildResult instanceof Error) {
96
- _chunkDMCSA7GDcjs.writeError.call(void 0, rebuildResult.message);
96
+ _chunk7JLOTRDBcjs.writeError.call(void 0, rebuildResult.message);
97
97
  }
98
- _chunkDMCSA7GDcjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
98
+ _chunk7JLOTRDBcjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
99
99
  }, 10);
100
100
  changeWatcher.on("change", fastRebuild);
101
101
  return void 0;
package/dist/watch.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-S4OFPSFS.js";
4
+ } from "./chunk-FACAAHHC.js";
5
5
  import "./chunk-A7I6K5HC.js";
6
6
  import {
7
7
  init_esm_shims
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/esbuild",
3
- "version": "0.45.13",
3
+ "version": "0.45.14",
4
4
  "type": "module",
5
5
  "description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -187,12 +187,12 @@
187
187
  "@nx/devkit": "21.0.3",
188
188
  "@nx/js": "21.0.3",
189
189
  "@storm-software/build-tools": "^0.151.11",
190
- "@storm-software/config": "^1.124.3",
191
- "@storm-software/config-tools": "^1.174.4",
190
+ "@storm-software/config": "^1.124.4",
191
+ "@storm-software/config-tools": "^1.175.0",
192
192
  "chokidar": "^4.0.3",
193
193
  "commander": "^12.1.0",
194
194
  "defu": "6.1.4",
195
- "es-toolkit": "^1.39.4",
195
+ "es-toolkit": "^1.39.5",
196
196
  "esbuild": "^0.25.0",
197
197
  "globby": "^14.1.0",
198
198
  "tsup": "8.4.0"
@@ -200,5 +200,5 @@
200
200
  "devDependencies": { "@types/node": "^22.10.2", "nx": "21.0.3" },
201
201
  "publishConfig": { "access": "public" },
202
202
  "sideEffects": false,
203
- "gitHead": "cc6b643307c447a3a7e1118fee4893b3be34cdbd"
203
+ "gitHead": "e9a128c5dc2c122d72a5611cf5cec6e227a03931"
204
204
  }