@storm-software/esbuild 0.31.26 → 0.31.28

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.25-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/dist/build.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkIJPOOWVJcjs = require('./chunk-IJPOOWVJ.cjs');
4
+ var _chunkA3LV5XYVcjs = require('./chunk-A3LV5XYV.cjs');
5
5
  require('./chunk-ATQXZL2N.cjs');
6
- require('./chunk-AGWKKDSC.cjs');
6
+ require('./chunk-EBJG5FWJ.cjs');
7
7
  require('./chunk-S6M44SSZ.cjs');
8
8
  require('./chunk-WRBUO7H6.cjs');
9
9
  require('./chunk-UONT522M.cjs');
@@ -18,4 +18,4 @@ require('./chunk-BGYQAVKQ.cjs');
18
18
 
19
19
 
20
20
 
21
- exports.build = _chunkIJPOOWVJcjs.build; exports.cleanOutputPath = _chunkIJPOOWVJcjs.cleanOutputPath;
21
+ exports.build = _chunkA3LV5XYVcjs.build; exports.cleanOutputPath = _chunkA3LV5XYVcjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-QZ2LI3FG.js";
4
+ } from "./chunk-EMOTV6ML.js";
5
5
  import "./chunk-QJ5VE3PG.js";
6
- import "./chunk-YUFST2S3.js";
6
+ import "./chunk-LYGJRBW3.js";
7
7
  import "./chunk-T5272PC2.js";
8
8
  import "./chunk-LYDEMC26.js";
9
9
  import "./chunk-MP6USOJU.js";
@@ -12,7 +12,7 @@ var _chunkATQXZL2Ncjs = require('./chunk-ATQXZL2N.cjs');
12
12
 
13
13
 
14
14
 
15
- var _chunkAGWKKDSCcjs = require('./chunk-AGWKKDSC.cjs');
15
+ var _chunkEBJG5FWJcjs = require('./chunk-EBJG5FWJ.cjs');
16
16
 
17
17
 
18
18
  var _chunkFY4GMRVAcjs = require('./chunk-FY4GMRVA.cjs');
@@ -277,7 +277,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
277
277
  if (!workspaceRoot) {
278
278
  throw new Error("Cannot find Nx workspace root");
279
279
  }
280
- const config = await _chunkAGWKKDSCcjs.getConfig.call(void 0, workspaceRoot.dir);
280
+ const config = await _chunkEBJG5FWJcjs.getConfig.call(void 0, workspaceRoot.dir);
281
281
  _chunkIQNPH4CNcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
282
282
  const stopwatch = _chunkIQNPH4CNcjs.getStopwatch.call(void 0, "Build options resolution");
283
283
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
@@ -294,14 +294,14 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
294
294
  if (!_optionalChain([projectConfigurations, 'optionalAccess', _14 => _14.projects, 'optionalAccess', _15 => _15[projectName]])) {
295
295
  throw new Error("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.");
296
296
  }
297
- const options = _defu2.default.call(void 0, userOptions, _chunkAGWKKDSCcjs.DEFAULT_BUILD_OPTIONS);
297
+ const options = _defu2.default.call(void 0, userOptions, _chunkEBJG5FWJcjs.DEFAULT_BUILD_OPTIONS);
298
298
  options.name ??= `${projectName}-${options.format}`;
299
- options.target ??= _chunkAGWKKDSCcjs.DEFAULT_TARGET;
299
+ options.target ??= _chunkEBJG5FWJcjs.DEFAULT_TARGET;
300
300
  const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
301
301
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
302
302
  throw new Error("Cannot find package.json configuration");
303
303
  }
304
- const env = _chunkAGWKKDSCcjs.getEnv.call(void 0, "esbuild", options);
304
+ const env = _chunkEBJG5FWJcjs.getEnv.call(void 0, "esbuild", options);
305
305
  const result = {
306
306
  ...options,
307
307
  config,
@@ -316,7 +316,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
316
316
  ...userOptions,
317
317
  tsconfig: _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
318
318
  format: options.format || "cjs",
319
- entryPoints: await _chunkAGWKKDSCcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), userOptions.emitOnAll === true),
319
+ entryPoints: await _chunkEBJG5FWJcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), userOptions.emitOnAll === true),
320
320
  outdir: userOptions.outputPath || _chunkXITTOHOGcjs.joinPaths.call(void 0, "dist", projectRoot),
321
321
  distDir: userOptions.distDir || "dist",
322
322
  plugins: [],
@@ -339,8 +339,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
339
339
  watch: userOptions.watch === true,
340
340
  footer: userOptions.footer,
341
341
  banner: {
342
- js: options.banner || _chunkAGWKKDSCcjs.DEFAULT_COMPILED_BANNER,
343
- css: options.banner || _chunkAGWKKDSCcjs.DEFAULT_COMPILED_BANNER
342
+ js: options.banner || _chunkEBJG5FWJcjs.DEFAULT_COMPILED_BANNER,
343
+ css: options.banner || _chunkEBJG5FWJcjs.DEFAULT_COMPILED_BANNER
344
344
  },
345
345
  splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
346
346
  treeShaking: options.format === "esm",
@@ -366,7 +366,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
366
366
  options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : void 0
367
367
  ].filter(Boolean)
368
368
  };
369
- result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkAGWKKDSCcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
369
+ result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkEBJG5FWJcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
370
370
  if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
371
371
  result.inject = options.inject.reduce((ret, inj) => {
372
372
  if (inj && typeof inj === "string" && ret.includes(inj)) {
@@ -393,8 +393,8 @@ async function generatePackageJson(context2) {
393
393
  if (!packageJson) {
394
394
  throw new Error("Cannot find package.json configuration file");
395
395
  }
396
- packageJson = await _chunkAGWKKDSCcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
397
- packageJson = await _chunkAGWKKDSCcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
396
+ packageJson = await _chunkEBJG5FWJcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
397
+ packageJson = await _chunkEBJG5FWJcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
398
398
  packageJson.exports ??= {};
399
399
  packageJson.exports["./package.json"] ??= "./package.json";
400
400
  packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
@@ -507,7 +507,7 @@ async function copyBuildAssets(context2) {
507
507
  if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
508
508
  _chunkIQNPH4CNcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
509
509
  const stopwatch = _chunkIQNPH4CNcjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
510
- await _chunkAGWKKDSCcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
510
+ await _chunkEBJG5FWJcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
511
511
  stopwatch();
512
512
  }
513
513
  return context2;
@@ -168,13 +168,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
168
168
  return ret;
169
169
  }, [])]);
170
170
  packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
171
- if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _16 => _16.includes, 'call', _17 => _17(localPackage.name)])) {
172
- ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
171
+ if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _16 => _16.includes, 'call', _17 => _17(localPackage.name)]) && _optionalChain([packageJson, 'access', _18 => _18.devDependencies, 'optionalAccess', _19 => _19[localPackage.name]]) === void 0) {
172
+ ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
173
173
  }
174
174
  return ret;
175
175
  }, _nullishCoalesce(packageJson.dependencies, () => ( {})));
176
176
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
177
- if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _18 => _18.includes, 'call', _19 => _19(localPackage.name)])) {
177
+ if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _20 => _20.includes, 'call', _21 => _21(localPackage.name)]) && _optionalChain([packageJson, 'access', _22 => _22.dependencies, 'optionalAccess', _23 => _23[localPackage.name]]) === void 0) {
178
178
  ret[localPackage.name] = localPackage.version || "0.0.1";
179
179
  }
180
180
  return ret;
@@ -240,7 +240,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
240
240
  cwd: workspacePath,
241
241
  packageJson: true,
242
242
  name: fileName,
243
- envName: _optionalChain([fileName, 'optionalAccess', _20 => _20.toUpperCase, 'call', _21 => _21()]),
243
+ envName: _optionalChain([fileName, 'optionalAccess', _24 => _24.toUpperCase, 'call', _25 => _25()]),
244
244
  jitiOptions: {
245
245
  debug: false,
246
246
  fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkXITTOHOGcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
@@ -251,7 +251,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
251
251
  cwd: workspacePath,
252
252
  packageJson: true,
253
253
  name: fileName,
254
- envName: _optionalChain([fileName, 'optionalAccess', _22 => _22.toUpperCase, 'call', _23 => _23()]),
254
+ envName: _optionalChain([fileName, 'optionalAccess', _26 => _26.toUpperCase, 'call', _27 => _27()]),
255
255
  jitiOptions: {
256
256
  debug: false,
257
257
  fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkXITTOHOGcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
@@ -275,7 +275,7 @@ var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
275
275
  if (additionalFileNames && additionalFileNames.length > 0) {
276
276
  const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
277
277
  for (const result2 of results) {
278
- if (_optionalChain([result2, 'optionalAccess', _24 => _24.config]) && _optionalChain([result2, 'optionalAccess', _25 => _25.configFile]) && Object.keys(result2.config).length > 0) {
278
+ if (_optionalChain([result2, 'optionalAccess', _28 => _28.config]) && _optionalChain([result2, 'optionalAccess', _29 => _29.configFile]) && Object.keys(result2.config).length > 0) {
279
279
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
280
280
  _chunkIQNPH4CNcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
281
281
  logLevel: "all"
@@ -461,13 +461,13 @@ var getBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(v
461
461
  var setExtensionEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (extensionName, extension) => {
462
462
  for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
463
463
  if (extension[key]) {
464
- const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _26 => _26.replace, 'call', _27 => _27(/([A-Z])+/g, (input) => input ? _optionalChain([input, 'access', _28 => _28[0], 'optionalAccess', _29 => _29.toUpperCase, 'call', _30 => _30()]) + input.slice(1) : ""), 'access', _31 => _31.split, 'call', _32 => _32(/(?=[A-Z])|[.\-\s_]/), 'access', _33 => _33.map, 'call', _34 => _34((x) => x.toLowerCase())]), () => ( []));
464
+ const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _30 => _30.replace, 'call', _31 => _31(/([A-Z])+/g, (input) => input ? _optionalChain([input, 'access', _32 => _32[0], 'optionalAccess', _33 => _33.toUpperCase, 'call', _34 => _34()]) + input.slice(1) : ""), 'access', _35 => _35.split, 'call', _36 => _36(/(?=[A-Z])|[.\-\s_]/), 'access', _37 => _37.map, 'call', _38 => _38((x) => x.toLowerCase())]), () => ( []));
465
465
  let extensionKey;
466
466
  if (result.length === 0) {
467
467
  return;
468
468
  }
469
469
  if (result.length === 1) {
470
- extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _35 => _35[0], 'optionalAccess', _36 => _36.toUpperCase, 'call', _37 => _37()]), () => ( ""));
470
+ extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _39 => _39[0], 'optionalAccess', _40 => _40.toUpperCase, 'call', _41 => _41()]), () => ( ""));
471
471
  } else {
472
472
  extensionKey = result.reduce((ret, part) => {
473
473
  return `${ret}_${part.toLowerCase()}`;
@@ -592,7 +592,7 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
592
592
  process.env.NODE_ENV = config.mode;
593
593
  process.env.ENVIRONMENT = config.mode;
594
594
  }
595
- if (_optionalChain([config, 'access', _38 => _38.colors, 'optionalAccess', _39 => _39.base, 'optionalAccess', _40 => _40.light]) || _optionalChain([config, 'access', _41 => _41.colors, 'optionalAccess', _42 => _42.base, 'optionalAccess', _43 => _43.dark])) {
595
+ if (_optionalChain([config, 'access', _42 => _42.colors, 'optionalAccess', _43 => _43.base, 'optionalAccess', _44 => _44.light]) || _optionalChain([config, 'access', _45 => _45.colors, 'optionalAccess', _46 => _46.base, 'optionalAccess', _47 => _47.dark])) {
596
596
  for (const key of Object.keys(config.colors)) {
597
597
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
598
598
  }
@@ -645,7 +645,7 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
645
645
  }
646
646
  }, "setConfigEnv");
647
647
  var setThemeColorConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (prefix, config) => {
648
- return _optionalChain([config, 'optionalAccess', _44 => _44.light, 'optionalAccess', _45 => _45.brand]) || _optionalChain([config, 'optionalAccess', _46 => _46.dark, 'optionalAccess', _47 => _47.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
648
+ return _optionalChain([config, 'optionalAccess', _48 => _48.light, 'optionalAccess', _49 => _49.brand]) || _optionalChain([config, 'optionalAccess', _50 => _50.dark, 'optionalAccess', _51 => _51.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
649
649
  }, "setThemeColorConfigEnv");
650
650
  var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (prefix, config) => {
651
651
  if (config.dark) {
@@ -747,7 +747,7 @@ var _extension_cache = /* @__PURE__ */ new WeakMap();
747
747
  var _static_cache = void 0;
748
748
  var createStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
749
749
  let result;
750
- if (!_optionalChain([_static_cache, 'optionalAccess', _48 => _48.data]) || !_optionalChain([_static_cache, 'optionalAccess', _49 => _49.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
750
+ if (!_optionalChain([_static_cache, 'optionalAccess', _52 => _52.data]) || !_optionalChain([_static_cache, 'optionalAccess', _53 => _53.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
751
751
  let _workspaceRoot = workspaceRoot;
752
752
  if (!_workspaceRoot) {
753
753
  _workspaceRoot = _chunkIQNPH4CNcjs.findWorkspaceRoot.call(void 0, );
@@ -843,7 +843,11 @@ var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
843
843
  return ret;
844
844
  }, []));
845
845
  } else {
846
- paths.push(entryPoint);
846
+ const result = _chunkXITTOHOGcjs.correctPaths.call(void 0, entryPoint.replaceAll(_chunkXITTOHOGcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXITTOHOGcjs.correctPaths.call(void 0, projectRoot), ""));
847
+ _chunkIQNPH4CNcjs.writeDebug.call(void 0, `Trying to add entry point ${result}"`, config);
848
+ if (!paths.includes(result)) {
849
+ paths.push(result);
850
+ }
847
851
  }
848
852
  return paths;
849
853
  }));
@@ -12,7 +12,7 @@ import {
12
12
  getDefaultBuildPlugins,
13
13
  getEntryPoints,
14
14
  getEnv
15
- } from "./chunk-YUFST2S3.js";
15
+ } from "./chunk-LYGJRBW3.js";
16
16
  import {
17
17
  depsCheckPlugin
18
18
  } from "./chunk-ILLWUPTW.js";
@@ -168,13 +168,13 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projec
168
168
  return ret;
169
169
  }, []);
170
170
  packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
171
- if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name)) {
172
- ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
171
+ if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name) && packageJson.devDependencies?.[localPackage.name] === void 0) {
172
+ ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
173
173
  }
174
174
  return ret;
175
175
  }, packageJson.dependencies ?? {});
176
176
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
177
- if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
177
+ if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name) && packageJson.dependencies?.[localPackage.name] === void 0) {
178
178
  ret[localPackage.name] = localPackage.version || "0.0.1";
179
179
  }
180
180
  return ret;
@@ -843,7 +843,11 @@ var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRo
843
843
  return ret;
844
844
  }, []));
845
845
  } else {
846
- paths.push(entryPoint);
846
+ const result = correctPaths(entryPoint.replaceAll(correctPaths(workspaceRoot), "").replaceAll(correctPaths(projectRoot), ""));
847
+ writeDebug(`Trying to add entry point ${result}"`, config);
848
+ if (!paths.includes(result)) {
849
+ paths.push(result);
850
+ }
847
851
  }
848
852
  return paths;
849
853
  }));
package/dist/clean.d.cts CHANGED
@@ -38,8 +38,8 @@ declare const StormConfigSchema: z.ZodObject<{
38
38
  header?: string | undefined;
39
39
  }, {
40
40
  banner?: string | undefined;
41
- footer?: string | undefined;
42
41
  header?: string | undefined;
42
+ footer?: string | undefined;
43
43
  }>;
44
44
  account: z.ZodObject<{
45
45
  twitter: z.ZodDefault<z.ZodString>;
@@ -76,15 +76,15 @@ declare const StormConfigSchema: z.ZodObject<{
76
76
  build: z.ZodDefault<z.ZodString>;
77
77
  }, "strip", z.ZodTypeAny, {
78
78
  build: string;
79
- config?: string | undefined;
80
79
  cache?: string | undefined;
81
80
  data?: string | undefined;
81
+ config?: string | undefined;
82
82
  temp?: string | undefined;
83
83
  log?: string | undefined;
84
84
  }, {
85
- config?: string | undefined;
86
85
  cache?: string | undefined;
87
86
  data?: string | undefined;
87
+ config?: string | undefined;
88
88
  temp?: string | undefined;
89
89
  log?: string | undefined;
90
90
  build?: string | undefined;
@@ -831,8 +831,6 @@ declare const StormConfigSchema: z.ZodObject<{
831
831
  }>]>>]>]>;
832
832
  extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
833
833
  }, "strip", z.ZodTypeAny, {
834
- logLevel: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all";
835
- mode: "development" | "staging" | "production";
836
834
  organization: string;
837
835
  license: string;
838
836
  homepage: string;
@@ -858,20 +856,22 @@ declare const StormConfigSchema: z.ZodObject<{
858
856
  medium: string;
859
857
  github: string;
860
858
  };
859
+ mode: "development" | "staging" | "production";
861
860
  workspaceRoot: string;
862
861
  externalPackagePatterns: string[];
863
862
  skipCache: boolean;
864
863
  directories: {
865
864
  build: string;
866
- config?: string | undefined;
867
865
  cache?: string | undefined;
868
866
  data?: string | undefined;
867
+ config?: string | undefined;
869
868
  temp?: string | undefined;
870
869
  log?: string | undefined;
871
870
  };
872
871
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
873
872
  timezone: string;
874
873
  locale: string;
874
+ logLevel: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all";
875
875
  registry: {
876
876
  github?: string | undefined;
877
877
  npm?: string | undefined;
@@ -1028,9 +1028,9 @@ declare const StormConfigSchema: z.ZodObject<{
1028
1028
  };
1029
1029
  }>;
1030
1030
  extensions: Record<string, any>;
1031
- name?: string | undefined;
1032
1031
  $schema?: string | null | undefined;
1033
1032
  extends?: string | string[] | undefined;
1033
+ name?: string | undefined;
1034
1034
  namespace?: string | undefined;
1035
1035
  repository?: string | undefined;
1036
1036
  preid?: string | undefined;
@@ -1042,8 +1042,8 @@ declare const StormConfigSchema: z.ZodObject<{
1042
1042
  };
1043
1043
  release: {
1044
1044
  banner?: string | undefined;
1045
- footer?: string | undefined;
1046
1045
  header?: string | undefined;
1046
+ footer?: string | undefined;
1047
1047
  };
1048
1048
  account: {
1049
1049
  twitter?: string | undefined;
@@ -1054,9 +1054,9 @@ declare const StormConfigSchema: z.ZodObject<{
1054
1054
  github?: string | undefined;
1055
1055
  };
1056
1056
  directories: {
1057
- config?: string | undefined;
1058
1057
  cache?: string | undefined;
1059
1058
  data?: string | undefined;
1059
+ config?: string | undefined;
1060
1060
  temp?: string | undefined;
1061
1061
  log?: string | undefined;
1062
1062
  build?: string | undefined;
@@ -1208,11 +1208,9 @@ declare const StormConfigSchema: z.ZodObject<{
1208
1208
  background?: string | undefined;
1209
1209
  };
1210
1210
  }>;
1211
- logLevel?: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all" | undefined;
1212
- name?: string | undefined;
1213
- mode?: "development" | "staging" | "production" | undefined;
1214
1211
  $schema?: string | null | undefined;
1215
1212
  extends?: string | string[] | undefined;
1213
+ name?: string | undefined;
1216
1214
  namespace?: string | undefined;
1217
1215
  organization?: string | undefined;
1218
1216
  repository?: string | undefined;
@@ -1224,12 +1222,14 @@ declare const StormConfigSchema: z.ZodObject<{
1224
1222
  branch?: string | undefined;
1225
1223
  preid?: string | undefined;
1226
1224
  owner?: string | undefined;
1225
+ mode?: "development" | "staging" | "production" | undefined;
1227
1226
  workspaceRoot?: string | undefined;
1228
1227
  externalPackagePatterns?: string[] | undefined;
1229
1228
  skipCache?: boolean | undefined;
1230
1229
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
1231
1230
  timezone?: string | undefined;
1232
1231
  locale?: string | undefined;
1232
+ logLevel?: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
1233
1233
  skipConfigLogging?: boolean | undefined;
1234
1234
  registry?: {
1235
1235
  github?: string | undefined;
package/dist/clean.d.ts CHANGED
@@ -38,8 +38,8 @@ declare const StormConfigSchema: z.ZodObject<{
38
38
  header?: string | undefined;
39
39
  }, {
40
40
  banner?: string | undefined;
41
- footer?: string | undefined;
42
41
  header?: string | undefined;
42
+ footer?: string | undefined;
43
43
  }>;
44
44
  account: z.ZodObject<{
45
45
  twitter: z.ZodDefault<z.ZodString>;
@@ -76,15 +76,15 @@ declare const StormConfigSchema: z.ZodObject<{
76
76
  build: z.ZodDefault<z.ZodString>;
77
77
  }, "strip", z.ZodTypeAny, {
78
78
  build: string;
79
- config?: string | undefined;
80
79
  cache?: string | undefined;
81
80
  data?: string | undefined;
81
+ config?: string | undefined;
82
82
  temp?: string | undefined;
83
83
  log?: string | undefined;
84
84
  }, {
85
- config?: string | undefined;
86
85
  cache?: string | undefined;
87
86
  data?: string | undefined;
87
+ config?: string | undefined;
88
88
  temp?: string | undefined;
89
89
  log?: string | undefined;
90
90
  build?: string | undefined;
@@ -831,8 +831,6 @@ declare const StormConfigSchema: z.ZodObject<{
831
831
  }>]>>]>]>;
832
832
  extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
833
833
  }, "strip", z.ZodTypeAny, {
834
- logLevel: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all";
835
- mode: "development" | "staging" | "production";
836
834
  organization: string;
837
835
  license: string;
838
836
  homepage: string;
@@ -858,20 +856,22 @@ declare const StormConfigSchema: z.ZodObject<{
858
856
  medium: string;
859
857
  github: string;
860
858
  };
859
+ mode: "development" | "staging" | "production";
861
860
  workspaceRoot: string;
862
861
  externalPackagePatterns: string[];
863
862
  skipCache: boolean;
864
863
  directories: {
865
864
  build: string;
866
- config?: string | undefined;
867
865
  cache?: string | undefined;
868
866
  data?: string | undefined;
867
+ config?: string | undefined;
869
868
  temp?: string | undefined;
870
869
  log?: string | undefined;
871
870
  };
872
871
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
873
872
  timezone: string;
874
873
  locale: string;
874
+ logLevel: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all";
875
875
  registry: {
876
876
  github?: string | undefined;
877
877
  npm?: string | undefined;
@@ -1028,9 +1028,9 @@ declare const StormConfigSchema: z.ZodObject<{
1028
1028
  };
1029
1029
  }>;
1030
1030
  extensions: Record<string, any>;
1031
- name?: string | undefined;
1032
1031
  $schema?: string | null | undefined;
1033
1032
  extends?: string | string[] | undefined;
1033
+ name?: string | undefined;
1034
1034
  namespace?: string | undefined;
1035
1035
  repository?: string | undefined;
1036
1036
  preid?: string | undefined;
@@ -1042,8 +1042,8 @@ declare const StormConfigSchema: z.ZodObject<{
1042
1042
  };
1043
1043
  release: {
1044
1044
  banner?: string | undefined;
1045
- footer?: string | undefined;
1046
1045
  header?: string | undefined;
1046
+ footer?: string | undefined;
1047
1047
  };
1048
1048
  account: {
1049
1049
  twitter?: string | undefined;
@@ -1054,9 +1054,9 @@ declare const StormConfigSchema: z.ZodObject<{
1054
1054
  github?: string | undefined;
1055
1055
  };
1056
1056
  directories: {
1057
- config?: string | undefined;
1058
1057
  cache?: string | undefined;
1059
1058
  data?: string | undefined;
1059
+ config?: string | undefined;
1060
1060
  temp?: string | undefined;
1061
1061
  log?: string | undefined;
1062
1062
  build?: string | undefined;
@@ -1208,11 +1208,9 @@ declare const StormConfigSchema: z.ZodObject<{
1208
1208
  background?: string | undefined;
1209
1209
  };
1210
1210
  }>;
1211
- logLevel?: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all" | undefined;
1212
- name?: string | undefined;
1213
- mode?: "development" | "staging" | "production" | undefined;
1214
1211
  $schema?: string | null | undefined;
1215
1212
  extends?: string | string[] | undefined;
1213
+ name?: string | undefined;
1216
1214
  namespace?: string | undefined;
1217
1215
  organization?: string | undefined;
1218
1216
  repository?: string | undefined;
@@ -1224,12 +1222,14 @@ declare const StormConfigSchema: z.ZodObject<{
1224
1222
  branch?: string | undefined;
1225
1223
  preid?: string | undefined;
1226
1224
  owner?: string | undefined;
1225
+ mode?: "development" | "staging" | "production" | undefined;
1227
1226
  workspaceRoot?: string | undefined;
1228
1227
  externalPackagePatterns?: string[] | undefined;
1229
1228
  skipCache?: boolean | undefined;
1230
1229
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
1231
1230
  timezone?: string | undefined;
1232
1231
  locale?: string | undefined;
1232
+ logLevel?: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
1233
1233
  skipConfigLogging?: boolean | undefined;
1234
1234
  registry?: {
1235
1235
  github?: string | undefined;
package/dist/config.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkAGWKKDSCcjs = require('./chunk-AGWKKDSC.cjs');
4
+ var _chunkEBJG5FWJcjs = require('./chunk-EBJG5FWJ.cjs');
5
5
  require('./chunk-S6M44SSZ.cjs');
6
6
  require('./chunk-WRBUO7H6.cjs');
7
7
  require('./chunk-UONT522M.cjs');
@@ -15,4 +15,4 @@ require('./chunk-BGYQAVKQ.cjs');
15
15
 
16
16
 
17
17
 
18
- exports.DEFAULT_BUILD_OPTIONS = _chunkAGWKKDSCcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkAGWKKDSCcjs.getDefaultBuildPlugins;
18
+ exports.DEFAULT_BUILD_OPTIONS = _chunkEBJG5FWJcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkEBJG5FWJcjs.getDefaultBuildPlugins;
package/dist/config.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS,
3
3
  getDefaultBuildPlugins
4
- } from "./chunk-YUFST2S3.js";
4
+ } from "./chunk-LYGJRBW3.js";
5
5
  import "./chunk-T5272PC2.js";
6
6
  import "./chunk-LYDEMC26.js";
7
7
  import "./chunk-MP6USOJU.js";
package/dist/index.cjs CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkIJPOOWVJcjs = require('./chunk-IJPOOWVJ.cjs');
10
+ var _chunkA3LV5XYVcjs = require('./chunk-A3LV5XYV.cjs');
11
11
 
12
12
 
13
13
 
@@ -15,7 +15,7 @@ var _chunkATQXZL2Ncjs = require('./chunk-ATQXZL2N.cjs');
15
15
 
16
16
 
17
17
 
18
- var _chunkAGWKKDSCcjs = require('./chunk-AGWKKDSC.cjs');
18
+ var _chunkEBJG5FWJcjs = require('./chunk-EBJG5FWJ.cjs');
19
19
  require('./chunk-S6M44SSZ.cjs');
20
20
  require('./chunk-WRBUO7H6.cjs');
21
21
  require('./chunk-UONT522M.cjs');
@@ -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 = _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;
44
+ exports.DEFAULT_BUILD_OPTIONS = _chunkEBJG5FWJcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkA3LV5XYVcjs.Filter; exports.Mapper = _chunkA3LV5XYVcjs.Mapper; exports.build = _chunkA3LV5XYVcjs.build; exports.clean = _chunkATQXZL2Ncjs.clean; exports.cleanDirectories = _chunkATQXZL2Ncjs.cleanDirectories; exports.cleanOutputPath = _chunkA3LV5XYVcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkEBJG5FWJcjs.getDefaultBuildPlugins; exports.handle = _chunkA3LV5XYVcjs.handle; exports.pipe = _chunkA3LV5XYVcjs.pipe; exports.skip = _chunkA3LV5XYVcjs.skip; exports.transduce = _chunkA3LV5XYVcjs.transduce;
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  pipe,
8
8
  skip,
9
9
  transduce
10
- } from "./chunk-QZ2LI3FG.js";
10
+ } from "./chunk-EMOTV6ML.js";
11
11
  import {
12
12
  clean,
13
13
  cleanDirectories
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  DEFAULT_BUILD_OPTIONS,
17
17
  getDefaultBuildPlugins
18
- } from "./chunk-YUFST2S3.js";
18
+ } from "./chunk-LYGJRBW3.js";
19
19
  import "./chunk-T5272PC2.js";
20
20
  import "./chunk-LYDEMC26.js";
21
21
  import "./chunk-MP6USOJU.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/esbuild",
3
- "version": "0.31.26",
3
+ "version": "0.31.28",
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",