@storm-software/esbuild 0.44.3 → 0.44.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.44.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)
24
+ [![Version](https://img.shields.io/badge/version-0.44.2-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/bin/esbuild.cjs CHANGED
@@ -10314,9 +10314,9 @@ var import_globby = require("globby");
10314
10314
  var import_build_tools = require("@storm-software/build-tools");
10315
10315
  var import_console = require("@storm-software/config-tools/logger/console");
10316
10316
  async function copyBuildAssets(context) {
10317
- if (context.result?.errors.length === 0) {
10317
+ if (!context.result?.errors.length && context.options.assets?.length) {
10318
10318
  (0, import_console.writeDebug)(
10319
- ` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`,
10319
+ ` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
10320
10320
  context.workspaceConfig
10321
10321
  );
10322
10322
  const stopwatch = (0, import_console.getStopwatch)(`${context.options.name} asset copy`);
@@ -10361,7 +10361,6 @@ var import_find_workspace_root = __toESM(require_find_workspace_root(), 1);
10361
10361
  // src/config.ts
10362
10362
  var import_build_tools2 = require("@storm-software/build-tools");
10363
10363
  var DEFAULT_BUILD_OPTIONS = {
10364
- assets: [],
10365
10364
  platform: "node",
10366
10365
  target: "node22",
10367
10366
  format: "esm",
package/dist/assets.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkCVYJDETIcjs = require('./chunk-CVYJDETI.cjs');
3
+ var _chunkSOPEJUPUcjs = require('./chunk-SOPEJUPU.cjs');
4
4
  require('./chunk-ZKU4LHIG.cjs');
5
5
  require('./chunk-2NASLF52.cjs');
6
6
  require('./chunk-UF7MZTGE.cjs');
7
7
  require('./chunk-VRHF33Y5.cjs');
8
8
 
9
9
 
10
- exports.copyBuildAssets = _chunkCVYJDETIcjs.copyBuildAssets;
10
+ exports.copyBuildAssets = _chunkSOPEJUPUcjs.copyBuildAssets;
package/dist/assets.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  copyBuildAssets
3
- } from "./chunk-NRIUSJPQ.js";
3
+ } from "./chunk-LMFNDVSP.js";
4
4
  import "./chunk-WXTPFPYQ.js";
5
5
  import "./chunk-Z5Q2GKYR.js";
6
6
  import "./chunk-AQLVPEJX.js";
package/dist/build.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkS4IHFCX6cjs = require('./chunk-S4IHFCX6.cjs');
3
+ var _chunkBHS3YC7Dcjs = require('./chunk-BHS3YC7D.cjs');
4
4
  require('./chunk-BRYAEE3A.cjs');
5
- require('./chunk-CVYJDETI.cjs');
5
+ require('./chunk-SOPEJUPU.cjs');
6
6
  require('./chunk-UJ4OTVZW.cjs');
7
- require('./chunk-NK5TQHD2.cjs');
8
- require('./chunk-X5VQN6HG.cjs');
7
+ require('./chunk-MGMG5JXD.cjs');
8
+ require('./chunk-AHXZ2Z2U.cjs');
9
9
  require('./chunk-TXMGS44F.cjs');
10
10
  require('./chunk-ZKU4LHIG.cjs');
11
11
  require('./chunk-7YZNI6SK.cjs');
@@ -14,4 +14,4 @@ require('./chunk-UF7MZTGE.cjs');
14
14
  require('./chunk-VRHF33Y5.cjs');
15
15
 
16
16
 
17
- exports.build = _chunkS4IHFCX6cjs.build;
17
+ exports.build = _chunkBHS3YC7Dcjs.build;
package/dist/build.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-C6UMMVRR.js";
3
+ } from "./chunk-EEYDPZ6W.js";
4
4
  import "./chunk-THGA5VBT.js";
5
- import "./chunk-NRIUSJPQ.js";
5
+ import "./chunk-LMFNDVSP.js";
6
6
  import "./chunk-ECTRYKRL.js";
7
- import "./chunk-Q7QIB4PW.js";
8
- import "./chunk-YSMJ2XNW.js";
7
+ import "./chunk-53PG6XSH.js";
8
+ import "./chunk-CNMKX6XS.js";
9
9
  import "./chunk-R2WT7MNW.js";
10
10
  import "./chunk-WXTPFPYQ.js";
11
11
  import "./chunk-QIE7UPFI.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS
3
- } from "./chunk-YSMJ2XNW.js";
3
+ } from "./chunk-CNMKX6XS.js";
4
4
  import {
5
5
  getEnv,
6
6
  getWorkspaceConfig
@@ -8,7 +8,6 @@ var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
8
8
  // src/config.ts
9
9
  _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
10
10
  var DEFAULT_BUILD_OPTIONS = {
11
- assets: [],
12
11
  platform: "node",
13
12
  target: "node22",
14
13
  format: "esm",
@@ -3,13 +3,13 @@
3
3
  var _chunkBRYAEE3Acjs = require('./chunk-BRYAEE3A.cjs');
4
4
 
5
5
 
6
- var _chunkCVYJDETIcjs = require('./chunk-CVYJDETI.cjs');
6
+ var _chunkSOPEJUPUcjs = require('./chunk-SOPEJUPU.cjs');
7
7
 
8
8
 
9
9
  var _chunkUJ4OTVZWcjs = require('./chunk-UJ4OTVZW.cjs');
10
10
 
11
11
 
12
- var _chunkNK5TQHD2cjs = require('./chunk-NK5TQHD2.cjs');
12
+ var _chunkMGMG5JXDcjs = require('./chunk-MGMG5JXD.cjs');
13
13
 
14
14
 
15
15
  var _chunkTXMGS44Fcjs = require('./chunk-TXMGS44F.cjs');
@@ -100,12 +100,12 @@ async function build2(options) {
100
100
  if (opts.length === 0) {
101
101
  throw new Error("No build options were provided");
102
102
  }
103
- const context = await _chunkNK5TQHD2cjs.resolveContext.call(void 0, options);
103
+ const context = await _chunkMGMG5JXDcjs.resolveContext.call(void 0, options);
104
104
  await cleanOutputPath(context);
105
105
  await Promise.all([
106
106
  dependencyCheck(context.options),
107
107
  _chunkTXMGS44Fcjs.generatePackageJson.call(void 0, context),
108
- _chunkCVYJDETIcjs.copyBuildAssets.call(void 0, context),
108
+ _chunkSOPEJUPUcjs.copyBuildAssets.call(void 0, context),
109
109
  _chunk7YZNI6SKcjs.executeTsup.call(void 0, context)
110
110
  ]);
111
111
  await reportResults(context);
@@ -8,7 +8,6 @@ import {
8
8
  // src/config.ts
9
9
  init_esm_shims();
10
10
  var DEFAULT_BUILD_OPTIONS = {
11
- assets: [],
12
11
  platform: "node",
13
12
  target: "node22",
14
13
  format: "esm",
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-THGA5VBT.js";
4
4
  import {
5
5
  copyBuildAssets
6
- } from "./chunk-NRIUSJPQ.js";
6
+ } from "./chunk-LMFNDVSP.js";
7
7
  import {
8
8
  cleanDirectories
9
9
  } from "./chunk-ECTRYKRL.js";
10
10
  import {
11
11
  resolveContext
12
- } from "./chunk-Q7QIB4PW.js";
12
+ } from "./chunk-53PG6XSH.js";
13
13
  import {
14
14
  generatePackageJson
15
15
  } from "./chunk-R2WT7MNW.js";
@@ -12,9 +12,9 @@ import {
12
12
  // src/assets.ts
13
13
  init_esm_shims();
14
14
  async function copyBuildAssets(context) {
15
- if (context.result?.errors.length === 0) {
15
+ if (!context.result?.errors.length && context.options.assets?.length) {
16
16
  writeDebug(
17
- ` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`,
17
+ ` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
18
18
  context.workspaceConfig
19
19
  );
20
20
  const stopwatch = getStopwatch(`${context.options.name} asset copy`);
@@ -1,6 +1,6 @@
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 _chunkX5VQN6HGcjs = require('./chunk-X5VQN6HG.cjs');
3
+ var _chunkAHXZ2Z2Ucjs = require('./chunk-AHXZ2Z2U.cjs');
4
4
 
5
5
 
6
6
 
@@ -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, _chunkX5VQN6HGcjs.DEFAULT_BUILD_OPTIONS);
61
+ const options = _defu2.default.call(void 0, userOptions, _chunkAHXZ2Z2Ucjs.DEFAULT_BUILD_OPTIONS);
62
62
  options.name ??= projectName;
63
63
  const packageJsonPath = _chunkUF7MZTGEcjs.joinPaths.call(void 0,
64
64
  workspaceRoot.dir,
@@ -12,9 +12,9 @@ var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
12
12
  // src/assets.ts
13
13
  _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
14
14
  async function copyBuildAssets(context) {
15
- if (_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) === 0) {
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
16
  _chunk2NASLF52cjs.writeDebug.call(void 0,
17
- ` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`,
17
+ ` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
18
18
  context.workspaceConfig
19
19
  );
20
20
  const stopwatch = _chunk2NASLF52cjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
package/dist/config.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkX5VQN6HGcjs = require('./chunk-X5VQN6HG.cjs');
3
+ var _chunkAHXZ2Z2Ucjs = require('./chunk-AHXZ2Z2U.cjs');
4
4
  require('./chunk-ZKU4LHIG.cjs');
5
5
  require('./chunk-2NASLF52.cjs');
6
6
  require('./chunk-UF7MZTGE.cjs');
7
7
  require('./chunk-VRHF33Y5.cjs');
8
8
 
9
9
 
10
- exports.DEFAULT_BUILD_OPTIONS = _chunkX5VQN6HGcjs.DEFAULT_BUILD_OPTIONS;
10
+ exports.DEFAULT_BUILD_OPTIONS = _chunkAHXZ2Z2Ucjs.DEFAULT_BUILD_OPTIONS;
package/dist/config.d.cts CHANGED
@@ -5,6 +5,6 @@ import '@storm-software/config';
5
5
  import 'esbuild';
6
6
  import 'tsup';
7
7
 
8
- declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "assets" | "format" | "platform" | "target" | "tsconfig" | "mode" | "includeSrc" | "generatePackageJson" | "keepNames" | "metafile" | "treeshake" | "splitting" | "shims" | "watch" | "bundle" | "loader" | "banner" | "distDir">>;
8
+ declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "format" | "platform" | "target" | "tsconfig" | "mode" | "includeSrc" | "generatePackageJson" | "keepNames" | "metafile" | "treeshake" | "splitting" | "shims" | "watch" | "bundle" | "loader" | "banner" | "distDir">>;
9
9
 
10
10
  export { DEFAULT_BUILD_OPTIONS };
package/dist/config.d.ts CHANGED
@@ -5,6 +5,6 @@ import '@storm-software/config';
5
5
  import 'esbuild';
6
6
  import 'tsup';
7
7
 
8
- declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "assets" | "format" | "platform" | "target" | "tsconfig" | "mode" | "includeSrc" | "generatePackageJson" | "keepNames" | "metafile" | "treeshake" | "splitting" | "shims" | "watch" | "bundle" | "loader" | "banner" | "distDir">>;
8
+ declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "format" | "platform" | "target" | "tsconfig" | "mode" | "includeSrc" | "generatePackageJson" | "keepNames" | "metafile" | "treeshake" | "splitting" | "shims" | "watch" | "bundle" | "loader" | "banner" | "distDir">>;
9
9
 
10
10
  export { DEFAULT_BUILD_OPTIONS };
package/dist/config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS
3
- } from "./chunk-YSMJ2XNW.js";
3
+ } from "./chunk-CNMKX6XS.js";
4
4
  import "./chunk-WXTPFPYQ.js";
5
5
  import "./chunk-Z5Q2GKYR.js";
6
6
  import "./chunk-AQLVPEJX.js";
package/dist/context.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkNK5TQHD2cjs = require('./chunk-NK5TQHD2.cjs');
4
- require('./chunk-X5VQN6HG.cjs');
3
+ var _chunkMGMG5JXDcjs = require('./chunk-MGMG5JXD.cjs');
4
+ require('./chunk-AHXZ2Z2U.cjs');
5
5
  require('./chunk-ZKU4LHIG.cjs');
6
6
  require('./chunk-2NASLF52.cjs');
7
7
  require('./chunk-UF7MZTGE.cjs');
8
8
  require('./chunk-VRHF33Y5.cjs');
9
9
 
10
10
 
11
- exports.resolveContext = _chunkNK5TQHD2cjs.resolveContext;
11
+ exports.resolveContext = _chunkMGMG5JXDcjs.resolveContext;
package/dist/context.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveContext
3
- } from "./chunk-Q7QIB4PW.js";
4
- import "./chunk-YSMJ2XNW.js";
3
+ } from "./chunk-53PG6XSH.js";
4
+ import "./chunk-CNMKX6XS.js";
5
5
  import "./chunk-WXTPFPYQ.js";
6
6
  import "./chunk-Z5Q2GKYR.js";
7
7
  import "./chunk-AQLVPEJX.js";
package/dist/index.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-5OLNQTRT.cjs');
2
2
 
3
3
 
4
- var _chunkS4IHFCX6cjs = require('./chunk-S4IHFCX6.cjs');
4
+ var _chunkBHS3YC7Dcjs = require('./chunk-BHS3YC7D.cjs');
5
5
  require('./chunk-BRYAEE3A.cjs');
6
- require('./chunk-CVYJDETI.cjs');
6
+ require('./chunk-SOPEJUPU.cjs');
7
7
  require('./chunk-UJ4OTVZW.cjs');
8
- require('./chunk-NK5TQHD2.cjs');
9
- require('./chunk-X5VQN6HG.cjs');
8
+ require('./chunk-MGMG5JXD.cjs');
9
+ require('./chunk-AHXZ2Z2U.cjs');
10
10
  require('./chunk-TXMGS44F.cjs');
11
11
  require('./chunk-ZKU4LHIG.cjs');
12
12
  require('./chunk-7YZNI6SK.cjs');
@@ -20,4 +20,4 @@ var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
20
20
  _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
21
21
 
22
22
 
23
- exports.build = _chunkS4IHFCX6cjs.build;
23
+ exports.build = _chunkBHS3YC7Dcjs.build;
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import "./chunk-F4PL6OZA.js";
2
2
  import {
3
3
  build
4
- } from "./chunk-C6UMMVRR.js";
4
+ } from "./chunk-EEYDPZ6W.js";
5
5
  import "./chunk-THGA5VBT.js";
6
- import "./chunk-NRIUSJPQ.js";
6
+ import "./chunk-LMFNDVSP.js";
7
7
  import "./chunk-ECTRYKRL.js";
8
- import "./chunk-Q7QIB4PW.js";
9
- import "./chunk-YSMJ2XNW.js";
8
+ import "./chunk-53PG6XSH.js";
9
+ import "./chunk-CNMKX6XS.js";
10
10
  import "./chunk-R2WT7MNW.js";
11
11
  import "./chunk-WXTPFPYQ.js";
12
12
  import "./chunk-QIE7UPFI.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/esbuild",
3
- "version": "0.44.3",
3
+ "version": "0.44.4",
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.0.3",
188
188
  "@nx/js": "21.0.3",
189
- "@storm-software/build-tools": "^0.150.14",
190
- "@storm-software/config": "^1.121.10",
191
- "@storm-software/config-tools": "^1.172.3",
189
+ "@storm-software/build-tools": "^0.150.15",
190
+ "@storm-software/config": "^1.121.11",
191
+ "@storm-software/config-tools": "^1.172.4",
192
192
  "chokidar": "^4.0.3",
193
193
  "commander": "^12.1.0",
194
194
  "defu": "6.1.4",