@storm-software/esbuild 0.31.23 → 0.31.25
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 +5 -6
- package/dist/build.cjs +2 -2
- package/dist/build.js +1 -1
- package/dist/{chunk-54W5PGNQ.js → chunk-EOMX2XP7.js} +5 -6
- package/dist/{chunk-KROJ3NC5.cjs → chunk-OZZLJHCV.cjs} +7 -8
- 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
|
@@ -805,15 +805,14 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
805
805
|
}, {})
|
|
806
806
|
},
|
|
807
807
|
inject: [
|
|
808
|
-
options.format === "cjs" && options.injectShims ? (0, import_correct_paths2.joinPaths)(__dirname, "../assets/cjs_shims.js") :
|
|
809
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ? (0, import_correct_paths2.joinPaths)(__dirname, "../assets/esm_shims.js") :
|
|
810
|
-
]
|
|
808
|
+
options.format === "cjs" && options.injectShims ? (0, import_correct_paths2.joinPaths)(__dirname, "../assets/cjs_shims.js") : void 0,
|
|
809
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? (0, import_correct_paths2.joinPaths)(__dirname, "../assets/esm_shims.js") : void 0
|
|
810
|
+
].filter(Boolean)
|
|
811
811
|
};
|
|
812
812
|
result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
|
|
813
|
-
if (options.inject) {
|
|
814
|
-
|
|
813
|
+
if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
|
|
814
|
+
result.inject = (0, import_defu.default)(result.inject, options.inject);
|
|
815
815
|
}
|
|
816
|
-
options.inject?.filter(Boolean);
|
|
817
816
|
delete result.entry;
|
|
818
817
|
delete result.outputPath;
|
|
819
818
|
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
|
|
4
|
+
var _chunkOZZLJHCVcjs = require('./chunk-OZZLJHCV.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 = _chunkOZZLJHCVcjs.build; exports.cleanOutputPath = _chunkOZZLJHCVcjs.cleanOutputPath;
|
package/dist/build.js
CHANGED
|
@@ -362,15 +362,14 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
362
362
|
}, {})
|
|
363
363
|
},
|
|
364
364
|
inject: [
|
|
365
|
-
options.format === "cjs" && options.injectShims ? joinPaths(__dirname, "../assets/cjs_shims.js") :
|
|
366
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ? joinPaths(__dirname, "../assets/esm_shims.js") :
|
|
367
|
-
]
|
|
365
|
+
options.format === "cjs" && options.injectShims ? joinPaths(__dirname, "../assets/cjs_shims.js") : void 0,
|
|
366
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? joinPaths(__dirname, "../assets/esm_shims.js") : void 0
|
|
367
|
+
].filter(Boolean)
|
|
368
368
|
};
|
|
369
369
|
result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
|
|
370
|
-
if (options.inject) {
|
|
371
|
-
|
|
370
|
+
if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
|
|
371
|
+
result.inject = defu(result.inject, options.inject);
|
|
372
372
|
}
|
|
373
|
-
options.inject?.filter(Boolean);
|
|
374
373
|
delete result.entry;
|
|
375
374
|
delete result.outputPath;
|
|
376
375
|
stopwatch();
|
|
@@ -362,15 +362,14 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
362
362
|
}, {})
|
|
363
363
|
},
|
|
364
364
|
inject: [
|
|
365
|
-
options.format === "cjs" && options.injectShims ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") :
|
|
366
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") :
|
|
367
|
-
]
|
|
365
|
+
options.format === "cjs" && options.injectShims ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : void 0,
|
|
366
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : void 0
|
|
367
|
+
].filter(Boolean)
|
|
368
368
|
};
|
|
369
369
|
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkAGWKKDSCcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
|
|
370
|
-
if (options.inject) {
|
|
371
|
-
|
|
370
|
+
if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
|
|
371
|
+
result.inject = _defu2.default.call(void 0, result.inject, options.inject);
|
|
372
372
|
}
|
|
373
|
-
_optionalChain([options, 'access', _16 => _16.inject, 'optionalAccess', _17 => _17.filter, 'call', _18 => _18(Boolean)]);
|
|
374
373
|
delete result.entry;
|
|
375
374
|
delete result.outputPath;
|
|
376
375
|
stopwatch();
|
|
@@ -496,7 +495,7 @@ ${_chunkIQNPH4CNcjs.formatLogMessage.call(void 0, options)}`, context2.options.c
|
|
|
496
495
|
}
|
|
497
496
|
_chunkBGYQAVKQcjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
498
497
|
async function copyBuildAssets(context2) {
|
|
499
|
-
if (_optionalChain([context2, 'access',
|
|
498
|
+
if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
|
|
500
499
|
_chunkIQNPH4CNcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
501
500
|
const stopwatch = _chunkIQNPH4CNcjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
502
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);
|
|
@@ -506,7 +505,7 @@ async function copyBuildAssets(context2) {
|
|
|
506
505
|
}
|
|
507
506
|
_chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
508
507
|
async function reportResults(context2) {
|
|
509
|
-
if (_optionalChain([context2, 'access',
|
|
508
|
+
if (_optionalChain([context2, 'access', _19 => _19.result, 'optionalAccess', _20 => _20.errors, 'access', _21 => _21.length]) === 0) {
|
|
510
509
|
if (context2.result.warnings.length > 0) {
|
|
511
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);
|
|
512
511
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkOZZLJHCVcjs = require('./chunk-OZZLJHCV.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 = _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;
|
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.25",
|
|
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.22",
|
|
176
|
+
"@storm-software/config": "1.110.5",
|
|
177
|
+
"@storm-software/config-tools": "1.160.5",
|
|
178
178
|
"@types/node": "^22.10.2",
|
|
179
179
|
"rollup": "4.29.1",
|
|
180
180
|
"spdx-exceptions": "^2.5.0",
|