@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 +1 -1
- package/bin/esbuild.cjs +10 -1
- package/dist/build.cjs +2 -2
- package/dist/build.js +1 -1
- package/dist/{chunk-OZZLJHCV.cjs → chunk-IJPOOWVJ.cjs} +10 -1
- package/dist/{chunk-EOMX2XP7.js → chunk-QZ2LI3FG.js} +10 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +4 -4
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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
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 = (
|
|
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
|
|
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 =
|
|
21
|
+
exports.build = _chunkIJPOOWVJcjs.build; exports.cleanOutputPath = _chunkIJPOOWVJcjs.cleanOutputPath;
|
package/dist/build.js
CHANGED
|
@@ -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 =
|
|
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 =
|
|
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
|
|
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 =
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/esbuild",
|
|
3
|
-
"version": "0.31.
|
|
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.
|
|
176
|
-
"@storm-software/config": "1.110.
|
|
177
|
-
"@storm-software/config-tools": "1.160.
|
|
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",
|