@storm-software/esbuild 0.35.8 → 0.35.9

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.35.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)
24
+ [![Version](https://img.shields.io/badge/version-0.35.8-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
@@ -12038,7 +12038,7 @@ var DEFAULT_BUILD_OPTIONS = {
12038
12038
  // src/plugins/resolve-paths.ts
12039
12039
  var import_correct_paths = require("@storm-software/config-tools/utilities/correct-paths");
12040
12040
  var import_node_path = __toESM(require("path"), 1);
12041
- function resolvePathsConfig(options, cwd) {
12041
+ function resolvePathsConfig(options, cwd, projectRoot) {
12042
12042
  if (options?.compilerOptions?.paths) {
12043
12043
  const paths = Object.entries(options.compilerOptions.paths);
12044
12044
  const resolvedPaths = paths.map(([key, paths2]) => {
@@ -12050,7 +12050,7 @@ function resolvePathsConfig(options, cwd) {
12050
12050
  return Object.fromEntries(resolvedPaths);
12051
12051
  }
12052
12052
  if (options.extends) {
12053
- const extendsPath = import_node_path.default.resolve(cwd, options.extends);
12053
+ const extendsPath = import_node_path.default.resolve(projectRoot ? (0, import_correct_paths.joinPaths)(cwd, projectRoot, options.extends) : (0, import_correct_paths.joinPaths)(cwd, options.extends));
12054
12054
  const extendsDir = import_node_path.default.dirname(extendsPath);
12055
12055
  const extendsConfig = require(extendsPath);
12056
12056
  return resolvePathsConfig(extendsConfig, extendsDir);
@@ -12062,7 +12062,7 @@ var resolvePathsPlugin = /* @__PURE__ */ __name((context) => ({
12062
12062
  name: "storm:resolve-paths",
12063
12063
  setup(build3) {
12064
12064
  const parentTsConfig = build3.initialOptions.tsconfig ? require((0, import_correct_paths.joinPaths)(context.workspaceConfig.workspaceRoot, build3.initialOptions.tsconfig.replace(context.workspaceConfig.workspaceRoot, ""))) : require((0, import_correct_paths.joinPaths)(context.workspaceConfig.workspaceRoot, "tsconfig.json"));
12065
- const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot);
12065
+ const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot, context.options.projectRoot);
12066
12066
  const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
12067
12067
  build3.onResolve({
12068
12068
  filter: packagesRegex
package/dist/build.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkG277DR3Ncjs = require('./chunk-G277DR3N.cjs');
3
+ var _chunkJS5GZ7ZEcjs = require('./chunk-JS5GZ7ZE.cjs');
4
4
  require('./chunk-N6KCNJOR.cjs');
5
5
  require('./chunk-KK2BGIRB.cjs');
6
6
  require('./chunk-IV2WE7RO.cjs');
7
- require('./chunk-VEN2NPFW.cjs');
8
- require('./chunk-E6GNR4XY.cjs');
7
+ require('./chunk-JZBM4QKF.cjs');
8
+ require('./chunk-YXJYZG6O.cjs');
9
9
  require('./chunk-ZDMKNQUW.cjs');
10
10
  require('./chunk-CY4KF2US.cjs');
11
11
  require('./chunk-B4NWTB7S.cjs');
@@ -15,4 +15,4 @@ require('./chunk-Q77NJNNL.cjs');
15
15
  require('./chunk-TKNLZW4V.cjs');
16
16
 
17
17
 
18
- exports.build = _chunkG277DR3Ncjs.build;
18
+ exports.build = _chunkJS5GZ7ZEcjs.build;
package/dist/build.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-A66EGME2.js";
3
+ } from "./chunk-DU5R4RJA.js";
4
4
  import "./chunk-GWGBQKRY.js";
5
5
  import "./chunk-CA7VVNV2.js";
6
6
  import "./chunk-GKAHDFNO.js";
7
- import "./chunk-GCKE6M7A.js";
8
- import "./chunk-SPVR557L.js";
7
+ import "./chunk-JHQYSHQ5.js";
8
+ import "./chunk-ZILTNBKJ.js";
9
9
  import "./chunk-JNDYTIRD.js";
10
10
  import "./chunk-EBZ4R3MW.js";
11
11
  import "./chunk-SAK5QFCE.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-GKAHDFNO.js";
10
10
  import {
11
11
  resolveContext
12
- } from "./chunk-GCKE6M7A.js";
12
+ } from "./chunk-JHQYSHQ5.js";
13
13
  import {
14
14
  generatePackageJson
15
15
  } from "./chunk-EBZ4R3MW.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolvePathsPlugin
3
- } from "./chunk-SPVR557L.js";
3
+ } from "./chunk-ZILTNBKJ.js";
4
4
  import {
5
5
  DEFAULT_BUILD_OPTIONS
6
6
  } from "./chunk-JNDYTIRD.js";
@@ -9,7 +9,7 @@ var _chunkKK2BGIRBcjs = require('./chunk-KK2BGIRB.cjs');
9
9
  var _chunkIV2WE7ROcjs = require('./chunk-IV2WE7RO.cjs');
10
10
 
11
11
 
12
- var _chunkVEN2NPFWcjs = require('./chunk-VEN2NPFW.cjs');
12
+ var _chunkJZBM4QKFcjs = require('./chunk-JZBM4QKF.cjs');
13
13
 
14
14
 
15
15
  var _chunkCY4KF2UScjs = require('./chunk-CY4KF2US.cjs');
@@ -95,7 +95,7 @@ async function build2(options) {
95
95
  if (opts.length === 0) {
96
96
  throw new Error("No build options were provided");
97
97
  }
98
- const context = await _chunkVEN2NPFWcjs.resolveContext.call(void 0, options);
98
+ const context = await _chunkJZBM4QKFcjs.resolveContext.call(void 0, options);
99
99
  await cleanOutputPath(context);
100
100
  await Promise.all([
101
101
  dependencyCheck(context.options),
@@ -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 _chunkE6GNR4XYcjs = require('./chunk-E6GNR4XY.cjs');
3
+ var _chunkYXJYZG6Ocjs = require('./chunk-YXJYZG6O.cjs');
4
4
 
5
5
 
6
6
  var _chunkZDMKNQUWcjs = require('./chunk-ZDMKNQUW.cjs');
@@ -92,7 +92,7 @@ async function resolveContext(userOptions) {
92
92
  minify: resolvedOptions.minify || resolvedOptions.mode === "production"
93
93
  };
94
94
  context.options.esbuildPlugins = [
95
- _chunkE6GNR4XYcjs.resolvePathsPlugin.call(void 0, context),
95
+ _chunkYXJYZG6Ocjs.resolvePathsPlugin.call(void 0, context),
96
96
  ..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))
97
97
  ];
98
98
  return context;
@@ -10,7 +10,7 @@ var _chunkTKNLZW4Vcjs = require('./chunk-TKNLZW4V.cjs');
10
10
  // src/plugins/resolve-paths.ts
11
11
  _chunkTKNLZW4Vcjs.init_cjs_shims.call(void 0, );
12
12
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
13
- function resolvePathsConfig(options, cwd) {
13
+ function resolvePathsConfig(options, cwd, projectRoot) {
14
14
  if (_optionalChain([options, 'optionalAccess', _ => _.compilerOptions, 'optionalAccess', _2 => _2.paths])) {
15
15
  const paths = Object.entries(options.compilerOptions.paths);
16
16
  const resolvedPaths = paths.map(([key, paths2]) => {
@@ -22,7 +22,7 @@ function resolvePathsConfig(options, cwd) {
22
22
  return Object.fromEntries(resolvedPaths);
23
23
  }
24
24
  if (options.extends) {
25
- const extendsPath = _path2.default.resolve(cwd, options.extends);
25
+ const extendsPath = _path2.default.resolve(projectRoot ? _chunkQ77NJNNLcjs.joinPaths.call(void 0, cwd, projectRoot, options.extends) : _chunkQ77NJNNLcjs.joinPaths.call(void 0, cwd, options.extends));
26
26
  const extendsDir = _path2.default.dirname(extendsPath);
27
27
  const extendsConfig = _chunkTKNLZW4Vcjs.__require.call(void 0, extendsPath);
28
28
  return resolvePathsConfig(extendsConfig, extendsDir);
@@ -34,7 +34,7 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunkTKNLZW4Vcjs.__name.call(void 0, (
34
34
  name: "storm:resolve-paths",
35
35
  setup(build) {
36
36
  const parentTsConfig = build.initialOptions.tsconfig ? _chunkTKNLZW4Vcjs.__require.call(void 0, _chunkQ77NJNNLcjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, build.initialOptions.tsconfig.replace(context.workspaceConfig.workspaceRoot, ""))) : _chunkTKNLZW4Vcjs.__require.call(void 0, _chunkQ77NJNNLcjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, "tsconfig.json"));
37
- const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot);
37
+ const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot, context.options.projectRoot);
38
38
  const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
39
39
  build.onResolve({
40
40
  filter: packagesRegex
@@ -10,7 +10,7 @@ import {
10
10
  // src/plugins/resolve-paths.ts
11
11
  init_esm_shims();
12
12
  import path from "node:path";
13
- function resolvePathsConfig(options, cwd) {
13
+ function resolvePathsConfig(options, cwd, projectRoot) {
14
14
  if (options?.compilerOptions?.paths) {
15
15
  const paths = Object.entries(options.compilerOptions.paths);
16
16
  const resolvedPaths = paths.map(([key, paths2]) => {
@@ -22,7 +22,7 @@ function resolvePathsConfig(options, cwd) {
22
22
  return Object.fromEntries(resolvedPaths);
23
23
  }
24
24
  if (options.extends) {
25
- const extendsPath = path.resolve(cwd, options.extends);
25
+ const extendsPath = path.resolve(projectRoot ? joinPaths(cwd, projectRoot, options.extends) : joinPaths(cwd, options.extends));
26
26
  const extendsDir = path.dirname(extendsPath);
27
27
  const extendsConfig = __require(extendsPath);
28
28
  return resolvePathsConfig(extendsConfig, extendsDir);
@@ -34,7 +34,7 @@ var resolvePathsPlugin = /* @__PURE__ */ __name((context) => ({
34
34
  name: "storm:resolve-paths",
35
35
  setup(build) {
36
36
  const parentTsConfig = build.initialOptions.tsconfig ? __require(joinPaths(context.workspaceConfig.workspaceRoot, build.initialOptions.tsconfig.replace(context.workspaceConfig.workspaceRoot, ""))) : __require(joinPaths(context.workspaceConfig.workspaceRoot, "tsconfig.json"));
37
- const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot);
37
+ const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot, context.options.projectRoot);
38
38
  const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
39
39
  build.onResolve({
40
40
  filter: packagesRegex
package/dist/context.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkVEN2NPFWcjs = require('./chunk-VEN2NPFW.cjs');
4
- require('./chunk-E6GNR4XY.cjs');
3
+ var _chunkJZBM4QKFcjs = require('./chunk-JZBM4QKF.cjs');
4
+ require('./chunk-YXJYZG6O.cjs');
5
5
  require('./chunk-ZDMKNQUW.cjs');
6
6
  require('./chunk-B4NWTB7S.cjs');
7
7
  require('./chunk-2NQYRZKO.cjs');
@@ -9,4 +9,4 @@ require('./chunk-Q77NJNNL.cjs');
9
9
  require('./chunk-TKNLZW4V.cjs');
10
10
 
11
11
 
12
- exports.resolveContext = _chunkVEN2NPFWcjs.resolveContext;
12
+ exports.resolveContext = _chunkJZBM4QKFcjs.resolveContext;
package/dist/context.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveContext
3
- } from "./chunk-GCKE6M7A.js";
4
- import "./chunk-SPVR557L.js";
3
+ } from "./chunk-JHQYSHQ5.js";
4
+ import "./chunk-ZILTNBKJ.js";
5
5
  import "./chunk-JNDYTIRD.js";
6
6
  import "./chunk-SAK5QFCE.js";
7
7
  import "./chunk-3VHLCZ6F.js";
package/dist/index.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-5R3LX6E4.cjs');
2
2
 
3
3
 
4
- var _chunkG277DR3Ncjs = require('./chunk-G277DR3N.cjs');
4
+ var _chunkJS5GZ7ZEcjs = require('./chunk-JS5GZ7ZE.cjs');
5
5
  require('./chunk-N6KCNJOR.cjs');
6
6
  require('./chunk-KK2BGIRB.cjs');
7
7
  require('./chunk-IV2WE7RO.cjs');
8
- require('./chunk-VEN2NPFW.cjs');
9
- require('./chunk-E6GNR4XY.cjs');
8
+ require('./chunk-JZBM4QKF.cjs');
9
+ require('./chunk-YXJYZG6O.cjs');
10
10
  require('./chunk-ZDMKNQUW.cjs');
11
11
  require('./chunk-CY4KF2US.cjs');
12
12
  require('./chunk-B4NWTB7S.cjs');
@@ -21,4 +21,4 @@ var _chunkTKNLZW4Vcjs = require('./chunk-TKNLZW4V.cjs');
21
21
  _chunkTKNLZW4Vcjs.init_cjs_shims.call(void 0, );
22
22
 
23
23
 
24
- exports.build = _chunkG277DR3Ncjs.build;
24
+ exports.build = _chunkJS5GZ7ZEcjs.build;
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import "./chunk-UA2A6OC6.js";
2
2
  import {
3
3
  build
4
- } from "./chunk-A66EGME2.js";
4
+ } from "./chunk-DU5R4RJA.js";
5
5
  import "./chunk-GWGBQKRY.js";
6
6
  import "./chunk-CA7VVNV2.js";
7
7
  import "./chunk-GKAHDFNO.js";
8
- import "./chunk-GCKE6M7A.js";
9
- import "./chunk-SPVR557L.js";
8
+ import "./chunk-JHQYSHQ5.js";
9
+ import "./chunk-ZILTNBKJ.js";
10
10
  import "./chunk-JNDYTIRD.js";
11
11
  import "./chunk-EBZ4R3MW.js";
12
12
  import "./chunk-SAK5QFCE.js";
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkE6GNR4XYcjs = require('../chunk-E6GNR4XY.cjs');
3
+ var _chunkYXJYZG6Ocjs = require('../chunk-YXJYZG6O.cjs');
4
4
  require('../chunk-Q77NJNNL.cjs');
5
5
  require('../chunk-TKNLZW4V.cjs');
6
6
 
7
7
 
8
- exports.resolvePathsPlugin = _chunkE6GNR4XYcjs.resolvePathsPlugin;
8
+ exports.resolvePathsPlugin = _chunkYXJYZG6Ocjs.resolvePathsPlugin;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolvePathsPlugin
3
- } from "../chunk-SPVR557L.js";
3
+ } from "../chunk-ZILTNBKJ.js";
4
4
  import "../chunk-QBMHS72C.js";
5
5
  import "../chunk-CHAHHSIR.js";
6
6
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/esbuild",
3
- "version": "0.35.8",
3
+ "version": "0.35.9",
4
4
  "type": "module",
5
5
  "description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -186,9 +186,9 @@
186
186
  "dependencies": {
187
187
  "@nx/devkit": "20.8.0",
188
188
  "@nx/js": "20.8.0",
189
- "@storm-software/build-tools": "0.144.17",
190
- "@storm-software/config": "1.113.21",
191
- "@storm-software/config-tools": "1.163.22",
189
+ "@storm-software/build-tools": "0.144.18",
190
+ "@storm-software/config": "1.113.22",
191
+ "@storm-software/config-tools": "1.163.23",
192
192
  "chokidar": "^4.0.3",
193
193
  "commander": "^12.1.0",
194
194
  "defu": "6.1.4",