@storm-software/esbuild 0.51.2 → 0.51.3

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 (34) 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 +9 -9
  5. package/dist/build.js +8 -8
  6. package/dist/{chunk-NBF2ZIGI.cjs → chunk-22IG5M6F.cjs} +8 -8
  7. package/dist/{chunk-SK6FXSPH.cjs → chunk-4XVJ5KSF.cjs} +2 -2
  8. package/dist/{chunk-WAJ7I33E.js → chunk-D7LPSDOB.js} +1 -1
  9. package/dist/{chunk-EXPFKRMQ.js → chunk-ET6RMS2Q.js} +1 -1
  10. package/dist/{chunk-47NX64PH.cjs → chunk-FVCKIGS6.cjs} +3 -3
  11. package/dist/{chunk-YHEJID7E.js → chunk-IUBVX3NC.js} +1 -1
  12. package/dist/{chunk-NNLPQ2CE.js → chunk-J7FTEGIG.js} +1 -1
  13. package/dist/{chunk-HH54I6PD.cjs → chunk-JFC4G4BI.cjs} +11 -11
  14. package/dist/{chunk-7TVTZIVE.cjs → chunk-K4FSKRCN.cjs} +2 -2
  15. package/dist/{chunk-NT6JOLFV.cjs → chunk-LE4GFUGX.cjs} +36 -36
  16. package/dist/{chunk-VYSP7KB2.js → chunk-NERWUJFP.js} +4 -4
  17. package/dist/{chunk-QTEVRHRE.js → chunk-QIREVXGE.js} +2 -2
  18. package/dist/{chunk-FOQNA2LU.js → chunk-SQWJQEYR.js} +3 -3
  19. package/dist/{chunk-7S2N7N3D.cjs → chunk-U5GTAVFZ.cjs} +2 -2
  20. package/dist/{chunk-VCP6KK35.js → chunk-XSWSDE6I.js} +1 -1
  21. package/dist/{chunk-T3GS5C2B.cjs → chunk-YI6E3X5Z.cjs} +8 -8
  22. package/dist/config.cjs +4 -4
  23. package/dist/config.js +3 -3
  24. package/dist/context.cjs +5 -5
  25. package/dist/context.js +4 -4
  26. package/dist/index.cjs +9 -9
  27. package/dist/index.js +8 -8
  28. package/dist/package-json.cjs +4 -4
  29. package/dist/package-json.js +3 -3
  30. package/dist/plugins/resolve-paths.cjs +7 -7
  31. package/dist/plugins/resolve-paths.js +1 -1
  32. package/dist/tsup.cjs +3 -3
  33. package/dist/tsup.js +2 -2
  34. 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.51.0-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.51.1-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 _chunkSK6FXSPHcjs = require('./chunk-SK6FXSPH.cjs');
4
- require('./chunk-NT6JOLFV.cjs');
5
- require('./chunk-7TVTZIVE.cjs');
3
+ var _chunk4XVJ5KSFcjs = require('./chunk-4XVJ5KSF.cjs');
4
+ require('./chunk-LE4GFUGX.cjs');
5
+ require('./chunk-K4FSKRCN.cjs');
6
6
  require('./chunk-G4GMEAHM.cjs');
7
7
  require('./chunk-ED3VWWR5.cjs');
8
8
 
9
9
 
10
- exports.copyBuildAssets = _chunkSK6FXSPHcjs.copyBuildAssets;
10
+ exports.copyBuildAssets = _chunk4XVJ5KSFcjs.copyBuildAssets;
package/dist/assets.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  copyBuildAssets
3
- } from "./chunk-NNLPQ2CE.js";
4
- import "./chunk-YHEJID7E.js";
5
- import "./chunk-VCP6KK35.js";
3
+ } from "./chunk-J7FTEGIG.js";
4
+ import "./chunk-IUBVX3NC.js";
5
+ import "./chunk-XSWSDE6I.js";
6
6
  import "./chunk-JSUZIFOI.js";
7
7
  import "./chunk-J7JUCKR5.js";
8
8
  export {
package/dist/build.cjs CHANGED
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkNBF2ZIGIcjs = require('./chunk-NBF2ZIGI.cjs');
4
- require('./chunk-SK6FXSPH.cjs');
3
+ var _chunk22IG5M6Fcjs = require('./chunk-22IG5M6F.cjs');
4
+ require('./chunk-4XVJ5KSF.cjs');
5
5
  require('./chunk-HLMV2RBF.cjs');
6
- require('./chunk-HH54I6PD.cjs');
7
- require('./chunk-47NX64PH.cjs');
8
- require('./chunk-T3GS5C2B.cjs');
9
- require('./chunk-NT6JOLFV.cjs');
10
- require('./chunk-7S2N7N3D.cjs');
11
- require('./chunk-7TVTZIVE.cjs');
6
+ require('./chunk-JFC4G4BI.cjs');
7
+ require('./chunk-FVCKIGS6.cjs');
8
+ require('./chunk-YI6E3X5Z.cjs');
9
+ require('./chunk-LE4GFUGX.cjs');
10
+ require('./chunk-U5GTAVFZ.cjs');
11
+ require('./chunk-K4FSKRCN.cjs');
12
12
  require('./chunk-G4GMEAHM.cjs');
13
13
  require('./chunk-ED3VWWR5.cjs');
14
14
 
15
15
 
16
- exports.build = _chunkNBF2ZIGIcjs.build;
16
+ exports.build = _chunk22IG5M6Fcjs.build;
package/dist/build.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-VYSP7KB2.js";
4
- import "./chunk-NNLPQ2CE.js";
3
+ } from "./chunk-NERWUJFP.js";
4
+ import "./chunk-J7FTEGIG.js";
5
5
  import "./chunk-7BWY3BGW.js";
6
- import "./chunk-FOQNA2LU.js";
7
- import "./chunk-WAJ7I33E.js";
8
- import "./chunk-QTEVRHRE.js";
9
- import "./chunk-YHEJID7E.js";
10
- import "./chunk-EXPFKRMQ.js";
11
- import "./chunk-VCP6KK35.js";
6
+ import "./chunk-SQWJQEYR.js";
7
+ import "./chunk-D7LPSDOB.js";
8
+ import "./chunk-QIREVXGE.js";
9
+ import "./chunk-IUBVX3NC.js";
10
+ import "./chunk-ET6RMS2Q.js";
11
+ import "./chunk-XSWSDE6I.js";
12
12
  import "./chunk-JSUZIFOI.js";
13
13
  import "./chunk-J7JUCKR5.js";
14
14
  export {
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkSK6FXSPHcjs = require('./chunk-SK6FXSPH.cjs');
3
+ var _chunk4XVJ5KSFcjs = require('./chunk-4XVJ5KSF.cjs');
4
4
 
5
5
 
6
6
  var _chunkHLMV2RBFcjs = require('./chunk-HLMV2RBF.cjs');
7
7
 
8
8
 
9
- var _chunkHH54I6PDcjs = require('./chunk-HH54I6PD.cjs');
9
+ var _chunkJFC4G4BIcjs = require('./chunk-JFC4G4BI.cjs');
10
10
 
11
11
 
12
- var _chunkT3GS5C2Bcjs = require('./chunk-T3GS5C2B.cjs');
12
+ var _chunkYI6E3X5Zcjs = require('./chunk-YI6E3X5Z.cjs');
13
13
 
14
14
 
15
- var _chunk7S2N7N3Dcjs = require('./chunk-7S2N7N3D.cjs');
15
+ var _chunkU5GTAVFZcjs = require('./chunk-U5GTAVFZ.cjs');
16
16
 
17
17
 
18
18
 
@@ -69,13 +69,13 @@ async function build(options) {
69
69
  if (opts.length === 0) {
70
70
  throw new Error("No build options were provided");
71
71
  }
72
- const context = await _chunkHH54I6PDcjs.resolveContext.call(void 0, options);
72
+ const context = await _chunkJFC4G4BIcjs.resolveContext.call(void 0, options);
73
73
  await cleanOutputPath(context);
74
74
  await Promise.all([
75
75
  // dependencyCheck(context.options),
76
- _chunkT3GS5C2Bcjs.generatePackageJson.call(void 0, context),
77
- _chunkSK6FXSPHcjs.copyBuildAssets.call(void 0, context),
78
- _chunk7S2N7N3Dcjs.executeTsup.call(void 0, context)
76
+ _chunkYI6E3X5Zcjs.generatePackageJson.call(void 0, context),
77
+ _chunk4XVJ5KSFcjs.copyBuildAssets.call(void 0, context),
78
+ _chunkU5GTAVFZcjs.executeTsup.call(void 0, context)
79
79
  ]);
80
80
  await reportResults(context);
81
81
  _chunkG4GMEAHMcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
@@ -1,6 +1,6 @@
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 _chunkNT6JOLFVcjs = require('./chunk-NT6JOLFV.cjs');
3
+ var _chunkLE4GFUGXcjs = require('./chunk-LE4GFUGX.cjs');
4
4
 
5
5
 
6
6
 
@@ -18,7 +18,7 @@ async function copyBuildAssets(context) {
18
18
  context.workspaceConfig
19
19
  );
20
20
  const stopwatch = _chunkG4GMEAHMcjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
21
- await _chunkNT6JOLFVcjs.copyAssets.call(void 0,
21
+ await _chunkLE4GFUGXcjs.copyAssets.call(void 0,
22
22
  context.workspaceConfig,
23
23
  _nullishCoalesce(context.options.assets, () => ( [])),
24
24
  context.outputPath,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_COMPILED_BANNER
3
- } from "./chunk-YHEJID7E.js";
3
+ } from "./chunk-IUBVX3NC.js";
4
4
  import {
5
5
  init_esm_shims
6
6
  } from "./chunk-J7JUCKR5.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  joinPaths
3
- } from "./chunk-VCP6KK35.js";
3
+ } from "./chunk-XSWSDE6I.js";
4
4
  import {
5
5
  getStopwatch,
6
6
  writeDebug
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkNT6JOLFVcjs = require('./chunk-NT6JOLFV.cjs');
3
+ var _chunkLE4GFUGXcjs = require('./chunk-LE4GFUGX.cjs');
4
4
 
5
5
 
6
6
  var _chunkED3VWWR5cjs = require('./chunk-ED3VWWR5.cjs');
@@ -44,8 +44,8 @@ var DEFAULT_BUILD_OPTIONS = {
44
44
  ".woff2": "file"
45
45
  },
46
46
  banner: {
47
- js: _chunkNT6JOLFVcjs.DEFAULT_COMPILED_BANNER,
48
- css: _chunkNT6JOLFVcjs.DEFAULT_COMPILED_BANNER
47
+ js: _chunkLE4GFUGXcjs.DEFAULT_COMPILED_BANNER,
48
+ css: _chunkLE4GFUGXcjs.DEFAULT_COMPILED_BANNER
49
49
  }
50
50
  };
51
51
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  correctPaths,
3
3
  joinPaths
4
- } from "./chunk-VCP6KK35.js";
4
+ } from "./chunk-XSWSDE6I.js";
5
5
  import {
6
6
  LogLevel,
7
7
  formatLogMessage,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  copyAssets
3
- } from "./chunk-YHEJID7E.js";
3
+ } from "./chunk-IUBVX3NC.js";
4
4
  import {
5
5
  getStopwatch,
6
6
  writeDebug
@@ -1,13 +1,13 @@
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 _chunk47NX64PHcjs = require('./chunk-47NX64PH.cjs');
3
+ var _chunkFVCKIGS6cjs = require('./chunk-FVCKIGS6.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkNT6JOLFVcjs = require('./chunk-NT6JOLFV.cjs');
7
+ var _chunkLE4GFUGXcjs = require('./chunk-LE4GFUGX.cjs');
8
8
 
9
9
 
10
- var _chunk7TVTZIVEcjs = require('./chunk-7TVTZIVE.cjs');
10
+ var _chunkK4FSKRCNcjs = require('./chunk-K4FSKRCN.cjs');
11
11
 
12
12
 
13
13
 
@@ -33,7 +33,7 @@ async function resolveContext(userOptions) {
33
33
  if (!workspaceRoot) {
34
34
  throw new Error("Cannot find Nx workspace root");
35
35
  }
36
- const workspaceConfig = await _chunkNT6JOLFVcjs.getWorkspaceConfig.call(void 0, true, {
36
+ const workspaceConfig = await _chunkLE4GFUGXcjs.getWorkspaceConfig.call(void 0, true, {
37
37
  workspaceRoot: workspaceRoot.dir
38
38
  });
39
39
  _chunkG4GMEAHMcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
@@ -41,7 +41,7 @@ async function resolveContext(userOptions) {
41
41
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
42
42
  exitOnError: true
43
43
  });
44
- const projectJsonPath = _chunk7TVTZIVEcjs.joinPaths.call(void 0,
44
+ const projectJsonPath = _chunkK4FSKRCNcjs.joinPaths.call(void 0,
45
45
  workspaceRoot.dir,
46
46
  projectRoot,
47
47
  "project.json"
@@ -58,9 +58,9 @@ async function resolveContext(userOptions) {
58
58
  "The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
59
59
  );
60
60
  }
61
- const options = _defu2.default.call(void 0, userOptions, _chunk47NX64PHcjs.DEFAULT_BUILD_OPTIONS);
61
+ const options = _defu2.default.call(void 0, userOptions, _chunkFVCKIGS6cjs.DEFAULT_BUILD_OPTIONS);
62
62
  options.name ??= projectName;
63
- const packageJsonPath = _chunk7TVTZIVEcjs.joinPaths.call(void 0,
63
+ const packageJsonPath = _chunkK4FSKRCNcjs.joinPaths.call(void 0,
64
64
  workspaceRoot.dir,
65
65
  options.projectRoot,
66
66
  "package.json"
@@ -68,11 +68,11 @@ async function resolveContext(userOptions) {
68
68
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
69
69
  throw new Error("Cannot find package.json configuration");
70
70
  }
71
- const env = _chunkNT6JOLFVcjs.getEnv.call(void 0, "esbuild", options);
71
+ const env = _chunkLE4GFUGXcjs.getEnv.call(void 0, "esbuild", options);
72
72
  const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
73
73
  const resolvedOptions = {
74
74
  ...options,
75
- tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunk7TVTZIVEcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
75
+ tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkK4FSKRCNcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
76
76
  metafile: userOptions.mode === "development",
77
77
  clean: false,
78
78
  env,
@@ -97,8 +97,8 @@ async function resolveContext(userOptions) {
97
97
  projectConfigurations,
98
98
  projectName,
99
99
  projectGraph,
100
- sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunk7TVTZIVEcjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
101
- outputPath: resolvedOptions.outputPath || _chunk7TVTZIVEcjs.joinPaths.call(void 0,
100
+ sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkK4FSKRCNcjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
101
+ outputPath: resolvedOptions.outputPath || _chunkK4FSKRCNcjs.joinPaths.call(void 0,
102
102
  workspaceConfig.workspaceRoot,
103
103
  "dist",
104
104
  resolvedOptions.projectRoot
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
  var _chunkED3VWWR5cjs = require('./chunk-ED3VWWR5.cjs');
4
4
 
@@ -19,7 +19,7 @@ var correctPaths = function(path) {
19
19
  return ".";
20
20
  }
21
21
  path = normalizeWindowsPath(path);
22
- const isUNCPath = path.match(_UNC_REGEX);
22
+ const isUNCPath = _optionalChain([path, 'optionalAccess', _ => _.match, 'call', _2 => _2(_UNC_REGEX)]);
23
23
  const isPathAbsolute = isAbsolute(path);
24
24
  const trailingSeparator = path[path.length - 1] === "/";
25
25
  path = normalizeString(path, !isPathAbsolute);
@@ -1,7 +1,7 @@
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 _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 _chunk7TVTZIVEcjs = require('./chunk-7TVTZIVE.cjs');
4
+ var _chunkK4FSKRCNcjs = require('./chunk-K4FSKRCN.cjs');
5
5
 
6
6
 
7
7
 
@@ -59,7 +59,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
59
59
  }
60
60
  _chunkG4GMEAHMcjs.writeTrace.call(void 0,
61
61
  `\u{1F4DD} Copying the following assets to the output directory:
62
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk7TVTZIVEcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
62
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkK4FSKRCNcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
63
63
  config
64
64
  );
65
65
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
@@ -72,17 +72,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
72
72
  _chunkG4GMEAHMcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
73
73
  if (includeSrc === true) {
74
74
  _chunkG4GMEAHMcjs.writeDebug.call(void 0,
75
- `\u{1F4DD} Adding banner and writing source files: ${_chunk7TVTZIVEcjs.joinPaths.call(void 0,
75
+ `\u{1F4DD} Adding banner and writing source files: ${_chunkK4FSKRCNcjs.joinPaths.call(void 0,
76
76
  outputPath,
77
77
  "src"
78
78
  )}`,
79
79
  config
80
80
  );
81
81
  const files = await _glob.glob.call(void 0, [
82
- _chunk7TVTZIVEcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
83
- _chunk7TVTZIVEcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
84
- _chunk7TVTZIVEcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
85
- _chunk7TVTZIVEcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
82
+ _chunkK4FSKRCNcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
83
+ _chunkK4FSKRCNcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
84
+ _chunkK4FSKRCNcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
85
+ _chunkK4FSKRCNcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
86
86
  ]);
87
87
  await Promise.allSettled(
88
88
  files.map(
@@ -175,11 +175,11 @@ var rootDirectories = [
175
175
  ];
176
176
  function findWorkspaceRootSafe(pathInsideMonorepo) {
177
177
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
178
- return _chunk7TVTZIVEcjs.correctPaths.call(void 0,
178
+ return _chunkK4FSKRCNcjs.correctPaths.call(void 0,
179
179
  _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
180
180
  );
181
181
  }
182
- return _chunk7TVTZIVEcjs.correctPaths.call(void 0,
182
+ return _chunkK4FSKRCNcjs.correctPaths.call(void 0,
183
183
  findFolderUp(
184
184
  _nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
185
185
  rootFiles,
@@ -238,7 +238,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
238
238
  )) {
239
239
  const projectNode = project.node;
240
240
  if (projectNode.data.root) {
241
- const projectPackageJsonPath = _chunk7TVTZIVEcjs.joinPaths.call(void 0,
241
+ const projectPackageJsonPath = _chunkK4FSKRCNcjs.joinPaths.call(void 0,
242
242
  workspaceRoot,
243
243
  projectNode.data.root,
244
244
  "package.json"
@@ -260,7 +260,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
260
260
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
261
261
  );
262
262
  const projectJsonFile = await _promises.readFile.call(void 0,
263
- _chunk7TVTZIVEcjs.joinPaths.call(void 0, projectRoot, "project.json"),
263
+ _chunkK4FSKRCNcjs.joinPaths.call(void 0, projectRoot, "project.json"),
264
264
  "utf8"
265
265
  );
266
266
  const projectJson = JSON.parse(projectJsonFile);
@@ -273,7 +273,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
273
273
  }
274
274
  const implicitDependencies = _optionalChain([projectConfigurations, 'access', _9 => _9.projects, 'optionalAccess', _10 => _10[projectName2], 'access', _11 => _11.implicitDependencies, 'optionalAccess', _12 => _12.reduce, 'call', _13 => _13((ret, dep) => {
275
275
  if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
276
- const depPackageJsonPath = _chunk7TVTZIVEcjs.joinPaths.call(void 0,
276
+ const depPackageJsonPath = _chunkK4FSKRCNcjs.joinPaths.call(void 0,
277
277
  workspaceRoot,
278
278
  projectConfigurations.projects[dep].root,
279
279
  "package.json"
@@ -311,7 +311,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
311
311
  var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
312
312
  const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
313
313
  const workspacePackageJsonContent = await _promises.readFile.call(void 0,
314
- _chunk7TVTZIVEcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
314
+ _chunkK4FSKRCNcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
315
315
  "utf8"
316
316
  );
317
317
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
@@ -322,7 +322,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
322
322
  if (distSrc.startsWith("/")) {
323
323
  distSrc = distSrc.substring(1);
324
324
  }
325
- packageJson.source ??= `${_chunk7TVTZIVEcjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
325
+ packageJson.source ??= `${_chunkK4FSKRCNcjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
326
326
  }
327
327
  packageJson.files ??= ["dist/**/*"];
328
328
  if (includeSrc === true && !packageJson.files.includes("src")) {
@@ -347,7 +347,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
347
347
  packageJson.contributors = [packageJson.author];
348
348
  }
349
349
  packageJson.repository ??= workspacePackageJson.repository;
350
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunk7TVTZIVEcjs.joinPaths.call(void 0, "packages", projectName);
350
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkK4FSKRCNcjs.joinPaths.call(void 0, "packages", projectName);
351
351
  return packageJson;
352
352
  };
353
353
 
@@ -984,7 +984,7 @@ async function getPackageJsonConfig(root) {
984
984
  const workspaceRoot = findWorkspaceRoot(root);
985
985
  if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
986
986
  const file = await _promises.readFile.call(void 0,
987
- _chunk7TVTZIVEcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
987
+ _chunkK4FSKRCNcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
988
988
  "utf8"
989
989
  );
990
990
  if (file) {
@@ -1068,7 +1068,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
1068
1068
  envName: _optionalChain([fileName, 'optionalAccess', _28 => _28.toUpperCase, 'call', _29 => _29()]),
1069
1069
  jitiOptions: {
1070
1070
  debug: false,
1071
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk7TVTZIVEcjs.joinPaths.call(void 0,
1071
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkK4FSKRCNcjs.joinPaths.call(void 0,
1072
1072
  process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
1073
1073
  "jiti"
1074
1074
  )
@@ -1082,7 +1082,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
1082
1082
  envName: _optionalChain([fileName, 'optionalAccess', _30 => _30.toUpperCase, 'call', _31 => _31()]),
1083
1083
  jitiOptions: {
1084
1084
  debug: false,
1085
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk7TVTZIVEcjs.joinPaths.call(void 0,
1085
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkK4FSKRCNcjs.joinPaths.call(void 0,
1086
1086
  process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
1087
1087
  "jiti"
1088
1088
  )
@@ -1196,15 +1196,15 @@ var getConfigEnv = () => {
1196
1196
  support: process.env[`${prefix}SUPPORT`] || void 0,
1197
1197
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
1198
1198
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
1199
- configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunk7TVTZIVEcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
1200
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunk7TVTZIVEcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
1199
+ configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkK4FSKRCNcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
1200
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkK4FSKRCNcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
1201
1201
  directories: {
1202
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunk7TVTZIVEcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunk7TVTZIVEcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
1203
- data: process.env[`${prefix}DATA_DIR`] ? _chunk7TVTZIVEcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunk7TVTZIVEcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
1204
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunk7TVTZIVEcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunk7TVTZIVEcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
1205
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunk7TVTZIVEcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunk7TVTZIVEcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
1206
- log: process.env[`${prefix}LOG_DIR`] ? _chunk7TVTZIVEcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunk7TVTZIVEcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
1207
- build: process.env[`${prefix}BUILD_DIR`] ? _chunk7TVTZIVEcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunk7TVTZIVEcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
1202
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunkK4FSKRCNcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkK4FSKRCNcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
1203
+ data: process.env[`${prefix}DATA_DIR`] ? _chunkK4FSKRCNcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkK4FSKRCNcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
1204
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunkK4FSKRCNcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkK4FSKRCNcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
1205
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunkK4FSKRCNcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkK4FSKRCNcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
1206
+ log: process.env[`${prefix}LOG_DIR`] ? _chunkK4FSKRCNcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkK4FSKRCNcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
1207
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunkK4FSKRCNcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkK4FSKRCNcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
1208
1208
  },
1209
1209
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
1210
1210
  mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -1495,42 +1495,42 @@ var setConfigEnv = (config) => {
1495
1495
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
1496
1496
  }
1497
1497
  if (config.configFile) {
1498
- process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunk7TVTZIVEcjs.correctPaths.call(void 0,
1498
+ process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkK4FSKRCNcjs.correctPaths.call(void 0,
1499
1499
  config.configFile
1500
1500
  );
1501
1501
  }
1502
1502
  if (config.workspaceRoot) {
1503
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunk7TVTZIVEcjs.correctPaths.call(void 0, config.workspaceRoot);
1504
- process.env.NX_WORKSPACE_ROOT = _chunk7TVTZIVEcjs.correctPaths.call(void 0, config.workspaceRoot);
1505
- process.env.NX_WORKSPACE_ROOT_PATH = _chunk7TVTZIVEcjs.correctPaths.call(void 0, config.workspaceRoot);
1503
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunkK4FSKRCNcjs.correctPaths.call(void 0, config.workspaceRoot);
1504
+ process.env.NX_WORKSPACE_ROOT = _chunkK4FSKRCNcjs.correctPaths.call(void 0, config.workspaceRoot);
1505
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunkK4FSKRCNcjs.correctPaths.call(void 0, config.workspaceRoot);
1506
1506
  }
1507
1507
  if (config.directories) {
1508
1508
  if (!config.skipCache && config.directories.cache) {
1509
- process.env[`${prefix}CACHE_DIR`] = _chunk7TVTZIVEcjs.correctPaths.call(void 0,
1509
+ process.env[`${prefix}CACHE_DIR`] = _chunkK4FSKRCNcjs.correctPaths.call(void 0,
1510
1510
  config.directories.cache
1511
1511
  );
1512
1512
  process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
1513
1513
  }
1514
1514
  if (config.directories.data) {
1515
- process.env[`${prefix}DATA_DIR`] = _chunk7TVTZIVEcjs.correctPaths.call(void 0, config.directories.data);
1515
+ process.env[`${prefix}DATA_DIR`] = _chunkK4FSKRCNcjs.correctPaths.call(void 0, config.directories.data);
1516
1516
  process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
1517
1517
  }
1518
1518
  if (config.directories.config) {
1519
- process.env[`${prefix}CONFIG_DIR`] = _chunk7TVTZIVEcjs.correctPaths.call(void 0,
1519
+ process.env[`${prefix}CONFIG_DIR`] = _chunkK4FSKRCNcjs.correctPaths.call(void 0,
1520
1520
  config.directories.config
1521
1521
  );
1522
1522
  process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
1523
1523
  }
1524
1524
  if (config.directories.temp) {
1525
- process.env[`${prefix}TEMP_DIR`] = _chunk7TVTZIVEcjs.correctPaths.call(void 0, config.directories.temp);
1525
+ process.env[`${prefix}TEMP_DIR`] = _chunkK4FSKRCNcjs.correctPaths.call(void 0, config.directories.temp);
1526
1526
  process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
1527
1527
  }
1528
1528
  if (config.directories.log) {
1529
- process.env[`${prefix}LOG_DIR`] = _chunk7TVTZIVEcjs.correctPaths.call(void 0, config.directories.log);
1529
+ process.env[`${prefix}LOG_DIR`] = _chunkK4FSKRCNcjs.correctPaths.call(void 0, config.directories.log);
1530
1530
  process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
1531
1531
  }
1532
1532
  if (config.directories.build) {
1533
- process.env[`${prefix}BUILD_DIR`] = _chunk7TVTZIVEcjs.correctPaths.call(void 0,
1533
+ process.env[`${prefix}BUILD_DIR`] = _chunkK4FSKRCNcjs.correctPaths.call(void 0,
1534
1534
  config.directories.build
1535
1535
  );
1536
1536
  process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  copyBuildAssets
3
- } from "./chunk-NNLPQ2CE.js";
3
+ } from "./chunk-J7FTEGIG.js";
4
4
  import {
5
5
  cleanDirectories
6
6
  } from "./chunk-7BWY3BGW.js";
7
7
  import {
8
8
  resolveContext
9
- } from "./chunk-FOQNA2LU.js";
9
+ } from "./chunk-SQWJQEYR.js";
10
10
  import {
11
11
  generatePackageJson
12
- } from "./chunk-QTEVRHRE.js";
12
+ } from "./chunk-QIREVXGE.js";
13
13
  import {
14
14
  executeTsup
15
- } from "./chunk-EXPFKRMQ.js";
15
+ } from "./chunk-ET6RMS2Q.js";
16
16
  import {
17
17
  getStopwatch,
18
18
  writeDebug,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  addPackageDependencies,
3
3
  addWorkspacePackageJsonFields
4
- } from "./chunk-YHEJID7E.js";
4
+ } from "./chunk-IUBVX3NC.js";
5
5
  import {
6
6
  joinPaths
7
- } from "./chunk-VCP6KK35.js";
7
+ } from "./chunk-XSWSDE6I.js";
8
8
  import {
9
9
  getStopwatch,
10
10
  writeDebug
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS
3
- } from "./chunk-WAJ7I33E.js";
3
+ } from "./chunk-D7LPSDOB.js";
4
4
  import {
5
5
  getEnv,
6
6
  getWorkspaceConfig
7
- } from "./chunk-YHEJID7E.js";
7
+ } from "./chunk-IUBVX3NC.js";
8
8
  import {
9
9
  joinPaths
10
- } from "./chunk-VCP6KK35.js";
10
+ } from "./chunk-XSWSDE6I.js";
11
11
  import {
12
12
  formatLogMessage,
13
13
  getStopwatch,
@@ -1,6 +1,6 @@
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
- var _chunk7TVTZIVEcjs = require('./chunk-7TVTZIVE.cjs');
3
+ var _chunkK4FSKRCNcjs = require('./chunk-K4FSKRCN.cjs');
4
4
 
5
5
 
6
6
 
@@ -2675,7 +2675,7 @@ async function executeTsup(context) {
2675
2675
  const stopwatch = _chunkG4GMEAHMcjs.getStopwatch.call(void 0, `${context.options.name} build`);
2676
2676
  await (0, import_tsup.build)({
2677
2677
  ...context.options,
2678
- outDir: context.options.distDir ? _chunk7TVTZIVEcjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
2678
+ outDir: context.options.distDir ? _chunkK4FSKRCNcjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
2679
2679
  workspaceConfig: context.workspaceConfig
2680
2680
  });
2681
2681
  stopwatch();
@@ -19,7 +19,7 @@ var correctPaths = function(path) {
19
19
  return ".";
20
20
  }
21
21
  path = normalizeWindowsPath(path);
22
- const isUNCPath = path.match(_UNC_REGEX);
22
+ const isUNCPath = path?.match(_UNC_REGEX);
23
23
  const isPathAbsolute = isAbsolute(path);
24
24
  const trailingSeparator = path[path.length - 1] === "/";
25
25
  path = normalizeString(path, !isPathAbsolute);
@@ -1,10 +1,10 @@
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 _chunkNT6JOLFVcjs = require('./chunk-NT6JOLFV.cjs');
4
+ var _chunkLE4GFUGXcjs = require('./chunk-LE4GFUGX.cjs');
5
5
 
6
6
 
7
- var _chunk7TVTZIVEcjs = require('./chunk-7TVTZIVE.cjs');
7
+ var _chunkK4FSKRCNcjs = require('./chunk-K4FSKRCN.cjs');
8
8
 
9
9
 
10
10
 
@@ -19,10 +19,10 @@ var _devkit = require('@nx/devkit');
19
19
  var _fs = require('fs');
20
20
  var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
21
21
  async function generatePackageJson(context) {
22
- if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk7TVTZIVEcjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
22
+ if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkK4FSKRCNcjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
23
23
  _chunkG4GMEAHMcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
24
24
  const stopwatch = _chunkG4GMEAHMcjs.getStopwatch.call(void 0, "Write package.json file");
25
- const packageJsonPath = _chunk7TVTZIVEcjs.joinPaths.call(void 0,
25
+ const packageJsonPath = _chunkK4FSKRCNcjs.joinPaths.call(void 0,
26
26
  context.options.projectRoot,
27
27
  "project.json"
28
28
  );
@@ -30,7 +30,7 @@ async function generatePackageJson(context) {
30
30
  throw new Error("Cannot find package.json configuration");
31
31
  }
32
32
  const packageJsonFile = await _promises2.default.readFile(
33
- _chunk7TVTZIVEcjs.joinPaths.call(void 0,
33
+ _chunkK4FSKRCNcjs.joinPaths.call(void 0,
34
34
  context.workspaceConfig.workspaceRoot,
35
35
  context.options.projectRoot,
36
36
  "package.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 _chunkNT6JOLFVcjs.addPackageDependencies.call(void 0,
44
+ packageJson = await _chunkLE4GFUGXcjs.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 _chunkNT6JOLFVcjs.addWorkspacePackageJsonFields.call(void 0,
50
+ packageJson = await _chunkLE4GFUGXcjs.addWorkspacePackageJsonFields.call(void 0,
51
51
  context.workspaceConfig,
52
52
  context.options.projectRoot,
53
53
  context.sourceRoot,
@@ -136,7 +136,7 @@ async function generatePackageJson(context) {
136
136
  }
137
137
  }
138
138
  await _devkit.writeJsonFile.call(void 0,
139
- _chunk7TVTZIVEcjs.joinPaths.call(void 0, context.outputPath, "package.json"),
139
+ _chunkK4FSKRCNcjs.joinPaths.call(void 0, context.outputPath, "package.json"),
140
140
  packageJson
141
141
  );
142
142
  stopwatch();
package/dist/config.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk47NX64PHcjs = require('./chunk-47NX64PH.cjs');
4
- require('./chunk-NT6JOLFV.cjs');
5
- require('./chunk-7TVTZIVE.cjs');
3
+ var _chunkFVCKIGS6cjs = require('./chunk-FVCKIGS6.cjs');
4
+ require('./chunk-LE4GFUGX.cjs');
5
+ require('./chunk-K4FSKRCN.cjs');
6
6
  require('./chunk-G4GMEAHM.cjs');
7
7
  require('./chunk-ED3VWWR5.cjs');
8
8
 
9
9
 
10
- exports.DEFAULT_BUILD_OPTIONS = _chunk47NX64PHcjs.DEFAULT_BUILD_OPTIONS;
10
+ exports.DEFAULT_BUILD_OPTIONS = _chunkFVCKIGS6cjs.DEFAULT_BUILD_OPTIONS;
package/dist/config.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS
3
- } from "./chunk-WAJ7I33E.js";
4
- import "./chunk-YHEJID7E.js";
5
- import "./chunk-VCP6KK35.js";
3
+ } from "./chunk-D7LPSDOB.js";
4
+ import "./chunk-IUBVX3NC.js";
5
+ import "./chunk-XSWSDE6I.js";
6
6
  import "./chunk-JSUZIFOI.js";
7
7
  import "./chunk-J7JUCKR5.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 _chunkHH54I6PDcjs = require('./chunk-HH54I6PD.cjs');
4
- require('./chunk-47NX64PH.cjs');
5
- require('./chunk-NT6JOLFV.cjs');
6
- require('./chunk-7TVTZIVE.cjs');
3
+ var _chunkJFC4G4BIcjs = require('./chunk-JFC4G4BI.cjs');
4
+ require('./chunk-FVCKIGS6.cjs');
5
+ require('./chunk-LE4GFUGX.cjs');
6
+ require('./chunk-K4FSKRCN.cjs');
7
7
  require('./chunk-G4GMEAHM.cjs');
8
8
  require('./chunk-ED3VWWR5.cjs');
9
9
 
10
10
 
11
- exports.resolveContext = _chunkHH54I6PDcjs.resolveContext;
11
+ exports.resolveContext = _chunkJFC4G4BIcjs.resolveContext;
package/dist/context.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveContext
3
- } from "./chunk-FOQNA2LU.js";
4
- import "./chunk-WAJ7I33E.js";
5
- import "./chunk-YHEJID7E.js";
6
- import "./chunk-VCP6KK35.js";
3
+ } from "./chunk-SQWJQEYR.js";
4
+ import "./chunk-D7LPSDOB.js";
5
+ import "./chunk-IUBVX3NC.js";
6
+ import "./chunk-XSWSDE6I.js";
7
7
  import "./chunk-JSUZIFOI.js";
8
8
  import "./chunk-J7JUCKR5.js";
9
9
  export {
package/dist/index.cjs CHANGED
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-JYUHLS4B.cjs');
2
2
 
3
3
 
4
- var _chunkNBF2ZIGIcjs = require('./chunk-NBF2ZIGI.cjs');
5
- require('./chunk-SK6FXSPH.cjs');
4
+ var _chunk22IG5M6Fcjs = require('./chunk-22IG5M6F.cjs');
5
+ require('./chunk-4XVJ5KSF.cjs');
6
6
  require('./chunk-HLMV2RBF.cjs');
7
- require('./chunk-HH54I6PD.cjs');
8
- require('./chunk-47NX64PH.cjs');
9
- require('./chunk-T3GS5C2B.cjs');
10
- require('./chunk-NT6JOLFV.cjs');
11
- require('./chunk-7S2N7N3D.cjs');
12
- require('./chunk-7TVTZIVE.cjs');
7
+ require('./chunk-JFC4G4BI.cjs');
8
+ require('./chunk-FVCKIGS6.cjs');
9
+ require('./chunk-YI6E3X5Z.cjs');
10
+ require('./chunk-LE4GFUGX.cjs');
11
+ require('./chunk-U5GTAVFZ.cjs');
12
+ require('./chunk-K4FSKRCN.cjs');
13
13
  require('./chunk-G4GMEAHM.cjs');
14
14
 
15
15
 
@@ -19,4 +19,4 @@ var _chunkED3VWWR5cjs = require('./chunk-ED3VWWR5.cjs');
19
19
  _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
20
20
 
21
21
 
22
- exports.build = _chunkNBF2ZIGIcjs.build;
22
+ exports.build = _chunk22IG5M6Fcjs.build;
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import "./chunk-D543A34U.js";
2
2
  import {
3
3
  build
4
- } from "./chunk-VYSP7KB2.js";
5
- import "./chunk-NNLPQ2CE.js";
4
+ } from "./chunk-NERWUJFP.js";
5
+ import "./chunk-J7FTEGIG.js";
6
6
  import "./chunk-7BWY3BGW.js";
7
- import "./chunk-FOQNA2LU.js";
8
- import "./chunk-WAJ7I33E.js";
9
- import "./chunk-QTEVRHRE.js";
10
- import "./chunk-YHEJID7E.js";
11
- import "./chunk-EXPFKRMQ.js";
12
- import "./chunk-VCP6KK35.js";
7
+ import "./chunk-SQWJQEYR.js";
8
+ import "./chunk-D7LPSDOB.js";
9
+ import "./chunk-QIREVXGE.js";
10
+ import "./chunk-IUBVX3NC.js";
11
+ import "./chunk-ET6RMS2Q.js";
12
+ import "./chunk-XSWSDE6I.js";
13
13
  import "./chunk-JSUZIFOI.js";
14
14
  import {
15
15
  init_esm_shims
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkT3GS5C2Bcjs = require('./chunk-T3GS5C2B.cjs');
4
- require('./chunk-NT6JOLFV.cjs');
5
- require('./chunk-7TVTZIVE.cjs');
3
+ var _chunkYI6E3X5Zcjs = require('./chunk-YI6E3X5Z.cjs');
4
+ require('./chunk-LE4GFUGX.cjs');
5
+ require('./chunk-K4FSKRCN.cjs');
6
6
  require('./chunk-G4GMEAHM.cjs');
7
7
  require('./chunk-ED3VWWR5.cjs');
8
8
 
9
9
 
10
- exports.generatePackageJson = _chunkT3GS5C2Bcjs.generatePackageJson;
10
+ exports.generatePackageJson = _chunkYI6E3X5Zcjs.generatePackageJson;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generatePackageJson
3
- } from "./chunk-QTEVRHRE.js";
4
- import "./chunk-YHEJID7E.js";
5
- import "./chunk-VCP6KK35.js";
3
+ } from "./chunk-QIREVXGE.js";
4
+ import "./chunk-IUBVX3NC.js";
5
+ import "./chunk-XSWSDE6I.js";
6
6
  import "./chunk-JSUZIFOI.js";
7
7
  import "./chunk-J7JUCKR5.js";
8
8
  export {
@@ -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(); } } 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 _chunk7TVTZIVEcjs = require('../chunk-7TVTZIVE.cjs');
4
+ var _chunkK4FSKRCNcjs = require('../chunk-K4FSKRCN.cjs');
5
5
 
6
6
 
7
7
 
@@ -13,7 +13,7 @@ _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
13
13
  // ../config-tools/src/utilities/file-path-utils.ts
14
14
  _chunkED3VWWR5cjs.init_cjs_shims.call(void 0, );
15
15
  function findFileName(filePath, { requireExtension, withExtension } = {}) {
16
- const result = _nullishCoalesce(_optionalChain([_chunk7TVTZIVEcjs.normalizeWindowsPath.call(void 0, filePath), 'optionalAccess', _ => _.split, 'call', _2 => _2(_optionalChain([filePath, 'optionalAccess', _3 => _3.includes, 'call', _4 => _4("\\")]) ? "\\" : "/"), 'optionalAccess', _5 => _5.pop, 'call', _6 => _6()]), () => ( ""));
16
+ const result = _nullishCoalesce(_optionalChain([_chunkK4FSKRCNcjs.normalizeWindowsPath.call(void 0, filePath), 'optionalAccess', _ => _.split, 'call', _2 => _2(_optionalChain([filePath, 'optionalAccess', _3 => _3.includes, 'call', _4 => _4("\\")]) ? "\\" : "/"), 'optionalAccess', _5 => _5.pop, 'call', _6 => _6()]), () => ( ""));
17
17
  if (requireExtension === true && !result.includes(".")) {
18
18
  return "";
19
19
  }
@@ -23,7 +23,7 @@ function findFileName(filePath, { requireExtension, withExtension } = {}) {
23
23
  return result;
24
24
  }
25
25
  function findFilePath(filePath) {
26
- const normalizedPath = _chunk7TVTZIVEcjs.normalizeWindowsPath.call(void 0, filePath);
26
+ const normalizedPath = _chunkK4FSKRCNcjs.normalizeWindowsPath.call(void 0, filePath);
27
27
  return normalizedPath.replace(
28
28
  findFileName(normalizedPath, { requireExtension: true }),
29
29
  ""
@@ -42,7 +42,7 @@ function resolvePathsConfig(options, cwd, projectRoot) {
42
42
  }
43
43
  if (options.extends) {
44
44
  const extendsPath = _path2.default.resolve(
45
- projectRoot ? _chunk7TVTZIVEcjs.joinPaths.call(void 0, cwd, projectRoot, options.extends) : _chunk7TVTZIVEcjs.joinPaths.call(void 0, cwd, options.extends)
45
+ projectRoot ? _chunkK4FSKRCNcjs.joinPaths.call(void 0, cwd, projectRoot, options.extends) : _chunkK4FSKRCNcjs.joinPaths.call(void 0, cwd, options.extends)
46
46
  );
47
47
  const extendsDir = _path2.default.dirname(extendsPath);
48
48
  const extendsConfig = _chunkED3VWWR5cjs.__require.call(void 0, extendsPath);
@@ -53,13 +53,13 @@ function resolvePathsConfig(options, cwd, projectRoot) {
53
53
  var resolvePathsPlugin = (context) => ({
54
54
  name: "storm:resolve-paths",
55
55
  setup(build) {
56
- const parentTsConfig = build.initialOptions.tsconfig ? _chunkED3VWWR5cjs.__require.call(void 0, _chunk7TVTZIVEcjs.joinPaths.call(void 0,
56
+ const parentTsConfig = build.initialOptions.tsconfig ? _chunkED3VWWR5cjs.__require.call(void 0, _chunkK4FSKRCNcjs.joinPaths.call(void 0,
57
57
  context.workspaceConfig.workspaceRoot,
58
58
  build.initialOptions.tsconfig.replace(
59
59
  context.workspaceConfig.workspaceRoot,
60
60
  ""
61
61
  )
62
- )) : _chunkED3VWWR5cjs.__require.call(void 0, _chunk7TVTZIVEcjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, "tsconfig.json"));
62
+ )) : _chunkED3VWWR5cjs.__require.call(void 0, _chunkK4FSKRCNcjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, "tsconfig.json"));
63
63
  const resolvedTsPaths = resolvePathsConfig(
64
64
  parentTsConfig,
65
65
  context.workspaceConfig.workspaceRoot,
@@ -76,7 +76,7 @@ var resolvePathsPlugin = (context) => ({
76
76
  if (resolvedPath.endsWith(".ts") || resolvedPath.endsWith(".tsx")) {
77
77
  resolvedPath = findFilePath(resolvedPath);
78
78
  }
79
- return { path: _chunk7TVTZIVEcjs.joinPaths.call(void 0, resolvedPath, "index.ts") };
79
+ return { path: _chunkK4FSKRCNcjs.joinPaths.call(void 0, resolvedPath, "index.ts") };
80
80
  });
81
81
  }
82
82
  });
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  joinPaths,
3
3
  normalizeWindowsPath
4
- } from "../chunk-VCP6KK35.js";
4
+ } from "../chunk-XSWSDE6I.js";
5
5
  import {
6
6
  __require,
7
7
  init_esm_shims
package/dist/tsup.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk7S2N7N3Dcjs = require('./chunk-7S2N7N3D.cjs');
4
- require('./chunk-7TVTZIVE.cjs');
3
+ var _chunkU5GTAVFZcjs = require('./chunk-U5GTAVFZ.cjs');
4
+ require('./chunk-K4FSKRCN.cjs');
5
5
  require('./chunk-G4GMEAHM.cjs');
6
6
  require('./chunk-ED3VWWR5.cjs');
7
7
 
8
8
 
9
- exports.executeTsup = _chunk7S2N7N3Dcjs.executeTsup;
9
+ exports.executeTsup = _chunkU5GTAVFZcjs.executeTsup;
package/dist/tsup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  executeTsup
3
- } from "./chunk-EXPFKRMQ.js";
4
- import "./chunk-VCP6KK35.js";
3
+ } from "./chunk-ET6RMS2Q.js";
4
+ import "./chunk-XSWSDE6I.js";
5
5
  import "./chunk-JSUZIFOI.js";
6
6
  import "./chunk-J7JUCKR5.js";
7
7
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/esbuild",
3
- "version": "0.51.2",
3
+ "version": "0.51.3",
4
4
  "type": "module",
5
5
  "description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -186,9 +186,9 @@
186
186
  "dependencies": {
187
187
  "@nx/devkit": "^21.4.1",
188
188
  "@nx/js": "^21.4.1",
189
- "@storm-software/build-tools": "^0.155.2",
190
- "@storm-software/config": "^1.131.2",
191
- "@storm-software/config-tools": "^1.185.2",
189
+ "@storm-software/build-tools": "^0.155.3",
190
+ "@storm-software/config": "^1.131.3",
191
+ "@storm-software/config-tools": "^1.185.3",
192
192
  "chokidar": "^4.0.3",
193
193
  "commander": "^12.1.0",
194
194
  "defu": "6.1.4",
@@ -204,5 +204,5 @@
204
204
  },
205
205
  "publishConfig": { "access": "public" },
206
206
  "sideEffects": false,
207
- "gitHead": "a65b87ef2f82c159996a3c45db514650df5d86ee"
207
+ "gitHead": "1b9f901274134d51c4200e5797348cf9587203dc"
208
208
  }