@storm-software/esbuild 0.31.20 → 0.31.22

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.31.19-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.31.21-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
@@ -804,12 +804,16 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
804
804
  };
805
805
  }, {})
806
806
  },
807
- inject: (0, import_defu.default)([
807
+ inject: [
808
808
  options.format === "cjs" && options.injectShims ? (0, import_correct_paths2.joinPaths)(__dirname, "../assets/cjs_shims.js") : "",
809
809
  options.format === "esm" && options.injectShims && options.platform === "node" ? (0, import_correct_paths2.joinPaths)(__dirname, "../assets/esm_shims.js") : ""
810
- ], options.inject ?? []).filter(Boolean)
810
+ ]
811
811
  };
812
812
  result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
813
+ if (options.inject) {
814
+ options.inject = (0, import_defu.default)(result.inject, options.inject);
815
+ }
816
+ options.inject?.filter(Boolean);
813
817
  delete result.entry;
814
818
  delete result.outputPath;
815
819
  stopwatch();
package/dist/build.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkKWCU6MTGcjs = require('./chunk-KWCU6MTG.cjs');
4
+ var _chunkHLLCUIVOcjs = require('./chunk-HLLCUIVO.cjs');
5
5
  require('./chunk-ATQXZL2N.cjs');
6
6
  require('./chunk-AGWKKDSC.cjs');
7
7
  require('./chunk-S6M44SSZ.cjs');
@@ -18,4 +18,4 @@ require('./chunk-BGYQAVKQ.cjs');
18
18
 
19
19
 
20
20
 
21
- exports.build = _chunkKWCU6MTGcjs.build; exports.cleanOutputPath = _chunkKWCU6MTGcjs.cleanOutputPath;
21
+ exports.build = _chunkHLLCUIVOcjs.build; exports.cleanOutputPath = _chunkHLLCUIVOcjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-GQSWMSGM.js";
4
+ } from "./chunk-WVF6W7Q2.js";
5
5
  import "./chunk-QJ5VE3PG.js";
6
6
  import "./chunk-YUFST2S3.js";
7
7
  import "./chunk-T5272PC2.js";
@@ -361,12 +361,16 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
361
361
  };
362
362
  }, {})
363
363
  },
364
- inject: _defu2.default.call(void 0, [
364
+ inject: [
365
365
  options.format === "cjs" && options.injectShims ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
366
366
  options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : ""
367
- ], _nullishCoalesce(options.inject, () => ( []))).filter(Boolean)
367
+ ]
368
368
  };
369
369
  result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkAGWKKDSCcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
370
+ if (options.inject) {
371
+ options.inject = _defu2.default.call(void 0, result.inject, options.inject);
372
+ }
373
+ _optionalChain([options, 'access', _16 => _16.inject, 'optionalAccess', _17 => _17.filter, 'call', _18 => _18(Boolean)]);
370
374
  delete result.entry;
371
375
  delete result.outputPath;
372
376
  stopwatch();
@@ -491,7 +495,7 @@ ${_chunkIQNPH4CNcjs.formatLogMessage.call(void 0, options)}`, context2.options.c
491
495
  }
492
496
  _chunkBGYQAVKQcjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
493
497
  async function copyBuildAssets(context2) {
494
- if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
498
+ if (_optionalChain([context2, 'access', _19 => _19.result, 'optionalAccess', _20 => _20.errors, 'access', _21 => _21.length]) === 0) {
495
499
  _chunkIQNPH4CNcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
496
500
  const stopwatch = _chunkIQNPH4CNcjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
497
501
  await _chunkAGWKKDSCcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
@@ -501,7 +505,7 @@ async function copyBuildAssets(context2) {
501
505
  }
502
506
  _chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
503
507
  async function reportResults(context2) {
504
- if (_optionalChain([context2, 'access', _19 => _19.result, 'optionalAccess', _20 => _20.errors, 'access', _21 => _21.length]) === 0) {
508
+ if (_optionalChain([context2, 'access', _22 => _22.result, 'optionalAccess', _23 => _23.errors, 'access', _24 => _24.length]) === 0) {
505
509
  if (context2.result.warnings.length > 0) {
506
510
  _chunkIQNPH4CNcjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
507
511
  }
@@ -361,12 +361,16 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
361
361
  };
362
362
  }, {})
363
363
  },
364
- inject: defu([
364
+ inject: [
365
365
  options.format === "cjs" && options.injectShims ? joinPaths(__dirname, "../assets/cjs_shims.js") : "",
366
366
  options.format === "esm" && options.injectShims && options.platform === "node" ? joinPaths(__dirname, "../assets/esm_shims.js") : ""
367
- ], options.inject ?? []).filter(Boolean)
367
+ ]
368
368
  };
369
369
  result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
370
+ if (options.inject) {
371
+ options.inject = defu(result.inject, options.inject);
372
+ }
373
+ options.inject?.filter(Boolean);
370
374
  delete result.entry;
371
375
  delete result.outputPath;
372
376
  stopwatch();
package/dist/index.cjs CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkKWCU6MTGcjs = require('./chunk-KWCU6MTG.cjs');
10
+ var _chunkHLLCUIVOcjs = require('./chunk-HLLCUIVO.cjs');
11
11
 
12
12
 
13
13
 
@@ -41,4 +41,4 @@ require('./chunk-BGYQAVKQ.cjs');
41
41
 
42
42
 
43
43
 
44
- exports.DEFAULT_BUILD_OPTIONS = _chunkAGWKKDSCcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkKWCU6MTGcjs.Filter; exports.Mapper = _chunkKWCU6MTGcjs.Mapper; exports.build = _chunkKWCU6MTGcjs.build; exports.clean = _chunkATQXZL2Ncjs.clean; exports.cleanDirectories = _chunkATQXZL2Ncjs.cleanDirectories; exports.cleanOutputPath = _chunkKWCU6MTGcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkAGWKKDSCcjs.getDefaultBuildPlugins; exports.handle = _chunkKWCU6MTGcjs.handle; exports.pipe = _chunkKWCU6MTGcjs.pipe; exports.skip = _chunkKWCU6MTGcjs.skip; exports.transduce = _chunkKWCU6MTGcjs.transduce;
44
+ exports.DEFAULT_BUILD_OPTIONS = _chunkAGWKKDSCcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkHLLCUIVOcjs.Filter; exports.Mapper = _chunkHLLCUIVOcjs.Mapper; exports.build = _chunkHLLCUIVOcjs.build; exports.clean = _chunkATQXZL2Ncjs.clean; exports.cleanDirectories = _chunkATQXZL2Ncjs.cleanDirectories; exports.cleanOutputPath = _chunkHLLCUIVOcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkAGWKKDSCcjs.getDefaultBuildPlugins; exports.handle = _chunkHLLCUIVOcjs.handle; exports.pipe = _chunkHLLCUIVOcjs.pipe; exports.skip = _chunkHLLCUIVOcjs.skip; exports.transduce = _chunkHLLCUIVOcjs.transduce;
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  pipe,
8
8
  skip,
9
9
  transduce
10
- } from "./chunk-GQSWMSGM.js";
10
+ } from "./chunk-WVF6W7Q2.js";
11
11
  import {
12
12
  clean,
13
13
  cleanDirectories
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/esbuild",
3
- "version": "0.31.20",
3
+ "version": "0.31.22",
4
4
  "type": "module",
5
5
  "description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {