@storm-software/esbuild 0.44.7 → 0.45.0

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.6-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.7-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
@@ -10364,7 +10364,6 @@ var DEFAULT_BUILD_OPTIONS = {
10364
10364
  platform: "node",
10365
10365
  target: "node22",
10366
10366
  format: "esm",
10367
- tsconfig: "tsconfig.json",
10368
10367
  mode: "production",
10369
10368
  generatePackageJson: true,
10370
10369
  includeSrc: false,
@@ -10448,8 +10447,8 @@ async function resolveContext(userOptions) {
10448
10447
  const env = (0, import_build_tools3.getEnv)("esbuild", options);
10449
10448
  const define = (0, import_defu.default)(options.define ?? {}, env ?? {});
10450
10449
  const resolvedOptions = {
10451
- tsconfig: (0, import_correct_paths.joinPaths)(workspaceRoot.dir, projectRoot, "tsconfig.json"),
10452
10450
  ...options,
10451
+ tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : (0, import_correct_paths.joinPaths)(workspaceRoot.dir, projectRoot, "tsconfig.json"),
10453
10452
  metafile: userOptions.mode === "development",
10454
10453
  clean: false,
10455
10454
  env,
package/dist/build.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBHS3YC7Dcjs = require('./chunk-BHS3YC7D.cjs');
3
+ var _chunkESE3Q5J4cjs = require('./chunk-ESE3Q5J4.cjs');
4
4
  require('./chunk-BRYAEE3A.cjs');
5
5
  require('./chunk-SOPEJUPU.cjs');
6
6
  require('./chunk-UJ4OTVZW.cjs');
7
- require('./chunk-MGMG5JXD.cjs');
8
- require('./chunk-AHXZ2Z2U.cjs');
7
+ require('./chunk-3EKFW7Z7.cjs');
8
+ require('./chunk-XQK2G64D.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 = _chunkBHS3YC7Dcjs.build;
17
+ exports.build = _chunkESE3Q5J4cjs.build;
package/dist/build.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-EEYDPZ6W.js";
3
+ } from "./chunk-A3PTDBM4.js";
4
4
  import "./chunk-THGA5VBT.js";
5
5
  import "./chunk-LMFNDVSP.js";
6
6
  import "./chunk-ECTRYKRL.js";
7
- import "./chunk-53PG6XSH.js";
8
- import "./chunk-CNMKX6XS.js";
7
+ import "./chunk-CS5OVZIS.js";
8
+ import "./chunk-ZKOU7C3U.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
  "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 _chunkAHXZ2Z2Ucjs = require('./chunk-AHXZ2Z2U.cjs');
3
+ var _chunkXQK2G64Dcjs = require('./chunk-XQK2G64D.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, _chunkAHXZ2Z2Ucjs.DEFAULT_BUILD_OPTIONS);
61
+ const options = _defu2.default.call(void 0, userOptions, _chunkXQK2G64Dcjs.DEFAULT_BUILD_OPTIONS);
62
62
  options.name ??= projectName;
63
63
  const packageJsonPath = _chunkUF7MZTGEcjs.joinPaths.call(void 0,
64
64
  workspaceRoot.dir,
@@ -71,8 +71,8 @@ async function resolveContext(userOptions) {
71
71
  const env = _chunkZKU4LHIGcjs.getEnv.call(void 0, "esbuild", options);
72
72
  const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
73
73
  const resolvedOptions = {
74
- tsconfig: _chunkUF7MZTGEcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
75
74
  ...options,
75
+ tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkUF7MZTGEcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
76
76
  metafile: userOptions.mode === "development",
77
77
  clean: false,
78
78
  env,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-ECTRYKRL.js";
10
10
  import {
11
11
  resolveContext
12
- } from "./chunk-53PG6XSH.js";
12
+ } from "./chunk-CS5OVZIS.js";
13
13
  import {
14
14
  generatePackageJson
15
15
  } from "./chunk-R2WT7MNW.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS
3
- } from "./chunk-CNMKX6XS.js";
3
+ } from "./chunk-ZKOU7C3U.js";
4
4
  import {
5
5
  getEnv,
6
6
  getWorkspaceConfig
@@ -71,8 +71,8 @@ async function resolveContext(userOptions) {
71
71
  const env = getEnv("esbuild", options);
72
72
  const define = defu(options.define ?? {}, env ?? {});
73
73
  const resolvedOptions = {
74
- tsconfig: joinPaths(workspaceRoot.dir, projectRoot, "tsconfig.json"),
75
74
  ...options,
75
+ tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths(workspaceRoot.dir, projectRoot, "tsconfig.json"),
76
76
  metafile: userOptions.mode === "development",
77
77
  clean: false,
78
78
  env,
@@ -9,7 +9,7 @@ var _chunkSOPEJUPUcjs = require('./chunk-SOPEJUPU.cjs');
9
9
  var _chunkUJ4OTVZWcjs = require('./chunk-UJ4OTVZW.cjs');
10
10
 
11
11
 
12
- var _chunkMGMG5JXDcjs = require('./chunk-MGMG5JXD.cjs');
12
+ var _chunk3EKFW7Z7cjs = require('./chunk-3EKFW7Z7.cjs');
13
13
 
14
14
 
15
15
  var _chunkTXMGS44Fcjs = require('./chunk-TXMGS44F.cjs');
@@ -100,7 +100,7 @@ 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 _chunkMGMG5JXDcjs.resolveContext.call(void 0, options);
103
+ const context = await _chunk3EKFW7Z7cjs.resolveContext.call(void 0, options);
104
104
  await cleanOutputPath(context);
105
105
  await Promise.all([
106
106
  dependencyCheck(context.options),
@@ -11,7 +11,6 @@ var DEFAULT_BUILD_OPTIONS = {
11
11
  platform: "node",
12
12
  target: "node22",
13
13
  format: "esm",
14
- tsconfig: "tsconfig.json",
15
14
  mode: "production",
16
15
  generatePackageJson: true,
17
16
  includeSrc: false,
@@ -11,7 +11,6 @@ var DEFAULT_BUILD_OPTIONS = {
11
11
  platform: "node",
12
12
  target: "node22",
13
13
  format: "esm",
14
- tsconfig: "tsconfig.json",
15
14
  mode: "production",
16
15
  generatePackageJson: true,
17
16
  includeSrc: false,
package/dist/config.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkAHXZ2Z2Ucjs = require('./chunk-AHXZ2Z2U.cjs');
3
+ var _chunkXQK2G64Dcjs = require('./chunk-XQK2G64D.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 = _chunkAHXZ2Z2Ucjs.DEFAULT_BUILD_OPTIONS;
10
+ exports.DEFAULT_BUILD_OPTIONS = _chunkXQK2G64Dcjs.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, "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" | "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, "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" | "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-CNMKX6XS.js";
3
+ } from "./chunk-ZKOU7C3U.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 _chunkMGMG5JXDcjs = require('./chunk-MGMG5JXD.cjs');
4
- require('./chunk-AHXZ2Z2U.cjs');
3
+ var _chunk3EKFW7Z7cjs = require('./chunk-3EKFW7Z7.cjs');
4
+ require('./chunk-XQK2G64D.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 = _chunkMGMG5JXDcjs.resolveContext;
11
+ exports.resolveContext = _chunk3EKFW7Z7cjs.resolveContext;
package/dist/context.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveContext
3
- } from "./chunk-53PG6XSH.js";
4
- import "./chunk-CNMKX6XS.js";
3
+ } from "./chunk-CS5OVZIS.js";
4
+ import "./chunk-ZKOU7C3U.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 _chunkBHS3YC7Dcjs = require('./chunk-BHS3YC7D.cjs');
4
+ var _chunkESE3Q5J4cjs = require('./chunk-ESE3Q5J4.cjs');
5
5
  require('./chunk-BRYAEE3A.cjs');
6
6
  require('./chunk-SOPEJUPU.cjs');
7
7
  require('./chunk-UJ4OTVZW.cjs');
8
- require('./chunk-MGMG5JXD.cjs');
9
- require('./chunk-AHXZ2Z2U.cjs');
8
+ require('./chunk-3EKFW7Z7.cjs');
9
+ require('./chunk-XQK2G64D.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 = _chunkBHS3YC7Dcjs.build;
23
+ exports.build = _chunkESE3Q5J4cjs.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-EEYDPZ6W.js";
4
+ } from "./chunk-A3PTDBM4.js";
5
5
  import "./chunk-THGA5VBT.js";
6
6
  import "./chunk-LMFNDVSP.js";
7
7
  import "./chunk-ECTRYKRL.js";
8
- import "./chunk-53PG6XSH.js";
9
- import "./chunk-CNMKX6XS.js";
8
+ import "./chunk-CS5OVZIS.js";
9
+ import "./chunk-ZKOU7C3U.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.7",
3
+ "version": "0.45.0",
4
4
  "type": "module",
5
5
  "description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -186,13 +186,13 @@
186
186
  "dependencies": {
187
187
  "@nx/devkit": "21.0.3",
188
188
  "@nx/js": "21.0.3",
189
- "@storm-software/build-tools": "^0.150.17",
190
- "@storm-software/config": "^1.121.13",
191
- "@storm-software/config-tools": "^1.172.7",
189
+ "@storm-software/build-tools": "^0.151.0",
190
+ "@storm-software/config": "^1.121.14",
191
+ "@storm-software/config-tools": "^1.172.9",
192
192
  "chokidar": "^4.0.3",
193
193
  "commander": "^12.1.0",
194
194
  "defu": "6.1.4",
195
- "es-toolkit": "^1.39.0",
195
+ "es-toolkit": "^1.39.1",
196
196
  "esbuild": "^0.25.0",
197
197
  "globby": "^14.1.0",
198
198
  "tsup": "8.4.0"