@storm-software/esbuild 0.26.10 → 0.26.12

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.26.9-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.26.11-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
@@ -488,6 +488,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
488
488
  overrideTsconfig: {
489
489
  compilerOptions: {
490
490
  paths: {}
491
+ // bug with api extract + paths
491
492
  }
492
493
  }
493
494
  },
@@ -533,7 +534,7 @@ var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
533
534
  } else if ((0, import_node_fs2.existsSync)((0, import_config_tools2.joinPaths)(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
534
535
  dtsPath = (0, import_config_tools2.joinPaths)(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
535
536
  }
536
- const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
537
+ const ext = resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
537
538
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
538
539
  bundleTypeDefinitions(dtsPath, bundlePath, resolvedOptions.external ?? [], resolvedOptions);
539
540
  const dtsContents = await import_promises2.default.readFile(`${bundlePath}.d.ts`, "utf8");
@@ -555,9 +556,6 @@ function getTypeDependencyPackageName(npmPackage) {
555
556
  __name(getTypeDependencyPackageName, "getTypeDependencyPackageName");
556
557
 
557
558
  // src/config.ts
558
- var getOutputExtensionMap = /* @__PURE__ */ __name((options, pkgType) => {
559
- return options.outExtension ? options.outExtension(options.format, pkgType) : (0, import_get_out_extension.getOutExtension)(options.format, pkgType);
560
- }, "getOutputExtensionMap");
561
559
  var getDefaultBuildPlugins = /* @__PURE__ */ __name((options, resolvedOptions) => [
562
560
  nodeProtocolPlugin(options, resolvedOptions),
563
561
  resolvePathsPlugin(options, resolvedOptions),
@@ -806,9 +804,6 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
806
804
  if (!(0, import_node_fs3.existsSync)(packageJsonPath)) {
807
805
  throw new Error("Cannot find package.json configuration");
808
806
  }
809
- const packageJsonFile = await import_promises3.default.readFile(packageJsonPath, "utf8");
810
- const packageJson = JSON.parse(packageJsonFile);
811
- const outExtension = getOutputExtensionMap(options, packageJson.type);
812
807
  const env = (0, import_build_tools.getEnv)("esbuild", options);
813
808
  const result = {
814
809
  ...options,
@@ -851,7 +846,6 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
851
846
  bundle: userOptions.bundle !== false,
852
847
  keepNames: true,
853
848
  watch: userOptions.watch === true,
854
- outExtension,
855
849
  footer: userOptions.footer,
856
850
  banner: {
857
851
  js: options.banner || import_build_tools.DEFAULT_COMPILED_BANNER,
@@ -883,6 +877,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
883
877
  };
884
878
  result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
885
879
  delete result.entry;
880
+ delete result.outputPath;
886
881
  stopwatch();
887
882
  return result;
888
883
  }, "resolveOptions");
package/dist/build.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkA52PSAFBcjs = require('./chunk-A52PSAFB.cjs');
4
+ var _chunkWTBR5HERcjs = require('./chunk-WTBR5HER.cjs');
5
5
  require('./chunk-62KAIAWT.cjs');
6
- require('./chunk-57Z7YYTW.cjs');
6
+ require('./chunk-B5TAG2NH.cjs');
7
7
  require('./chunk-S6M44SSZ.cjs');
8
8
  require('./chunk-WRBUO7H6.cjs');
9
9
  require('./chunk-GQQQCEJN.cjs');
10
10
  require('./chunk-SSEYS7LI.cjs');
11
- require('./chunk-A7M6QDWG.cjs');
11
+ require('./chunk-5IEA3WKU.cjs');
12
12
  require('./chunk-VWP2SU7A.cjs');
13
13
  require('./chunk-XZED6WF3.cjs');
14
14
  require('./chunk-XITTOHOG.cjs');
@@ -18,4 +18,4 @@ require('./chunk-BGYQAVKQ.cjs');
18
18
 
19
19
 
20
20
 
21
- exports.build = _chunkA52PSAFBcjs.build; exports.cleanOutputPath = _chunkA52PSAFBcjs.cleanOutputPath;
21
+ exports.build = _chunkWTBR5HERcjs.build; exports.cleanOutputPath = _chunkWTBR5HERcjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-2I66UWSZ.js";
4
+ } from "./chunk-ZDPALE64.js";
5
5
  import "./chunk-DNJAV4NQ.js";
6
- import "./chunk-D5ZZNDUG.js";
6
+ import "./chunk-JG2TBFYI.js";
7
7
  import "./chunk-T5272PC2.js";
8
8
  import "./chunk-LYDEMC26.js";
9
9
  import "./chunk-IW7GZHF7.js";
10
10
  import "./chunk-Q3LOGZKI.js";
11
- import "./chunk-V23YDDCC.js";
11
+ import "./chunk-WYGGQUX3.js";
12
12
  import "./chunk-7NZ2E6EC.js";
13
13
  import "./chunk-2HAHXU54.js";
14
14
  import "./chunk-YMTDVMD6.js";
@@ -65,6 +65,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
65
65
  overrideTsconfig: {
66
66
  compilerOptions: {
67
67
  paths: {}
68
+ // bug with api extract + paths
68
69
  }
69
70
  }
70
71
  },
@@ -110,7 +111,7 @@ var tscPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (options,
110
111
  } else if (_fs.existsSync.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
111
112
  dtsPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
112
113
  }
113
- const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
114
+ const ext = resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
114
115
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
115
116
  bundleTypeDefinitions(dtsPath, bundlePath, _nullishCoalesce(resolvedOptions.external, () => ( [])), resolvedOptions);
116
117
  const dtsContents = await _promises2.default.readFile(`${bundlePath}.d.ts`, "utf8");
@@ -12,7 +12,7 @@ var _chunkGQQQCEJNcjs = require('./chunk-GQQQCEJN.cjs');
12
12
  var _chunkSSEYS7LIcjs = require('./chunk-SSEYS7LI.cjs');
13
13
 
14
14
 
15
- var _chunkA7M6QDWGcjs = require('./chunk-A7M6QDWG.cjs');
15
+ var _chunk5IEA3WKUcjs = require('./chunk-5IEA3WKU.cjs');
16
16
 
17
17
 
18
18
 
@@ -836,28 +836,6 @@ var getEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (builder, opt
836
836
  };
837
837
  }, "getEnv");
838
838
 
839
- // ../build-tools/src/utilities/get-out-extension.ts
840
- function getOutExtension(format, pkgType) {
841
- let jsExtension = ".js";
842
- let dtsExtension = ".d.ts";
843
- if (pkgType === "module" && format === "cjs") {
844
- jsExtension = ".cjs";
845
- dtsExtension = ".d.cts";
846
- }
847
- if (pkgType !== "module" && format === "esm") {
848
- jsExtension = ".mjs";
849
- dtsExtension = ".d.mts";
850
- }
851
- if (format === "iife") {
852
- jsExtension = ".global.js";
853
- }
854
- return {
855
- js: jsExtension,
856
- dts: dtsExtension
857
- };
858
- }
859
- _chunkBGYQAVKQcjs.__name.call(void 0, getOutExtension, "getOutExtension");
860
-
861
839
  // ../build-tools/src/utilities/read-nx-config.ts
862
840
 
863
841
 
@@ -866,16 +844,13 @@ _chunkBGYQAVKQcjs.__name.call(void 0, getOutExtension, "getOutExtension");
866
844
  var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
867
845
 
868
846
  // src/config.ts
869
- var getOutputExtensionMap = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (options, pkgType) => {
870
- return options.outExtension ? options.outExtension(options.format, pkgType) : getOutExtension(options.format, pkgType);
871
- }, "getOutputExtensionMap");
872
847
  var getDefaultBuildPlugins = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (options, resolvedOptions) => [
873
848
  _chunkWRBUO7H6cjs.nodeProtocolPlugin.call(void 0, options, resolvedOptions),
874
849
  _chunkSSEYS7LIcjs.resolvePathsPlugin.call(void 0, options, resolvedOptions),
875
850
  _chunkEZGTDCYMcjs.fixImportsPlugin.call(void 0, options, resolvedOptions),
876
851
  _chunkS6M44SSZcjs.nativeNodeModulesPlugin.call(void 0, options, resolvedOptions),
877
852
  _chunkCGFDQ5AJcjs.esmSplitCodeToCjsPlugin.call(void 0, options, resolvedOptions),
878
- _chunkA7M6QDWGcjs.tscPlugin.call(void 0, options, resolvedOptions),
853
+ _chunk5IEA3WKUcjs.tscPlugin.call(void 0, options, resolvedOptions),
879
854
  _chunkGQQQCEJNcjs.onErrorPlugin.call(void 0, options, resolvedOptions)
880
855
  ], "getDefaultBuildPlugins");
881
856
  var DEFAULT_BUILD_OPTIONS = {
@@ -930,5 +905,4 @@ var DEFAULT_BUILD_OPTIONS = {
930
905
 
931
906
 
932
907
 
933
-
934
- exports.DEFAULT_COMPILED_BANNER = DEFAULT_COMPILED_BANNER; exports.DEFAULT_TARGET = DEFAULT_TARGET; exports.copyAssets = copyAssets; exports.addPackageDependencies = addPackageDependencies; exports.addWorkspacePackageJsonFields = addWorkspacePackageJsonFields; exports.addPackageJsonExport = addPackageJsonExport; exports.getConfig = getConfig; exports.getEntryPoints = getEntryPoints; exports.getEnv = getEnv; exports.getOutputExtensionMap = getOutputExtensionMap; exports.getDefaultBuildPlugins = getDefaultBuildPlugins; exports.DEFAULT_BUILD_OPTIONS = DEFAULT_BUILD_OPTIONS;
908
+ exports.DEFAULT_COMPILED_BANNER = DEFAULT_COMPILED_BANNER; exports.DEFAULT_TARGET = DEFAULT_TARGET; exports.copyAssets = copyAssets; exports.addPackageDependencies = addPackageDependencies; exports.addWorkspacePackageJsonFields = addWorkspacePackageJsonFields; exports.addPackageJsonExport = addPackageJsonExport; exports.getConfig = getConfig; exports.getEntryPoints = getEntryPoints; exports.getEnv = getEnv; exports.getDefaultBuildPlugins = getDefaultBuildPlugins; exports.DEFAULT_BUILD_OPTIONS = DEFAULT_BUILD_OPTIONS;
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-Q3LOGZKI.js";
13
13
  import {
14
14
  tscPlugin
15
- } from "./chunk-V23YDDCC.js";
15
+ } from "./chunk-WYGGQUX3.js";
16
16
  import {
17
17
  COLOR_KEYS,
18
18
  LogLevel,
@@ -836,28 +836,6 @@ var getEnv = /* @__PURE__ */ __name((builder, options) => {
836
836
  };
837
837
  }, "getEnv");
838
838
 
839
- // ../build-tools/src/utilities/get-out-extension.ts
840
- function getOutExtension(format, pkgType) {
841
- let jsExtension = ".js";
842
- let dtsExtension = ".d.ts";
843
- if (pkgType === "module" && format === "cjs") {
844
- jsExtension = ".cjs";
845
- dtsExtension = ".d.cts";
846
- }
847
- if (pkgType !== "module" && format === "esm") {
848
- jsExtension = ".mjs";
849
- dtsExtension = ".d.mts";
850
- }
851
- if (format === "iife") {
852
- jsExtension = ".global.js";
853
- }
854
- return {
855
- js: jsExtension,
856
- dts: dtsExtension
857
- };
858
- }
859
- __name(getOutExtension, "getOutExtension");
860
-
861
839
  // ../build-tools/src/utilities/read-nx-config.ts
862
840
  import { existsSync as existsSync2 } from "node:fs";
863
841
  import { readFile as readFile3 } from "node:fs/promises";
@@ -866,9 +844,6 @@ import { readFile as readFile3 } from "node:fs/promises";
866
844
  import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-runner/create-task-graph";
867
845
 
868
846
  // src/config.ts
869
- var getOutputExtensionMap = /* @__PURE__ */ __name((options, pkgType) => {
870
- return options.outExtension ? options.outExtension(options.format, pkgType) : getOutExtension(options.format, pkgType);
871
- }, "getOutputExtensionMap");
872
847
  var getDefaultBuildPlugins = /* @__PURE__ */ __name((options, resolvedOptions) => [
873
848
  nodeProtocolPlugin(options, resolvedOptions),
874
849
  resolvePathsPlugin(options, resolvedOptions),
@@ -928,7 +903,6 @@ export {
928
903
  getConfig,
929
904
  getEntryPoints,
930
905
  getEnv,
931
- getOutputExtensionMap,
932
906
  getDefaultBuildPlugins,
933
907
  DEFAULT_BUILD_OPTIONS
934
908
  };
@@ -13,8 +13,7 @@ var _chunk62KAIAWTcjs = require('./chunk-62KAIAWT.cjs');
13
13
 
14
14
 
15
15
 
16
-
17
- var _chunk57Z7YYTWcjs = require('./chunk-57Z7YYTW.cjs');
16
+ var _chunkB5TAG2NHcjs = require('./chunk-B5TAG2NH.cjs');
18
17
 
19
18
 
20
19
  var _chunkVWP2SU7Acjs = require('./chunk-VWP2SU7A.cjs');
@@ -278,7 +277,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
278
277
  if (!workspaceRoot) {
279
278
  throw new Error("Cannot find Nx workspace root");
280
279
  }
281
- const config = await _chunk57Z7YYTWcjs.getConfig.call(void 0, workspaceRoot.dir);
280
+ const config = await _chunkB5TAG2NHcjs.getConfig.call(void 0, workspaceRoot.dir);
282
281
  _chunkXZED6WF3cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
283
282
  const stopwatch = _chunkXZED6WF3cjs.getStopwatch.call(void 0, "Build options resolution");
284
283
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
@@ -295,17 +294,14 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
295
294
  if (!_optionalChain([projectConfigurations, 'optionalAccess', _14 => _14.projects, 'optionalAccess', _15 => _15[projectName]])) {
296
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.");
297
296
  }
298
- const options = _defu2.default.call(void 0, userOptions, _chunk57Z7YYTWcjs.DEFAULT_BUILD_OPTIONS);
297
+ const options = _defu2.default.call(void 0, userOptions, _chunkB5TAG2NHcjs.DEFAULT_BUILD_OPTIONS);
299
298
  options.name ??= `${projectName}-${options.format}`;
300
- options.target ??= _chunk57Z7YYTWcjs.DEFAULT_TARGET;
299
+ options.target ??= _chunkB5TAG2NHcjs.DEFAULT_TARGET;
301
300
  const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
302
301
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
303
302
  throw new Error("Cannot find package.json configuration");
304
303
  }
305
- const packageJsonFile = await _promises2.default.readFile(packageJsonPath, "utf8");
306
- const packageJson = JSON.parse(packageJsonFile);
307
- const outExtension = _chunk57Z7YYTWcjs.getOutputExtensionMap.call(void 0, options, packageJson.type);
308
- const env = _chunk57Z7YYTWcjs.getEnv.call(void 0, "esbuild", options);
304
+ const env = _chunkB5TAG2NHcjs.getEnv.call(void 0, "esbuild", options);
309
305
  const result = {
310
306
  ...options,
311
307
  config,
@@ -325,7 +321,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
325
321
  ...userOptions,
326
322
  tsconfig: _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
327
323
  format: options.format || "cjs",
328
- entryPoints: await _chunk57Z7YYTWcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
324
+ entryPoints: await _chunkB5TAG2NHcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
329
325
  "./src/index.ts"
330
326
  ], userOptions.emitOnAll),
331
327
  outdir: userOptions.outputPath || _chunkXITTOHOGcjs.joinPaths.call(void 0, "dist", projectRoot),
@@ -347,11 +343,10 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
347
343
  bundle: userOptions.bundle !== false,
348
344
  keepNames: true,
349
345
  watch: userOptions.watch === true,
350
- outExtension,
351
346
  footer: userOptions.footer,
352
347
  banner: {
353
- js: options.banner || _chunk57Z7YYTWcjs.DEFAULT_COMPILED_BANNER,
354
- css: options.banner || _chunk57Z7YYTWcjs.DEFAULT_COMPILED_BANNER
348
+ js: options.banner || _chunkB5TAG2NHcjs.DEFAULT_COMPILED_BANNER,
349
+ css: options.banner || _chunkB5TAG2NHcjs.DEFAULT_COMPILED_BANNER
355
350
  },
356
351
  splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
357
352
  treeShaking: options.format === "esm",
@@ -377,8 +372,9 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
377
372
  ..._nullishCoalesce(options.inject, () => ( []))
378
373
  ].filter(Boolean)
379
374
  };
380
- result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunk57Z7YYTWcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
375
+ result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkB5TAG2NHcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
381
376
  delete result.entry;
377
+ delete result.outputPath;
382
378
  stopwatch();
383
379
  return result;
384
380
  }, "resolveOptions");
@@ -395,11 +391,11 @@ async function generatePackageJson(context2) {
395
391
  if (!packageJson) {
396
392
  throw new Error("Cannot find package.json configuration file");
397
393
  }
398
- packageJson = await _chunk57Z7YYTWcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
399
- packageJson = await _chunk57Z7YYTWcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
394
+ packageJson = await _chunkB5TAG2NHcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
395
+ packageJson = await _chunkB5TAG2NHcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
400
396
  packageJson.exports ??= {};
401
397
  packageJson.exports["./package.json"] ??= "./package.json";
402
- packageJson.exports["."] ??= _chunk57Z7YYTWcjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
398
+ packageJson.exports["."] ??= _chunkB5TAG2NHcjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
403
399
  let entryPoints = [
404
400
  {
405
401
  in: "./src/index.ts",
@@ -417,7 +413,7 @@ async function generatePackageJson(context2) {
417
413
  const split = entryPoint.out.split(".");
418
414
  split.pop();
419
415
  const entry = split.join(".").replaceAll("\\", "/");
420
- packageJson.exports[`./${entry}`] ??= _chunk57Z7YYTWcjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
416
+ packageJson.exports[`./${entry}`] ??= _chunkB5TAG2NHcjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
421
417
  }
422
418
  }
423
419
  packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
@@ -496,7 +492,7 @@ async function copyBuildAssets(context2) {
496
492
  if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
497
493
  _chunkXZED6WF3cjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
498
494
  const stopwatch = _chunkXZED6WF3cjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
499
- await _chunk57Z7YYTWcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
495
+ await _chunkB5TAG2NHcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
500
496
  stopwatch();
501
497
  }
502
498
  return context2;
@@ -65,6 +65,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
65
65
  overrideTsconfig: {
66
66
  compilerOptions: {
67
67
  paths: {}
68
+ // bug with api extract + paths
68
69
  }
69
70
  }
70
71
  },
@@ -110,7 +111,7 @@ var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
110
111
  } else if (existsSync(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
111
112
  dtsPath = joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
112
113
  }
113
- const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
114
+ const ext = resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
114
115
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
115
116
  bundleTypeDefinitions(dtsPath, bundlePath, resolvedOptions.external ?? [], resolvedOptions);
116
117
  const dtsContents = await fs.readFile(`${bundlePath}.d.ts`, "utf8");
@@ -12,9 +12,8 @@ import {
12
12
  getConfig,
13
13
  getDefaultBuildPlugins,
14
14
  getEntryPoints,
15
- getEnv,
16
- getOutputExtensionMap
17
- } from "./chunk-D5ZZNDUG.js";
15
+ getEnv
16
+ } from "./chunk-JG2TBFYI.js";
18
17
  import {
19
18
  depsCheckPlugin
20
19
  } from "./chunk-7NZ2E6EC.js";
@@ -302,9 +301,6 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
302
301
  if (!existsSync(packageJsonPath)) {
303
302
  throw new Error("Cannot find package.json configuration");
304
303
  }
305
- const packageJsonFile = await hf.readFile(packageJsonPath, "utf8");
306
- const packageJson = JSON.parse(packageJsonFile);
307
- const outExtension = getOutputExtensionMap(options, packageJson.type);
308
304
  const env = getEnv("esbuild", options);
309
305
  const result = {
310
306
  ...options,
@@ -347,7 +343,6 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
347
343
  bundle: userOptions.bundle !== false,
348
344
  keepNames: true,
349
345
  watch: userOptions.watch === true,
350
- outExtension,
351
346
  footer: userOptions.footer,
352
347
  banner: {
353
348
  js: options.banner || DEFAULT_COMPILED_BANNER,
@@ -379,6 +374,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
379
374
  };
380
375
  result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
381
376
  delete result.entry;
377
+ delete result.outputPath;
382
378
  stopwatch();
383
379
  return result;
384
380
  }, "resolveOptions");
package/dist/clean.d.cts CHANGED
@@ -40,15 +40,15 @@ declare const StormConfigSchema: z.ZodObject<{
40
40
  build: z.ZodDefault<z.ZodString>;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  build: string;
43
+ config?: string | undefined;
43
44
  cache?: string | undefined;
44
45
  data?: string | undefined;
45
- config?: string | undefined;
46
46
  temp?: string | undefined;
47
47
  log?: string | undefined;
48
48
  }, {
49
+ config?: string | undefined;
49
50
  cache?: string | undefined;
50
51
  data?: string | undefined;
51
- config?: string | undefined;
52
52
  temp?: string | undefined;
53
53
  log?: string | undefined;
54
54
  build?: string | undefined;
@@ -795,6 +795,8 @@ declare const StormConfigSchema: z.ZodObject<{
795
795
  }>]>>]>]>;
796
796
  extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
797
797
  }, "strip", z.ZodTypeAny, {
798
+ logLevel: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all";
799
+ mode: "development" | "staging" | "production";
798
800
  organization: string;
799
801
  license: string;
800
802
  homepage: string;
@@ -806,22 +808,20 @@ declare const StormConfigSchema: z.ZodObject<{
806
808
  name: string;
807
809
  email: string;
808
810
  };
809
- mode: "development" | "staging" | "production";
810
811
  workspaceRoot: string;
811
812
  externalPackagePatterns: string[];
812
813
  skipCache: boolean;
813
814
  directories: {
814
815
  build: string;
816
+ config?: string | undefined;
815
817
  cache?: string | undefined;
816
818
  data?: string | undefined;
817
- config?: string | undefined;
818
819
  temp?: string | undefined;
819
820
  log?: string | undefined;
820
821
  };
821
822
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
822
823
  timezone: string;
823
824
  locale: string;
824
- logLevel: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all";
825
825
  registry: {
826
826
  npm?: string | undefined;
827
827
  github?: string | undefined;
@@ -978,9 +978,9 @@ declare const StormConfigSchema: z.ZodObject<{
978
978
  };
979
979
  }>;
980
980
  extensions: Record<string, any>;
981
+ name?: string | undefined;
981
982
  $schema?: string | null | undefined;
982
983
  extends?: string | string[] | undefined;
983
- name?: string | undefined;
984
984
  namespace?: string | undefined;
985
985
  repository?: string | undefined;
986
986
  preid?: string | undefined;
@@ -991,9 +991,9 @@ declare const StormConfigSchema: z.ZodObject<{
991
991
  email?: string | undefined;
992
992
  };
993
993
  directories: {
994
+ config?: string | undefined;
994
995
  cache?: string | undefined;
995
996
  data?: string | undefined;
996
- config?: string | undefined;
997
997
  temp?: string | undefined;
998
998
  log?: string | undefined;
999
999
  build?: string | undefined;
@@ -1145,9 +1145,11 @@ declare const StormConfigSchema: z.ZodObject<{
1145
1145
  background?: string | undefined;
1146
1146
  };
1147
1147
  }>;
1148
+ logLevel?: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all" | undefined;
1149
+ name?: string | undefined;
1150
+ mode?: "development" | "staging" | "production" | undefined;
1148
1151
  $schema?: string | null | undefined;
1149
1152
  extends?: string | string[] | undefined;
1150
- name?: string | undefined;
1151
1153
  namespace?: string | undefined;
1152
1154
  organization?: string | undefined;
1153
1155
  repository?: string | undefined;
@@ -1158,14 +1160,12 @@ declare const StormConfigSchema: z.ZodObject<{
1158
1160
  branch?: string | undefined;
1159
1161
  preid?: string | undefined;
1160
1162
  owner?: string | undefined;
1161
- mode?: "development" | "staging" | "production" | undefined;
1162
1163
  workspaceRoot?: string | undefined;
1163
1164
  externalPackagePatterns?: string[] | undefined;
1164
1165
  skipCache?: boolean | undefined;
1165
1166
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
1166
1167
  timezone?: string | undefined;
1167
1168
  locale?: string | undefined;
1168
- logLevel?: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
1169
1169
  skipConfigLogging?: boolean | undefined;
1170
1170
  registry?: {
1171
1171
  npm?: string | undefined;
package/dist/clean.d.ts CHANGED
@@ -40,15 +40,15 @@ declare const StormConfigSchema: z.ZodObject<{
40
40
  build: z.ZodDefault<z.ZodString>;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  build: string;
43
+ config?: string | undefined;
43
44
  cache?: string | undefined;
44
45
  data?: string | undefined;
45
- config?: string | undefined;
46
46
  temp?: string | undefined;
47
47
  log?: string | undefined;
48
48
  }, {
49
+ config?: string | undefined;
49
50
  cache?: string | undefined;
50
51
  data?: string | undefined;
51
- config?: string | undefined;
52
52
  temp?: string | undefined;
53
53
  log?: string | undefined;
54
54
  build?: string | undefined;
@@ -795,6 +795,8 @@ declare const StormConfigSchema: z.ZodObject<{
795
795
  }>]>>]>]>;
796
796
  extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
797
797
  }, "strip", z.ZodTypeAny, {
798
+ logLevel: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all";
799
+ mode: "development" | "staging" | "production";
798
800
  organization: string;
799
801
  license: string;
800
802
  homepage: string;
@@ -806,22 +808,20 @@ declare const StormConfigSchema: z.ZodObject<{
806
808
  name: string;
807
809
  email: string;
808
810
  };
809
- mode: "development" | "staging" | "production";
810
811
  workspaceRoot: string;
811
812
  externalPackagePatterns: string[];
812
813
  skipCache: boolean;
813
814
  directories: {
814
815
  build: string;
816
+ config?: string | undefined;
815
817
  cache?: string | undefined;
816
818
  data?: string | undefined;
817
- config?: string | undefined;
818
819
  temp?: string | undefined;
819
820
  log?: string | undefined;
820
821
  };
821
822
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
822
823
  timezone: string;
823
824
  locale: string;
824
- logLevel: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all";
825
825
  registry: {
826
826
  npm?: string | undefined;
827
827
  github?: string | undefined;
@@ -978,9 +978,9 @@ declare const StormConfigSchema: z.ZodObject<{
978
978
  };
979
979
  }>;
980
980
  extensions: Record<string, any>;
981
+ name?: string | undefined;
981
982
  $schema?: string | null | undefined;
982
983
  extends?: string | string[] | undefined;
983
- name?: string | undefined;
984
984
  namespace?: string | undefined;
985
985
  repository?: string | undefined;
986
986
  preid?: string | undefined;
@@ -991,9 +991,9 @@ declare const StormConfigSchema: z.ZodObject<{
991
991
  email?: string | undefined;
992
992
  };
993
993
  directories: {
994
+ config?: string | undefined;
994
995
  cache?: string | undefined;
995
996
  data?: string | undefined;
996
- config?: string | undefined;
997
997
  temp?: string | undefined;
998
998
  log?: string | undefined;
999
999
  build?: string | undefined;
@@ -1145,9 +1145,11 @@ declare const StormConfigSchema: z.ZodObject<{
1145
1145
  background?: string | undefined;
1146
1146
  };
1147
1147
  }>;
1148
+ logLevel?: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all" | undefined;
1149
+ name?: string | undefined;
1150
+ mode?: "development" | "staging" | "production" | undefined;
1148
1151
  $schema?: string | null | undefined;
1149
1152
  extends?: string | string[] | undefined;
1150
- name?: string | undefined;
1151
1153
  namespace?: string | undefined;
1152
1154
  organization?: string | undefined;
1153
1155
  repository?: string | undefined;
@@ -1158,14 +1160,12 @@ declare const StormConfigSchema: z.ZodObject<{
1158
1160
  branch?: string | undefined;
1159
1161
  preid?: string | undefined;
1160
1162
  owner?: string | undefined;
1161
- mode?: "development" | "staging" | "production" | undefined;
1162
1163
  workspaceRoot?: string | undefined;
1163
1164
  externalPackagePatterns?: string[] | undefined;
1164
1165
  skipCache?: boolean | undefined;
1165
1166
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
1166
1167
  timezone?: string | undefined;
1167
1168
  locale?: string | undefined;
1168
- logLevel?: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
1169
1169
  skipConfigLogging?: boolean | undefined;
1170
1170
  registry?: {
1171
1171
  npm?: string | undefined;
package/dist/config.cjs CHANGED
@@ -1,13 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
-
5
- var _chunk57Z7YYTWcjs = require('./chunk-57Z7YYTW.cjs');
4
+ var _chunkB5TAG2NHcjs = require('./chunk-B5TAG2NH.cjs');
6
5
  require('./chunk-S6M44SSZ.cjs');
7
6
  require('./chunk-WRBUO7H6.cjs');
8
7
  require('./chunk-GQQQCEJN.cjs');
9
8
  require('./chunk-SSEYS7LI.cjs');
10
- require('./chunk-A7M6QDWG.cjs');
9
+ require('./chunk-5IEA3WKU.cjs');
11
10
  require('./chunk-XZED6WF3.cjs');
12
11
  require('./chunk-XITTOHOG.cjs');
13
12
  require('./chunk-CGFDQ5AJ.cjs');
@@ -16,5 +15,4 @@ require('./chunk-BGYQAVKQ.cjs');
16
15
 
17
16
 
18
17
 
19
-
20
- exports.DEFAULT_BUILD_OPTIONS = _chunk57Z7YYTWcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunk57Z7YYTWcjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunk57Z7YYTWcjs.getOutputExtensionMap;
18
+ exports.DEFAULT_BUILD_OPTIONS = _chunkB5TAG2NHcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkB5TAG2NHcjs.getDefaultBuildPlugins;
package/dist/config.d.cts CHANGED
@@ -1,12 +1,11 @@
1
1
  import * as esbuild from 'esbuild';
2
- import { ESBuildOptions, OutExtensionObject, ESBuildResolvedOptions } from './types.cjs';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from './types.cjs';
3
3
  import '@nx/devkit';
4
4
  import '@storm-software/build-tools';
5
5
  import 'rollup';
6
6
  import 'source-map';
7
7
 
8
- declare const getOutputExtensionMap: (options: ESBuildOptions, pkgType: string | undefined) => OutExtensionObject;
9
8
  declare const getDefaultBuildPlugins: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin[];
10
9
  declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "format" | "platform" | "target" | "external" | "tsconfig" | "mode" | "keepNames" | "metafile" | "injectShims" | "color" | "watch" | "bundle" | "clean" | "debug" | "loader" | "banner" | "logLevel">>;
11
10
 
12
- export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins, getOutputExtensionMap };
11
+ export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins };
package/dist/config.d.ts CHANGED
@@ -1,12 +1,11 @@
1
1
  import * as esbuild from 'esbuild';
2
- import { ESBuildOptions, OutExtensionObject, ESBuildResolvedOptions } from './types.js';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from './types.js';
3
3
  import '@nx/devkit';
4
4
  import '@storm-software/build-tools';
5
5
  import 'rollup';
6
6
  import 'source-map';
7
7
 
8
- declare const getOutputExtensionMap: (options: ESBuildOptions, pkgType: string | undefined) => OutExtensionObject;
9
8
  declare const getDefaultBuildPlugins: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin[];
10
9
  declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "format" | "platform" | "target" | "external" | "tsconfig" | "mode" | "keepNames" | "metafile" | "injectShims" | "color" | "watch" | "bundle" | "clean" | "debug" | "loader" | "banner" | "logLevel">>;
11
10
 
12
- export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins, getOutputExtensionMap };
11
+ export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins };
package/dist/config.js CHANGED
@@ -1,13 +1,12 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS,
3
- getDefaultBuildPlugins,
4
- getOutputExtensionMap
5
- } from "./chunk-D5ZZNDUG.js";
3
+ getDefaultBuildPlugins
4
+ } from "./chunk-JG2TBFYI.js";
6
5
  import "./chunk-T5272PC2.js";
7
6
  import "./chunk-LYDEMC26.js";
8
7
  import "./chunk-IW7GZHF7.js";
9
8
  import "./chunk-Q3LOGZKI.js";
10
- import "./chunk-V23YDDCC.js";
9
+ import "./chunk-WYGGQUX3.js";
11
10
  import "./chunk-2HAHXU54.js";
12
11
  import "./chunk-YMTDVMD6.js";
13
12
  import "./chunk-YNQ45EAM.js";
@@ -15,6 +14,5 @@ import "./chunk-GWG4HOQ6.js";
15
14
  import "./chunk-3GQAWCBQ.js";
16
15
  export {
17
16
  DEFAULT_BUILD_OPTIONS,
18
- getDefaultBuildPlugins,
19
- getOutputExtensionMap
17
+ getDefaultBuildPlugins
20
18
  };
package/dist/index.cjs CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkA52PSAFBcjs = require('./chunk-A52PSAFB.cjs');
10
+ var _chunkWTBR5HERcjs = require('./chunk-WTBR5HER.cjs');
11
11
 
12
12
 
13
13
 
@@ -15,13 +15,12 @@ var _chunk62KAIAWTcjs = require('./chunk-62KAIAWT.cjs');
15
15
 
16
16
 
17
17
 
18
-
19
- var _chunk57Z7YYTWcjs = require('./chunk-57Z7YYTW.cjs');
18
+ var _chunkB5TAG2NHcjs = require('./chunk-B5TAG2NH.cjs');
20
19
  require('./chunk-S6M44SSZ.cjs');
21
20
  require('./chunk-WRBUO7H6.cjs');
22
21
  require('./chunk-GQQQCEJN.cjs');
23
22
  require('./chunk-SSEYS7LI.cjs');
24
- require('./chunk-A7M6QDWG.cjs');
23
+ require('./chunk-5IEA3WKU.cjs');
25
24
  require('./chunk-SFZRYJZ2.cjs');
26
25
  require('./chunk-VWP2SU7A.cjs');
27
26
  require('./chunk-XZED6WF3.cjs');
@@ -42,5 +41,4 @@ require('./chunk-BGYQAVKQ.cjs');
42
41
 
43
42
 
44
43
 
45
-
46
- exports.DEFAULT_BUILD_OPTIONS = _chunk57Z7YYTWcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkA52PSAFBcjs.Filter; exports.Mapper = _chunkA52PSAFBcjs.Mapper; exports.build = _chunkA52PSAFBcjs.build; exports.clean = _chunk62KAIAWTcjs.clean; exports.cleanDirectories = _chunk62KAIAWTcjs.cleanDirectories; exports.cleanOutputPath = _chunkA52PSAFBcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunk57Z7YYTWcjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunk57Z7YYTWcjs.getOutputExtensionMap; exports.handle = _chunkA52PSAFBcjs.handle; exports.pipe = _chunkA52PSAFBcjs.pipe; exports.skip = _chunkA52PSAFBcjs.skip; exports.transduce = _chunkA52PSAFBcjs.transduce;
44
+ exports.DEFAULT_BUILD_OPTIONS = _chunkB5TAG2NHcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkWTBR5HERcjs.Filter; exports.Mapper = _chunkWTBR5HERcjs.Mapper; exports.build = _chunkWTBR5HERcjs.build; exports.clean = _chunk62KAIAWTcjs.clean; exports.cleanDirectories = _chunk62KAIAWTcjs.cleanDirectories; exports.cleanOutputPath = _chunkWTBR5HERcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkB5TAG2NHcjs.getDefaultBuildPlugins; exports.handle = _chunkWTBR5HERcjs.handle; exports.pipe = _chunkWTBR5HERcjs.pipe; exports.skip = _chunkWTBR5HERcjs.skip; exports.transduce = _chunkWTBR5HERcjs.transduce;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { build, cleanOutputPath } from './build.cjs';
2
2
  export { clean, cleanDirectories } from './clean.cjs';
3
- export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins, getOutputExtensionMap } from './config.cjs';
4
- export { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions, OutExtensionFactory, OutExtensionObject, RenderChunk, Renderer, WrittenFile } from './types.cjs';
3
+ export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins } from './config.cjs';
4
+ export { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions, RenderChunk, Renderer, WrittenFile } from './types.cjs';
5
5
  import 'zod';
6
6
  import 'esbuild';
7
7
  import '@nx/devkit';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { build, cleanOutputPath } from './build.js';
2
2
  export { clean, cleanDirectories } from './clean.js';
3
- export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins, getOutputExtensionMap } from './config.js';
4
- export { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions, OutExtensionFactory, OutExtensionObject, RenderChunk, Renderer, WrittenFile } from './types.js';
3
+ export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins } from './config.js';
4
+ export { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions, RenderChunk, Renderer, WrittenFile } from './types.js';
5
5
  import 'zod';
6
6
  import 'esbuild';
7
7
  import '@nx/devkit';
package/dist/index.js CHANGED
@@ -7,21 +7,20 @@ import {
7
7
  pipe,
8
8
  skip,
9
9
  transduce
10
- } from "./chunk-2I66UWSZ.js";
10
+ } from "./chunk-ZDPALE64.js";
11
11
  import {
12
12
  clean,
13
13
  cleanDirectories
14
14
  } from "./chunk-DNJAV4NQ.js";
15
15
  import {
16
16
  DEFAULT_BUILD_OPTIONS,
17
- getDefaultBuildPlugins,
18
- getOutputExtensionMap
19
- } from "./chunk-D5ZZNDUG.js";
17
+ getDefaultBuildPlugins
18
+ } from "./chunk-JG2TBFYI.js";
20
19
  import "./chunk-T5272PC2.js";
21
20
  import "./chunk-LYDEMC26.js";
22
21
  import "./chunk-IW7GZHF7.js";
23
22
  import "./chunk-Q3LOGZKI.js";
24
- import "./chunk-V23YDDCC.js";
23
+ import "./chunk-WYGGQUX3.js";
25
24
  import "./chunk-GGNOJ77I.js";
26
25
  import "./chunk-7NZ2E6EC.js";
27
26
  import "./chunk-2HAHXU54.js";
@@ -38,7 +37,6 @@ export {
38
37
  cleanDirectories,
39
38
  cleanOutputPath,
40
39
  getDefaultBuildPlugins,
41
- getOutputExtensionMap,
42
40
  handle,
43
41
  pipe,
44
42
  skip,
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkA7M6QDWGcjs = require('../chunk-A7M6QDWG.cjs');
3
+ var _chunk5IEA3WKUcjs = require('../chunk-5IEA3WKU.cjs');
4
4
  require('../chunk-XZED6WF3.cjs');
5
5
  require('../chunk-XITTOHOG.cjs');
6
6
  require('../chunk-BGYQAVKQ.cjs');
7
7
 
8
8
 
9
- exports.tscPlugin = _chunkA7M6QDWGcjs.tscPlugin;
9
+ exports.tscPlugin = _chunk5IEA3WKUcjs.tscPlugin;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tscPlugin
3
- } from "../chunk-V23YDDCC.js";
3
+ } from "../chunk-WYGGQUX3.js";
4
4
  import "../chunk-2HAHXU54.js";
5
5
  import "../chunk-YMTDVMD6.js";
6
6
  import "../chunk-3GQAWCBQ.js";
package/dist/types.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ProjectGraph, ProjectsConfigurations } from '@nx/devkit';
2
2
  import { TypeScriptBuildOptions, TypeScriptBuildResolvedOptions, AdditionalCLIOptions } from '@storm-software/build-tools';
3
- import { BuildOptions, OutputFile, Metafile, Format, BuildResult } from 'esbuild';
3
+ import { BuildOptions, OutputFile, Metafile, BuildResult, Format } from 'esbuild';
4
4
  import { SourceMap } from 'rollup';
5
5
  import { RawSourceMap } from 'source-map';
6
6
 
@@ -17,24 +17,17 @@ declare class RendererEngine {
17
17
  }): Promise<void>;
18
18
  }
19
19
 
20
- type OutExtensionObject = {
21
- js?: string;
22
- dts?: string;
23
- };
24
- type OutExtensionFactory = (format?: Format, pkgType?: string) => OutExtensionObject;
25
20
  type ESBuildOptions = Omit<BuildOptions, "outbase" | "outfile" | "outExtension" | "banner" | "entryPoints"> & Omit<TypeScriptBuildOptions, "format"> & {
26
21
  emitTypes?: boolean;
27
22
  injectShims?: boolean;
28
- outExtension?: OutExtensionFactory;
29
23
  renderers?: Renderer[];
30
24
  };
31
25
  type ESBuildResult = BuildResult;
32
- type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "footer" | "target" | "format" | "sourcemap"> & Pick<BuildOptions, "loader" | "inject" | "metafile" | "keepNames" | "target" | "color" | "banner" | "footer" | "sourcemap"> & {
26
+ type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "footer" | "target" | "format" | "sourcemap" | "outExtension"> & Pick<BuildOptions, "loader" | "inject" | "metafile" | "keepNames" | "target" | "color" | "banner" | "footer" | "sourcemap"> & {
33
27
  injectShims: boolean;
34
28
  outdir: string;
35
29
  projectGraph: ProjectGraph;
36
30
  projectConfigurations: ProjectsConfigurations;
37
- outExtension: OutExtensionObject;
38
31
  entryPoints: string[];
39
32
  renderers?: Renderer[];
40
33
  format: Format;
@@ -91,4 +84,4 @@ type WrittenFile = {
91
84
  readonly size: number;
92
85
  };
93
86
 
94
- export type { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions, OutExtensionFactory, OutExtensionObject, RenderChunk, Renderer, WrittenFile };
87
+ export type { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions, RenderChunk, Renderer, WrittenFile };
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ProjectGraph, ProjectsConfigurations } from '@nx/devkit';
2
2
  import { TypeScriptBuildOptions, TypeScriptBuildResolvedOptions, AdditionalCLIOptions } from '@storm-software/build-tools';
3
- import { BuildOptions, OutputFile, Metafile, Format, BuildResult } from 'esbuild';
3
+ import { BuildOptions, OutputFile, Metafile, BuildResult, Format } from 'esbuild';
4
4
  import { SourceMap } from 'rollup';
5
5
  import { RawSourceMap } from 'source-map';
6
6
 
@@ -17,24 +17,17 @@ declare class RendererEngine {
17
17
  }): Promise<void>;
18
18
  }
19
19
 
20
- type OutExtensionObject = {
21
- js?: string;
22
- dts?: string;
23
- };
24
- type OutExtensionFactory = (format?: Format, pkgType?: string) => OutExtensionObject;
25
20
  type ESBuildOptions = Omit<BuildOptions, "outbase" | "outfile" | "outExtension" | "banner" | "entryPoints"> & Omit<TypeScriptBuildOptions, "format"> & {
26
21
  emitTypes?: boolean;
27
22
  injectShims?: boolean;
28
- outExtension?: OutExtensionFactory;
29
23
  renderers?: Renderer[];
30
24
  };
31
25
  type ESBuildResult = BuildResult;
32
- type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "footer" | "target" | "format" | "sourcemap"> & Pick<BuildOptions, "loader" | "inject" | "metafile" | "keepNames" | "target" | "color" | "banner" | "footer" | "sourcemap"> & {
26
+ type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "footer" | "target" | "format" | "sourcemap" | "outExtension"> & Pick<BuildOptions, "loader" | "inject" | "metafile" | "keepNames" | "target" | "color" | "banner" | "footer" | "sourcemap"> & {
33
27
  injectShims: boolean;
34
28
  outdir: string;
35
29
  projectGraph: ProjectGraph;
36
30
  projectConfigurations: ProjectsConfigurations;
37
- outExtension: OutExtensionObject;
38
31
  entryPoints: string[];
39
32
  renderers?: Renderer[];
40
33
  format: Format;
@@ -91,4 +84,4 @@ type WrittenFile = {
91
84
  readonly size: number;
92
85
  };
93
86
 
94
- export type { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions, OutExtensionFactory, OutExtensionObject, RenderChunk, Renderer, WrittenFile };
87
+ export type { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions, RenderChunk, Renderer, WrittenFile };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/esbuild",
3
- "version": "0.26.10",
3
+ "version": "0.26.12",
4
4
  "type": "module",
5
5
  "description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -170,7 +170,7 @@
170
170
  "@nx/js": "^20.3.1",
171
171
  "@storm-software/build-tools": "0.140.5",
172
172
  "@storm-software/config": "1.103.5",
173
- "@storm-software/config-tools": "1.155.9",
173
+ "@storm-software/config-tools": "1.155.10",
174
174
  "@types/node": "^22.10.2",
175
175
  "defu": "6.1.4",
176
176
  "esbuild": "^0.24.0",