@storm-software/esbuild 0.31.25 → 0.31.27

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.24-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.26-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
@@ -811,7 +811,12 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
811
811
  };
812
812
  result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
813
813
  if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
814
- result.inject = (0, import_defu.default)(result.inject, options.inject);
814
+ result.inject = options.inject.reduce((ret, inj) => {
815
+ if (inj && typeof inj === "string" && ret.includes(inj)) {
816
+ ret.push(inj);
817
+ }
818
+ return ret;
819
+ }, result.inject);
815
820
  }
816
821
  delete result.entry;
817
822
  delete result.outputPath;
@@ -904,6 +909,10 @@ async function executeEsBuild(context2) {
904
909
  ...context2.options
905
910
  };
906
911
  options.outdir = (0, import_correct_paths2.joinPaths)(context2.options.outdir, context2.options.distDir);
912
+ if (!options.inject || !Array.isArray(options.inject) || options.inject.length === 0 || // eslint-disable-next-line no-constant-binary-expression, @typescript-eslint/no-explicit-any
913
+ options.inject === {}) {
914
+ delete options.inject;
915
+ }
907
916
  delete options.env;
908
917
  delete options.name;
909
918
  delete options.assets;
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 _chunkOZZLJHCVcjs = require('./chunk-OZZLJHCV.cjs');
4
+ var _chunkIJPOOWVJcjs = require('./chunk-IJPOOWVJ.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 = _chunkOZZLJHCVcjs.build; exports.cleanOutputPath = _chunkOZZLJHCVcjs.cleanOutputPath;
21
+ exports.build = _chunkIJPOOWVJcjs.build; exports.cleanOutputPath = _chunkIJPOOWVJcjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-EOMX2XP7.js";
4
+ } from "./chunk-QZ2LI3FG.js";
5
5
  import "./chunk-QJ5VE3PG.js";
6
6
  import "./chunk-YUFST2S3.js";
7
7
  import "./chunk-T5272PC2.js";
@@ -368,7 +368,12 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
368
368
  };
369
369
  result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkAGWKKDSCcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
370
370
  if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
371
- result.inject = _defu2.default.call(void 0, result.inject, options.inject);
371
+ result.inject = options.inject.reduce((ret, inj) => {
372
+ if (inj && typeof inj === "string" && ret.includes(inj)) {
373
+ ret.push(inj);
374
+ }
375
+ return ret;
376
+ }, result.inject);
372
377
  }
373
378
  delete result.entry;
374
379
  delete result.outputPath;
@@ -461,6 +466,10 @@ async function executeEsBuild(context2) {
461
466
  ...context2.options
462
467
  };
463
468
  options.outdir = _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.outdir, context2.options.distDir);
469
+ if (!options.inject || !Array.isArray(options.inject) || options.inject.length === 0 || // eslint-disable-next-line no-constant-binary-expression, @typescript-eslint/no-explicit-any
470
+ options.inject === {}) {
471
+ delete options.inject;
472
+ }
464
473
  delete options.env;
465
474
  delete options.name;
466
475
  delete options.assets;
@@ -368,7 +368,12 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
368
368
  };
369
369
  result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
370
370
  if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
371
- result.inject = defu(result.inject, options.inject);
371
+ result.inject = options.inject.reduce((ret, inj) => {
372
+ if (inj && typeof inj === "string" && ret.includes(inj)) {
373
+ ret.push(inj);
374
+ }
375
+ return ret;
376
+ }, result.inject);
372
377
  }
373
378
  delete result.entry;
374
379
  delete result.outputPath;
@@ -461,6 +466,10 @@ async function executeEsBuild(context2) {
461
466
  ...context2.options
462
467
  };
463
468
  options.outdir = joinPaths(context2.options.outdir, context2.options.distDir);
469
+ if (!options.inject || !Array.isArray(options.inject) || options.inject.length === 0 || // eslint-disable-next-line no-constant-binary-expression, @typescript-eslint/no-explicit-any
470
+ options.inject === {}) {
471
+ delete options.inject;
472
+ }
464
473
  delete options.env;
465
474
  delete options.name;
466
475
  delete options.assets;
package/dist/index.cjs CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkOZZLJHCVcjs = require('./chunk-OZZLJHCV.cjs');
10
+ var _chunkIJPOOWVJcjs = require('./chunk-IJPOOWVJ.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 = _chunkOZZLJHCVcjs.Filter; exports.Mapper = _chunkOZZLJHCVcjs.Mapper; exports.build = _chunkOZZLJHCVcjs.build; exports.clean = _chunkATQXZL2Ncjs.clean; exports.cleanDirectories = _chunkATQXZL2Ncjs.cleanDirectories; exports.cleanOutputPath = _chunkOZZLJHCVcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkAGWKKDSCcjs.getDefaultBuildPlugins; exports.handle = _chunkOZZLJHCVcjs.handle; exports.pipe = _chunkOZZLJHCVcjs.pipe; exports.skip = _chunkOZZLJHCVcjs.skip; exports.transduce = _chunkOZZLJHCVcjs.transduce;
44
+ exports.DEFAULT_BUILD_OPTIONS = _chunkAGWKKDSCcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkIJPOOWVJcjs.Filter; exports.Mapper = _chunkIJPOOWVJcjs.Mapper; exports.build = _chunkIJPOOWVJcjs.build; exports.clean = _chunkATQXZL2Ncjs.clean; exports.cleanDirectories = _chunkATQXZL2Ncjs.cleanDirectories; exports.cleanOutputPath = _chunkIJPOOWVJcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkAGWKKDSCcjs.getDefaultBuildPlugins; exports.handle = _chunkIJPOOWVJcjs.handle; exports.pipe = _chunkIJPOOWVJcjs.pipe; exports.skip = _chunkIJPOOWVJcjs.skip; exports.transduce = _chunkIJPOOWVJcjs.transduce;
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  pipe,
8
8
  skip,
9
9
  transduce
10
- } from "./chunk-EOMX2XP7.js";
10
+ } from "./chunk-QZ2LI3FG.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.25",
3
+ "version": "0.31.27",
4
4
  "type": "module",
5
5
  "description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -172,9 +172,9 @@
172
172
  "@microsoft/api-extractor": "^7.48.1",
173
173
  "@nx/devkit": "20.6.0",
174
174
  "@nx/js": "20.6.0",
175
- "@storm-software/build-tools": "0.143.22",
176
- "@storm-software/config": "1.110.5",
177
- "@storm-software/config-tools": "1.160.5",
175
+ "@storm-software/build-tools": "0.143.23",
176
+ "@storm-software/config": "1.110.6",
177
+ "@storm-software/config-tools": "1.160.6",
178
178
  "@types/node": "^22.10.2",
179
179
  "rollup": "4.29.1",
180
180
  "spdx-exceptions": "^2.5.0",