@storm-software/esbuild 0.45.32 → 0.45.34

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-AMUTTHPV.cjs → chunk-4ZV6DH4B.cjs} +6 -6
  7. package/dist/{chunk-OIZBG247.cjs → chunk-5UPAJJ5R.cjs} +3 -3
  8. package/dist/{chunk-4LM2LV53.js → chunk-6QLFFQ5Y.js} +1 -1
  9. package/dist/{chunk-DRJXDBN4.cjs → chunk-AC5FITOB.cjs} +22 -22
  10. package/dist/{chunk-3ZVT4AKE.cjs → chunk-ACBG3ZAT.cjs} +5 -5
  11. package/dist/{chunk-KMFIB3PY.js → chunk-AJQAV5CX.js} +7 -7
  12. package/dist/{chunk-4LRLQFJJ.cjs → chunk-AOYGCE3L.cjs} +3 -3
  13. package/dist/{chunk-J4PCKY3U.cjs → chunk-E7UVS5IM.cjs} +16 -16
  14. package/dist/{chunk-TXFPCK5S.js → chunk-EH2L2SI7.js} +1 -1
  15. package/dist/{chunk-YUAMFY7G.cjs → chunk-GXJUQQH3.cjs} +3 -3
  16. package/dist/{chunk-7I26EJWI.js → chunk-ITB7VM2V.js} +1 -1
  17. package/dist/{chunk-RIHRGAGO.js → chunk-JJWLNGAP.js} +2 -2
  18. package/dist/{chunk-ULL45PNX.js → chunk-QOETOATP.js} +1 -1
  19. package/dist/{chunk-XL4R7GTH.js → chunk-QORLU655.js} +1 -1
  20. package/dist/{chunk-P3HIKMP6.cjs → chunk-S67BO27V.cjs} +10 -10
  21. package/dist/{chunk-WEVIUNTH.js → chunk-TDIGS3GR.js} +16 -16
  22. package/dist/{chunk-H3IVIIQM.cjs → chunk-VSXW2D6A.cjs} +30 -30
  23. package/dist/{chunk-U3VSVKBN.js → chunk-VV6GKN3G.js} +2 -2
  24. package/dist/{chunk-NLBUR2OB.js → chunk-WTBORTTD.js} +3 -3
  25. package/dist/{chunk-ZY3G7N2G.cjs → chunk-XH66K43O.cjs} +3 -3
  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.30-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.32-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 _chunk3ZVT4AKEcjs = require('./chunk-3ZVT4AKE.cjs');
4
- require('./chunk-H3IVIIQM.cjs');
5
- require('./chunk-J4PCKY3U.cjs');
3
+ var _chunkACBG3ZATcjs = require('./chunk-ACBG3ZAT.cjs');
4
+ require('./chunk-VSXW2D6A.cjs');
5
+ require('./chunk-E7UVS5IM.cjs');
6
6
  require('./chunk-REAX6FSO.cjs');
7
7
  require('./chunk-4ICWACJM.cjs');
8
8
 
9
9
 
10
- exports.copyBuildAssets = _chunk3ZVT4AKEcjs.copyBuildAssets;
10
+ exports.copyBuildAssets = _chunkACBG3ZATcjs.copyBuildAssets;
package/dist/assets.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  copyBuildAssets
3
- } from "./chunk-RIHRGAGO.js";
4
- import "./chunk-XL4R7GTH.js";
5
- import "./chunk-WEVIUNTH.js";
3
+ } from "./chunk-JJWLNGAP.js";
4
+ import "./chunk-QORLU655.js";
5
+ import "./chunk-TDIGS3GR.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 _chunkDRJXDBN4cjs = require('./chunk-DRJXDBN4.cjs');
4
- require('./chunk-YUAMFY7G.cjs');
5
- require('./chunk-3ZVT4AKE.cjs');
6
- require('./chunk-OIZBG247.cjs');
7
- require('./chunk-P3HIKMP6.cjs');
8
- require('./chunk-ZY3G7N2G.cjs');
9
- require('./chunk-AMUTTHPV.cjs');
10
- require('./chunk-H3IVIIQM.cjs');
11
- require('./chunk-4LRLQFJJ.cjs');
12
- require('./chunk-J4PCKY3U.cjs');
3
+ var _chunkAC5FITOBcjs = require('./chunk-AC5FITOB.cjs');
4
+ require('./chunk-GXJUQQH3.cjs');
5
+ require('./chunk-ACBG3ZAT.cjs');
6
+ require('./chunk-5UPAJJ5R.cjs');
7
+ require('./chunk-S67BO27V.cjs');
8
+ require('./chunk-XH66K43O.cjs');
9
+ require('./chunk-4ZV6DH4B.cjs');
10
+ require('./chunk-VSXW2D6A.cjs');
11
+ require('./chunk-AOYGCE3L.cjs');
12
+ require('./chunk-E7UVS5IM.cjs');
13
13
  require('./chunk-REAX6FSO.cjs');
14
14
  require('./chunk-4ICWACJM.cjs');
15
15
 
16
16
 
17
- exports.build = _chunkDRJXDBN4cjs.build;
17
+ exports.build = _chunkAC5FITOBcjs.build;
package/dist/build.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-KMFIB3PY.js";
4
- import "./chunk-TXFPCK5S.js";
5
- import "./chunk-RIHRGAGO.js";
6
- import "./chunk-7I26EJWI.js";
7
- import "./chunk-NLBUR2OB.js";
8
- import "./chunk-4LM2LV53.js";
9
- import "./chunk-U3VSVKBN.js";
10
- import "./chunk-XL4R7GTH.js";
11
- import "./chunk-ULL45PNX.js";
12
- import "./chunk-WEVIUNTH.js";
3
+ } from "./chunk-AJQAV5CX.js";
4
+ import "./chunk-EH2L2SI7.js";
5
+ import "./chunk-JJWLNGAP.js";
6
+ import "./chunk-ITB7VM2V.js";
7
+ import "./chunk-WTBORTTD.js";
8
+ import "./chunk-6QLFFQ5Y.js";
9
+ import "./chunk-VV6GKN3G.js";
10
+ import "./chunk-QORLU655.js";
11
+ import "./chunk-QOETOATP.js";
12
+ import "./chunk-TDIGS3GR.js";
13
13
  import "./chunk-A7I6K5HC.js";
14
14
  import "./chunk-GL7N7ANS.js";
15
15
  export {
@@ -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 _chunkH3IVIIQMcjs = require('./chunk-H3IVIIQM.cjs');
4
+ var _chunkVSXW2D6Acjs = require('./chunk-VSXW2D6A.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkJ4PCKY3Ucjs = require('./chunk-J4PCKY3U.cjs');
8
+ var _chunkE7UVS5IMcjs = require('./chunk-E7UVS5IM.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
- _chunkJ4PCKY3Ucjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
24
- const stopwatch = _chunkJ4PCKY3Ucjs.getStopwatch.call(void 0, "Write package.json file");
23
+ _chunkE7UVS5IMcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
24
+ const stopwatch = _chunkE7UVS5IMcjs.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 _chunkH3IVIIQMcjs.addPackageDependencies.call(void 0,
44
+ packageJson = await _chunkVSXW2D6Acjs.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 _chunkH3IVIIQMcjs.addWorkspacePackageJsonFields.call(void 0,
50
+ packageJson = await _chunkVSXW2D6Acjs.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 _chunkJ4PCKY3Ucjs = require('./chunk-J4PCKY3U.cjs');
4
+ var _chunkE7UVS5IMcjs = require('./chunk-E7UVS5IM.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
- _chunkJ4PCKY3Ucjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
14
- const stopwatch = _chunkJ4PCKY3Ucjs.getStopwatch.call(void 0, `${name} output clean`);
13
+ _chunkE7UVS5IMcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
14
+ const stopwatch = _chunkE7UVS5IMcjs.getStopwatch.call(void 0, `${name} output clean`);
15
15
  await cleanDirectories(directory);
16
16
  stopwatch();
17
17
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_COMPILED_BANNER
3
- } from "./chunk-XL4R7GTH.js";
3
+ } from "./chunk-QORLU655.js";
4
4
  import {
5
5
  init_esm_shims
6
6
  } from "./chunk-GL7N7ANS.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 _chunkYUAMFY7Gcjs = require('./chunk-YUAMFY7G.cjs');
3
+ var _chunkGXJUQQH3cjs = require('./chunk-GXJUQQH3.cjs');
4
4
 
5
5
 
6
- var _chunk3ZVT4AKEcjs = require('./chunk-3ZVT4AKE.cjs');
6
+ var _chunkACBG3ZATcjs = require('./chunk-ACBG3ZAT.cjs');
7
7
 
8
8
 
9
- var _chunkOIZBG247cjs = require('./chunk-OIZBG247.cjs');
9
+ var _chunk5UPAJJ5Rcjs = require('./chunk-5UPAJJ5R.cjs');
10
10
 
11
11
 
12
- var _chunkP3HIKMP6cjs = require('./chunk-P3HIKMP6.cjs');
12
+ var _chunkS67BO27Vcjs = require('./chunk-S67BO27V.cjs');
13
13
 
14
14
 
15
- var _chunkAMUTTHPVcjs = require('./chunk-AMUTTHPV.cjs');
15
+ var _chunk4ZV6DH4Bcjs = require('./chunk-4ZV6DH4B.cjs');
16
16
 
17
17
 
18
- var _chunk4LRLQFJJcjs = require('./chunk-4LRLQFJJ.cjs');
18
+ var _chunkAOYGCE3Lcjs = require('./chunk-AOYGCE3L.cjs');
19
19
 
20
20
 
21
21
 
@@ -23,7 +23,7 @@ var _chunk4LRLQFJJcjs = require('./chunk-4LRLQFJJ.cjs');
23
23
 
24
24
 
25
25
 
26
- var _chunkJ4PCKY3Ucjs = require('./chunk-J4PCKY3U.cjs');
26
+ var _chunkE7UVS5IMcjs = require('./chunk-E7UVS5IM.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
- _chunkJ4PCKY3Ucjs.writeWarning.call(void 0,
38
+ _chunkE7UVS5IMcjs.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
- _chunkJ4PCKY3Ucjs.writeSuccess.call(void 0,
43
+ _chunkE7UVS5IMcjs.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
- _chunkJ4PCKY3Ucjs.writeError.call(void 0,
48
+ _chunkE7UVS5IMcjs.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: [_chunkYUAMFY7Gcjs.depsCheckPlugin.call(void 0, options.bundle)]
77
+ plugins: [_chunkGXJUQQH3cjs.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
- _chunkJ4PCKY3Ucjs.writeDebug.call(void 0,
85
+ _chunkE7UVS5IMcjs.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 = _chunkJ4PCKY3Ucjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
90
- await _chunkOIZBG247cjs.cleanDirectories.call(void 0, context.outputPath);
89
+ const stopwatch = _chunkE7UVS5IMcjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
90
+ await _chunk5UPAJJ5Rcjs.cleanDirectories.call(void 0, context.outputPath);
91
91
  stopwatch();
92
92
  }
93
93
  return context;
94
94
  }
95
95
  async function build2(options) {
96
- _chunkJ4PCKY3Ucjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
97
- const stopwatch = _chunkJ4PCKY3Ucjs.getStopwatch.call(void 0, "ESBuild pipeline");
96
+ _chunkE7UVS5IMcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
97
+ const stopwatch = _chunkE7UVS5IMcjs.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 _chunkP3HIKMP6cjs.resolveContext.call(void 0, options);
103
+ const context = await _chunkS67BO27Vcjs.resolveContext.call(void 0, options);
104
104
  await cleanOutputPath(context);
105
105
  await Promise.all([
106
106
  dependencyCheck(context.options),
107
- _chunkAMUTTHPVcjs.generatePackageJson.call(void 0, context),
108
- _chunk3ZVT4AKEcjs.copyBuildAssets.call(void 0, context),
109
- _chunk4LRLQFJJcjs.executeTsup.call(void 0, context)
107
+ _chunk4ZV6DH4Bcjs.generatePackageJson.call(void 0, context),
108
+ _chunkACBG3ZATcjs.copyBuildAssets.call(void 0, context),
109
+ _chunkAOYGCE3Lcjs.executeTsup.call(void 0, context)
110
110
  ]);
111
111
  await reportResults(context);
112
- _chunkJ4PCKY3Ucjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
112
+ _chunkE7UVS5IMcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
113
113
  } catch (error) {
114
- _chunkJ4PCKY3Ucjs.writeFatal.call(void 0,
114
+ _chunkE7UVS5IMcjs.writeFatal.call(void 0,
115
115
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated."
116
116
  );
117
117
  throw error;
@@ -1,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 _chunkH3IVIIQMcjs = require('./chunk-H3IVIIQM.cjs');
3
+ var _chunkVSXW2D6Acjs = require('./chunk-VSXW2D6A.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkJ4PCKY3Ucjs = require('./chunk-J4PCKY3U.cjs');
7
+ var _chunkE7UVS5IMcjs = require('./chunk-E7UVS5IM.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
- _chunkJ4PCKY3Ucjs.writeDebug.call(void 0,
16
+ _chunkE7UVS5IMcjs.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 = _chunkJ4PCKY3Ucjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
21
- await _chunkH3IVIIQMcjs.copyAssets.call(void 0,
20
+ const stopwatch = _chunkE7UVS5IMcjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
21
+ await _chunkVSXW2D6Acjs.copyAssets.call(void 0,
22
22
  context.workspaceConfig,
23
23
  _nullishCoalesce(context.options.assets, () => ( [])),
24
24
  context.outputPath,
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  depsCheckPlugin
3
- } from "./chunk-TXFPCK5S.js";
3
+ } from "./chunk-EH2L2SI7.js";
4
4
  import {
5
5
  copyBuildAssets
6
- } from "./chunk-RIHRGAGO.js";
6
+ } from "./chunk-JJWLNGAP.js";
7
7
  import {
8
8
  cleanDirectories
9
- } from "./chunk-7I26EJWI.js";
9
+ } from "./chunk-ITB7VM2V.js";
10
10
  import {
11
11
  resolveContext
12
- } from "./chunk-NLBUR2OB.js";
12
+ } from "./chunk-WTBORTTD.js";
13
13
  import {
14
14
  generatePackageJson
15
- } from "./chunk-U3VSVKBN.js";
15
+ } from "./chunk-VV6GKN3G.js";
16
16
  import {
17
17
  executeTsup
18
- } from "./chunk-ULL45PNX.js";
18
+ } from "./chunk-QOETOATP.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-WEVIUNTH.js";
26
+ } from "./chunk-TDIGS3GR.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 _chunkJ4PCKY3Ucjs = require('./chunk-J4PCKY3U.cjs');
4
+ var _chunkE7UVS5IMcjs = require('./chunk-E7UVS5IM.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
- _chunkJ4PCKY3Ucjs.writeDebug.call(void 0,
2671
+ _chunkE7UVS5IMcjs.writeDebug.call(void 0,
2672
2672
  ` \u{1F680} Running ${context.options.name} build`,
2673
2673
  context.workspaceConfig
2674
2674
  );
2675
- const stopwatch = _chunkJ4PCKY3Ucjs.getStopwatch.call(void 0, `${context.options.name} build`);
2675
+ const stopwatch = _chunkE7UVS5IMcjs.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,
@@ -47,7 +47,6 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
47
47
  var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
48
48
  var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
49
49
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
50
- var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
51
50
  var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
52
51
  var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
53
52
  var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
@@ -135,7 +134,7 @@ var SingleThemeColorConfigSchema = z.object({
135
134
  positive: PositiveColorSchema,
136
135
  negative: NegativeColorSchema
137
136
  });
138
- var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
137
+ var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
139
138
  var RegistryConfigSchema = z.object({
140
139
  github: RegistryUrlConfigSchema,
141
140
  npm: RegistryUrlConfigSchema,
@@ -162,18 +161,18 @@ var WorkspaceBotConfigSchema = z.object({
162
161
  name: z.string().trim().default("stormie-bot").describe(
163
162
  "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
164
163
  ),
165
- email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
164
+ email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
166
165
  }).describe(
167
166
  "The workspace's bot user's config used to automated various operations tasks"
168
167
  );
169
168
  var WorkspaceReleaseConfigSchema = z.object({
170
- banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
169
+ banner: z.string().trim().optional().describe(
171
170
  "A URL to a banner image used to display the workspace's release"
172
171
  ),
173
172
  header: z.string().trim().optional().describe(
174
173
  "A header message appended to the start of the workspace's release notes"
175
174
  ),
176
- footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
175
+ footer: z.string().trim().optional().describe(
177
176
  "A footer message appended to the end of the workspace's release notes"
178
177
  )
179
178
  }).describe("The workspace's release config used during the release process");
@@ -205,19 +204,20 @@ var WorkspaceDirectoryConfigSchema = z.object({
205
204
  );
206
205
  var errorConfigSchema = z.object({
207
206
  codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
208
- url: z.string().trim().url().optional().describe(
207
+ url: z.url().optional().describe(
209
208
  "A URL to a page that looks up the workspace's error messages given a specific error code"
210
209
  )
211
210
  }).describe("The workspace's error config used during the error process");
212
211
  var organizationConfigSchema = z.object({
213
212
  name: z.string().trim().describe("The name of the organization"),
214
213
  description: z.string().trim().optional().describe("A description of the organization"),
215
- logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
216
- icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
217
- url: z.string().trim().url().optional().describe(
214
+ logo: z.url().optional().describe("A URL to the organization's logo image"),
215
+ icon: z.url().optional().describe("A URL to the organization's icon image"),
216
+ url: z.url().optional().describe(
218
217
  "A URL to a page that provides more information about the organization"
219
218
  )
220
219
  }).describe("The workspace's organization details");
220
+ var MODE_OPTIONS = ["development", "staging", "production"];
221
221
  var stormWorkspaceConfigSchema = z.object({
222
222
  $schema: z.string().trim().default(
223
223
  "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
@@ -234,12 +234,12 @@ var stormWorkspaceConfigSchema = z.object({
234
234
  ),
235
235
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
236
236
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
237
- homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
238
- docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
239
- portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
240
- licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
241
- contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
242
- support: z.string().trim().url().optional().describe(
237
+ homepage: z.url().optional().describe("The homepage of the workspace"),
238
+ docs: z.url().optional().describe("The documentation site for the workspace"),
239
+ portal: z.url().optional().describe("The development portal site for the workspace"),
240
+ licensing: z.url().optional().describe("The licensing site for the workspace"),
241
+ contact: z.url().optional().describe("The contact site for the workspace"),
242
+ support: z.url().optional().describe(
243
243
  "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
244
244
  ),
245
245
  branch: z.string().trim().default("main").describe("The branch of the workspace"),
@@ -249,7 +249,7 @@ var stormWorkspaceConfigSchema = z.object({
249
249
  release: WorkspaceReleaseConfigSchema,
250
250
  socials: WorkspaceSocialsConfigSchema,
251
251
  error: errorConfigSchema,
252
- mode: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
252
+ mode: z.enum(MODE_OPTIONS).prefault("production").describe("The current runtime environment mode for the package"),
253
253
  workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
254
254
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
255
255
  directories: WorkspaceDirectoryConfigSchema,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeWarning
4
- } from "./chunk-WEVIUNTH.js";
4
+ } from "./chunk-TDIGS3GR.js";
5
5
  import {
6
6
  __require,
7
7
  init_esm_shims
@@ -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 _chunkJ4PCKY3Ucjs = require('./chunk-J4PCKY3U.cjs');
4
+ var _chunkE7UVS5IMcjs = require('./chunk-E7UVS5IM.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
- _chunkJ4PCKY3Ucjs.writeWarning.call(void 0,
78
+ _chunkE7UVS5IMcjs.writeWarning.call(void 0,
79
79
  `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
80
80
  );
81
- _chunkJ4PCKY3Ucjs.writeError.call(void 0,
81
+ _chunkE7UVS5IMcjs.writeError.call(void 0,
82
82
  `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
83
83
  );
84
84
  if (filteredMissingDeps.length > 0) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-WEVIUNTH.js";
4
+ } from "./chunk-TDIGS3GR.js";
5
5
  import {
6
6
  init_esm_shims
7
7
  } from "./chunk-GL7N7ANS.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  copyAssets
3
- } from "./chunk-XL4R7GTH.js";
3
+ } from "./chunk-QORLU655.js";
4
4
  import {
5
5
  getStopwatch,
6
6
  writeDebug
7
- } from "./chunk-WEVIUNTH.js";
7
+ } from "./chunk-TDIGS3GR.js";
8
8
  import {
9
9
  init_esm_shims
10
10
  } from "./chunk-GL7N7ANS.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-WEVIUNTH.js";
4
+ } from "./chunk-TDIGS3GR.js";
5
5
  import {
6
6
  joinPaths
7
7
  } from "./chunk-A7I6K5HC.js";
@@ -14,7 +14,7 @@ import {
14
14
  writeDebug,
15
15
  writeTrace,
16
16
  writeWarning
17
- } from "./chunk-WEVIUNTH.js";
17
+ } from "./chunk-TDIGS3GR.js";
18
18
  import {
19
19
  correctPaths,
20
20
  joinPaths
@@ -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 _chunkZY3G7N2Gcjs = require('./chunk-ZY3G7N2G.cjs');
3
+ var _chunkXH66K43Ocjs = require('./chunk-XH66K43O.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkH3IVIIQMcjs = require('./chunk-H3IVIIQM.cjs');
7
+ var _chunkVSXW2D6Acjs = require('./chunk-VSXW2D6A.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkJ4PCKY3Ucjs = require('./chunk-J4PCKY3U.cjs');
12
+ var _chunkE7UVS5IMcjs = require('./chunk-E7UVS5IM.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 _chunkH3IVIIQMcjs.getWorkspaceConfig.call(void 0, true, {
36
+ const workspaceConfig = await _chunkVSXW2D6Acjs.getWorkspaceConfig.call(void 0, true, {
37
37
  workspaceRoot: workspaceRoot.dir
38
38
  });
39
- _chunkJ4PCKY3Ucjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
40
- const stopwatch = _chunkJ4PCKY3Ucjs.getStopwatch.call(void 0, "Build options resolution");
39
+ _chunkE7UVS5IMcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
40
+ const stopwatch = _chunkE7UVS5IMcjs.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, _chunkZY3G7N2Gcjs.DEFAULT_BUILD_OPTIONS);
61
+ const options = _defu2.default.call(void 0, userOptions, _chunkXH66K43Ocjs.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 = _chunkH3IVIIQMcjs.getEnv.call(void 0, "esbuild", options);
71
+ const env = _chunkVSXW2D6Acjs.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
- _chunkJ4PCKY3Ucjs.writeDebug.call(void 0,
110
+ _chunkE7UVS5IMcjs.writeDebug.call(void 0,
111
111
  ` \u2699\uFE0F Build options resolved:
112
112
 
113
- ${_chunkJ4PCKY3Ucjs.formatLogMessage.call(void 0, context.options)}`,
113
+ ${_chunkE7UVS5IMcjs.formatLogMessage.call(void 0, context.options)}`,
114
114
  workspaceConfig
115
115
  );
116
116
  }