@storm-software/esbuild 0.29.0 → 0.29.2

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.28.4-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.29.1-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
@@ -509,6 +509,18 @@ var DEFAULT_BUILD_OPTIONS = {
509
509
  bundle: true,
510
510
  clean: true,
511
511
  debug: false,
512
+ resolveExtensions: [
513
+ ".tsx",
514
+ ".ts",
515
+ ".cts",
516
+ ".mts",
517
+ ".jsx",
518
+ ".js",
519
+ ".cjs",
520
+ ".mjs",
521
+ ".css",
522
+ ".json"
523
+ ],
512
524
  loader: {
513
525
  ".aac": "file",
514
526
  ".css": "file",
@@ -744,16 +756,12 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
744
756
  "module",
745
757
  "main"
746
758
  ],
747
- resolveExtensions: [
748
- ".ts",
749
- ".js",
750
- ".node"
751
- ],
752
759
  ...userOptions,
753
760
  tsconfig: (0, import_correct_paths2.joinPaths)(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
754
761
  format: options.format || "cjs",
755
762
  entryPoints: await (0, import_build_tools.getEntryPoints)(config, projectRoot, projectJson.sourceRoot, userOptions.entry ?? "./src/index.ts", userOptions.emitOnAll === true),
756
763
  outdir: userOptions.outputPath || (0, import_correct_paths2.joinPaths)("dist", projectRoot),
764
+ distDir: userOptions.distDir || "dist",
757
765
  plugins: [],
758
766
  name: userOptions.name || projectName,
759
767
  projectConfigurations,
@@ -825,7 +833,7 @@ async function generatePackageJson(context2) {
825
833
  packageJson = await (0, import_build_tools.addWorkspacePackageJsonFields)(context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
826
834
  packageJson.exports ??= {};
827
835
  packageJson.exports["./package.json"] ??= "./package.json";
828
- packageJson.exports["."] ??= (0, import_build_tools.addPackageJsonExport)("index", packageJson.type, context2.options.sourceRoot);
836
+ packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
829
837
  let entryPoints = [
830
838
  {
831
839
  in: "./src/index.ts",
@@ -843,12 +851,15 @@ async function generatePackageJson(context2) {
843
851
  const split = entryPoint.out.split(".");
844
852
  split.pop();
845
853
  const entry = split.join(".").replaceAll("\\", "/");
846
- packageJson.exports[`./${entry}`] ??= (0, import_build_tools.addPackageJsonExport)(entry, packageJson.type, context2.options.sourceRoot);
854
+ packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
847
855
  }
848
856
  }
849
- packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
850
- packageJson.module = packageJson.type === "module" ? "./dist/index.js" : "./dist/index.mjs";
851
- packageJson.types = "./dist/index.d.ts";
857
+ if (context2.options.format === "esm") {
858
+ packageJson.module = packageJson.type === "module" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.mjs`;
859
+ } else {
860
+ packageJson.main = packageJson.type === "commonjs" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.cjs`;
861
+ }
862
+ packageJson.types = `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.d.ts`;
852
863
  packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
853
864
  if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
854
865
  ret[key.replace("/index", "")] = packageJson.exports[key];
@@ -900,6 +911,7 @@ async function executeEsBuild(context2) {
900
911
  delete options.debug;
901
912
  delete options.generatePackageJson;
902
913
  delete options.emitOnAll;
914
+ delete options.distDir;
903
915
  delete options.includeSrc;
904
916
  delete options.verbose;
905
917
  delete options.projectRoot;
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 _chunkSWIMNO2Pcjs = require('./chunk-SWIMNO2P.cjs');
4
+ var _chunkX63GR2QYcjs = require('./chunk-X63GR2QY.cjs');
5
5
  require('./chunk-DITM26C7.cjs');
6
- require('./chunk-WBI5JPFC.cjs');
6
+ require('./chunk-SCRZEL2M.cjs');
7
7
  require('./chunk-S6M44SSZ.cjs');
8
8
  require('./chunk-WRBUO7H6.cjs');
9
9
  require('./chunk-I2FH4C27.cjs');
@@ -18,4 +18,4 @@ require('./chunk-BGYQAVKQ.cjs');
18
18
 
19
19
 
20
20
 
21
- exports.build = _chunkSWIMNO2Pcjs.build; exports.cleanOutputPath = _chunkSWIMNO2Pcjs.cleanOutputPath;
21
+ exports.build = _chunkX63GR2QYcjs.build; exports.cleanOutputPath = _chunkX63GR2QYcjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-JNX3ZLGI.js";
4
+ } from "./chunk-D65MIXMC.js";
5
5
  import "./chunk-TUAAYWUJ.js";
6
- import "./chunk-OG5DUDGZ.js";
6
+ import "./chunk-RDDN3V2P.js";
7
7
  import "./chunk-T5272PC2.js";
8
8
  import "./chunk-LYDEMC26.js";
9
9
  import "./chunk-YWKYHSIN.js";
@@ -6,14 +6,13 @@ import {
6
6
  DEFAULT_COMPILED_BANNER,
7
7
  DEFAULT_TARGET,
8
8
  addPackageDependencies,
9
- addPackageJsonExport,
10
9
  addWorkspacePackageJsonFields,
11
10
  copyAssets,
12
11
  getConfig,
13
12
  getDefaultBuildPlugins,
14
13
  getEntryPoints,
15
14
  getEnv
16
- } from "./chunk-OG5DUDGZ.js";
15
+ } from "./chunk-RDDN3V2P.js";
17
16
  import {
18
17
  depsCheckPlugin
19
18
  } from "./chunk-NCMOSDGN.js";
@@ -314,16 +313,12 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
314
313
  "module",
315
314
  "main"
316
315
  ],
317
- resolveExtensions: [
318
- ".ts",
319
- ".js",
320
- ".node"
321
- ],
322
316
  ...userOptions,
323
317
  tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
324
318
  format: options.format || "cjs",
325
319
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry ?? "./src/index.ts", userOptions.emitOnAll === true),
326
320
  outdir: userOptions.outputPath || joinPaths("dist", projectRoot),
321
+ distDir: userOptions.distDir || "dist",
327
322
  plugins: [],
328
323
  name: userOptions.name || projectName,
329
324
  projectConfigurations,
@@ -395,7 +390,7 @@ async function generatePackageJson(context2) {
395
390
  packageJson = await addWorkspacePackageJsonFields(context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
396
391
  packageJson.exports ??= {};
397
392
  packageJson.exports["./package.json"] ??= "./package.json";
398
- packageJson.exports["."] ??= addPackageJsonExport("index", packageJson.type, context2.options.sourceRoot);
393
+ packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
399
394
  let entryPoints = [
400
395
  {
401
396
  in: "./src/index.ts",
@@ -413,12 +408,15 @@ async function generatePackageJson(context2) {
413
408
  const split = entryPoint.out.split(".");
414
409
  split.pop();
415
410
  const entry = split.join(".").replaceAll("\\", "/");
416
- packageJson.exports[`./${entry}`] ??= addPackageJsonExport(entry, packageJson.type, context2.options.sourceRoot);
411
+ packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
417
412
  }
418
413
  }
419
- packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
420
- packageJson.module = packageJson.type === "module" ? "./dist/index.js" : "./dist/index.mjs";
421
- packageJson.types = "./dist/index.d.ts";
414
+ if (context2.options.format === "esm") {
415
+ packageJson.module = packageJson.type === "module" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.mjs`;
416
+ } else {
417
+ packageJson.main = packageJson.type === "commonjs" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.cjs`;
418
+ }
419
+ packageJson.types = `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.d.ts`;
422
420
  packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
423
421
  if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
424
422
  ret[key.replace("/index", "")] = packageJson.exports[key];
@@ -470,6 +468,7 @@ async function executeEsBuild(context2) {
470
468
  delete options.debug;
471
469
  delete options.generatePackageJson;
472
470
  delete options.emitOnAll;
471
+ delete options.distDir;
473
472
  delete options.includeSrc;
474
473
  delete options.verbose;
475
474
  delete options.projectRoot;
@@ -44,11 +44,11 @@ import {
44
44
  } from "./chunk-3GQAWCBQ.js";
45
45
 
46
46
  // ../build-tools/src/config.ts
47
- var DEFAULT_COMPILED_BANNER = `
48
- /**
47
+ var DEFAULT_COMPILED_BANNER = `/*****************************************
48
+ *
49
49
  * \u26A1 Built by Storm Software
50
- */
51
-
50
+ *
51
+ *****************************************/
52
52
  `;
53
53
  var DEFAULT_ENVIRONMENT = "production";
54
54
  var DEFAULT_TARGET = "esnext";
@@ -229,26 +229,6 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ __name(async (config, projec
229
229
  packageJson.repository.directory ??= projectRoot ? projectRoot : joinPaths("packages", projectName);
230
230
  return packageJson;
231
231
  }, "addWorkspacePackageJsonFields");
232
- var addPackageJsonExport = /* @__PURE__ */ __name((file, type = "module", sourceRoot) => {
233
- let entry = file.replaceAll("\\", "/");
234
- if (sourceRoot) {
235
- entry = entry.replace(sourceRoot, "");
236
- }
237
- return {
238
- import: {
239
- types: `./dist/${entry}.d.${type === "module" ? "ts" : "mts"}`,
240
- default: `./dist/${entry}.${type === "module" ? "js" : "mjs"}`
241
- },
242
- require: {
243
- types: `./dist/${entry}.d.${type === "commonjs" ? "ts" : "cts"}`,
244
- default: `./dist/${entry}.${type === "commonjs" ? "js" : "cjs"}`
245
- },
246
- default: {
247
- types: `./dist/${entry}.d.ts`,
248
- default: `./dist/${entry}.js`
249
- }
250
- };
251
- }, "addPackageJsonExport");
252
232
 
253
233
  // ../config-tools/src/config-file/get-config-file.ts
254
234
  import { loadConfig } from "c12";
@@ -880,6 +860,18 @@ var DEFAULT_BUILD_OPTIONS = {
880
860
  bundle: true,
881
861
  clean: true,
882
862
  debug: false,
863
+ resolveExtensions: [
864
+ ".tsx",
865
+ ".ts",
866
+ ".cts",
867
+ ".mts",
868
+ ".jsx",
869
+ ".js",
870
+ ".cjs",
871
+ ".mjs",
872
+ ".css",
873
+ ".json"
874
+ ],
883
875
  loader: {
884
876
  ".aac": "file",
885
877
  ".css": "file",
@@ -910,7 +902,6 @@ export {
910
902
  copyAssets,
911
903
  addPackageDependencies,
912
904
  addWorkspacePackageJsonFields,
913
- addPackageJsonExport,
914
905
  getConfig,
915
906
  getEntryPoints,
916
907
  getEnv,
@@ -44,11 +44,11 @@ var _chunkEZGTDCYMcjs = require('./chunk-EZGTDCYM.cjs');
44
44
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
45
45
 
46
46
  // ../build-tools/src/config.ts
47
- var DEFAULT_COMPILED_BANNER = `
48
- /**
47
+ var DEFAULT_COMPILED_BANNER = `/*****************************************
48
+ *
49
49
  * \u26A1 Built by Storm Software
50
- */
51
-
50
+ *
51
+ *****************************************/
52
52
  `;
53
53
  var DEFAULT_ENVIRONMENT = "production";
54
54
  var DEFAULT_TARGET = "esnext";
@@ -229,26 +229,6 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.cal
229
229
  packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkXITTOHOGcjs.joinPaths.call(void 0, "packages", projectName);
230
230
  return packageJson;
231
231
  }, "addWorkspacePackageJsonFields");
232
- var addPackageJsonExport = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
233
- let entry = file.replaceAll("\\", "/");
234
- if (sourceRoot) {
235
- entry = entry.replace(sourceRoot, "");
236
- }
237
- return {
238
- import: {
239
- types: `./dist/${entry}.d.${type === "module" ? "ts" : "mts"}`,
240
- default: `./dist/${entry}.${type === "module" ? "js" : "mjs"}`
241
- },
242
- require: {
243
- types: `./dist/${entry}.d.${type === "commonjs" ? "ts" : "cts"}`,
244
- default: `./dist/${entry}.${type === "commonjs" ? "js" : "cjs"}`
245
- },
246
- default: {
247
- types: `./dist/${entry}.d.ts`,
248
- default: `./dist/${entry}.js`
249
- }
250
- };
251
- }, "addPackageJsonExport");
252
232
 
253
233
  // ../config-tools/src/config-file/get-config-file.ts
254
234
  var _c12 = require('c12');
@@ -880,6 +860,18 @@ var DEFAULT_BUILD_OPTIONS = {
880
860
  bundle: true,
881
861
  clean: true,
882
862
  debug: false,
863
+ resolveExtensions: [
864
+ ".tsx",
865
+ ".ts",
866
+ ".cts",
867
+ ".mts",
868
+ ".jsx",
869
+ ".js",
870
+ ".cjs",
871
+ ".mjs",
872
+ ".css",
873
+ ".json"
874
+ ],
883
875
  loader: {
884
876
  ".aac": "file",
885
877
  ".css": "file",
@@ -915,5 +907,4 @@ var DEFAULT_BUILD_OPTIONS = {
915
907
 
916
908
 
917
909
 
918
-
919
- 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;
910
+ exports.DEFAULT_COMPILED_BANNER = DEFAULT_COMPILED_BANNER; exports.DEFAULT_TARGET = DEFAULT_TARGET; exports.copyAssets = copyAssets; exports.addPackageDependencies = addPackageDependencies; exports.addWorkspacePackageJsonFields = addWorkspacePackageJsonFields; exports.getConfig = getConfig; exports.getEntryPoints = getEntryPoints; exports.getEnv = getEnv; exports.getDefaultBuildPlugins = getDefaultBuildPlugins; exports.DEFAULT_BUILD_OPTIONS = DEFAULT_BUILD_OPTIONS;
@@ -12,8 +12,7 @@ var _chunkDITM26C7cjs = require('./chunk-DITM26C7.cjs');
12
12
 
13
13
 
14
14
 
15
-
16
- var _chunkWBI5JPFCcjs = require('./chunk-WBI5JPFC.cjs');
15
+ var _chunkSCRZEL2Mcjs = require('./chunk-SCRZEL2M.cjs');
17
16
 
18
17
 
19
18
  var _chunkDEO4HWIAcjs = require('./chunk-DEO4HWIA.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 _chunkWBI5JPFCcjs.getConfig.call(void 0, workspaceRoot.dir);
280
+ const config = await _chunkSCRZEL2Mcjs.getConfig.call(void 0, workspaceRoot.dir);
282
281
  _chunkF665CCSScjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
283
282
  const stopwatch = _chunkF665CCSScjs.getStopwatch.call(void 0, "Build options resolution");
284
283
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
@@ -295,14 +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, _chunkWBI5JPFCcjs.DEFAULT_BUILD_OPTIONS);
297
+ const options = _defu2.default.call(void 0, userOptions, _chunkSCRZEL2Mcjs.DEFAULT_BUILD_OPTIONS);
299
298
  options.name ??= `${projectName}-${options.format}`;
300
- options.target ??= _chunkWBI5JPFCcjs.DEFAULT_TARGET;
299
+ options.target ??= _chunkSCRZEL2Mcjs.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 env = _chunkWBI5JPFCcjs.getEnv.call(void 0, "esbuild", options);
304
+ const env = _chunkSCRZEL2Mcjs.getEnv.call(void 0, "esbuild", options);
306
305
  const result = {
307
306
  ...options,
308
307
  config,
@@ -314,16 +313,12 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
314
313
  "module",
315
314
  "main"
316
315
  ],
317
- resolveExtensions: [
318
- ".ts",
319
- ".js",
320
- ".node"
321
- ],
322
316
  ...userOptions,
323
317
  tsconfig: _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
324
318
  format: options.format || "cjs",
325
- entryPoints: await _chunkWBI5JPFCcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), userOptions.emitOnAll === true),
319
+ entryPoints: await _chunkSCRZEL2Mcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), userOptions.emitOnAll === true),
326
320
  outdir: userOptions.outputPath || _chunkXITTOHOGcjs.joinPaths.call(void 0, "dist", projectRoot),
321
+ distDir: userOptions.distDir || "dist",
327
322
  plugins: [],
328
323
  name: userOptions.name || projectName,
329
324
  projectConfigurations,
@@ -344,8 +339,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
344
339
  watch: userOptions.watch === true,
345
340
  footer: userOptions.footer,
346
341
  banner: {
347
- js: options.banner || _chunkWBI5JPFCcjs.DEFAULT_COMPILED_BANNER,
348
- css: options.banner || _chunkWBI5JPFCcjs.DEFAULT_COMPILED_BANNER
342
+ js: options.banner || _chunkSCRZEL2Mcjs.DEFAULT_COMPILED_BANNER,
343
+ css: options.banner || _chunkSCRZEL2Mcjs.DEFAULT_COMPILED_BANNER
349
344
  },
350
345
  splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
351
346
  treeShaking: options.format === "esm",
@@ -372,7 +367,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
372
367
  ..._nullishCoalesce(options.inject, () => ( []))
373
368
  ].filter(Boolean)
374
369
  };
375
- result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkWBI5JPFCcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
370
+ result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkSCRZEL2Mcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
376
371
  delete result.entry;
377
372
  delete result.outputPath;
378
373
  stopwatch();
@@ -391,11 +386,11 @@ async function generatePackageJson(context2) {
391
386
  if (!packageJson) {
392
387
  throw new Error("Cannot find package.json configuration file");
393
388
  }
394
- packageJson = await _chunkWBI5JPFCcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
395
- packageJson = await _chunkWBI5JPFCcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
389
+ packageJson = await _chunkSCRZEL2Mcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
390
+ packageJson = await _chunkSCRZEL2Mcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
396
391
  packageJson.exports ??= {};
397
392
  packageJson.exports["./package.json"] ??= "./package.json";
398
- packageJson.exports["."] ??= _chunkWBI5JPFCcjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
393
+ packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
399
394
  let entryPoints = [
400
395
  {
401
396
  in: "./src/index.ts",
@@ -413,12 +408,15 @@ async function generatePackageJson(context2) {
413
408
  const split = entryPoint.out.split(".");
414
409
  split.pop();
415
410
  const entry = split.join(".").replaceAll("\\", "/");
416
- packageJson.exports[`./${entry}`] ??= _chunkWBI5JPFCcjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
411
+ packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
417
412
  }
418
413
  }
419
- packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
420
- packageJson.module = packageJson.type === "module" ? "./dist/index.js" : "./dist/index.mjs";
421
- packageJson.types = "./dist/index.d.ts";
414
+ if (context2.options.format === "esm") {
415
+ packageJson.module = packageJson.type === "module" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.mjs`;
416
+ } else {
417
+ packageJson.main = packageJson.type === "commonjs" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.cjs`;
418
+ }
419
+ packageJson.types = `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.d.ts`;
422
420
  packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
423
421
  if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
424
422
  ret[key.replace("/index", "")] = packageJson.exports[key];
@@ -470,6 +468,7 @@ async function executeEsBuild(context2) {
470
468
  delete options.debug;
471
469
  delete options.generatePackageJson;
472
470
  delete options.emitOnAll;
471
+ delete options.distDir;
473
472
  delete options.includeSrc;
474
473
  delete options.verbose;
475
474
  delete options.projectRoot;
@@ -494,7 +493,7 @@ async function copyBuildAssets(context2) {
494
493
  if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
495
494
  _chunkF665CCSScjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
496
495
  const stopwatch = _chunkF665CCSScjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
497
- await _chunkWBI5JPFCcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
496
+ await _chunkSCRZEL2Mcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
498
497
  stopwatch();
499
498
  }
500
499
  return context2;
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;
44
43
  cache?: string | undefined;
45
44
  data?: string | undefined;
45
+ config?: string | undefined;
46
46
  temp?: string | undefined;
47
47
  log?: string | undefined;
48
48
  }, {
49
- config?: string | undefined;
50
49
  cache?: string | undefined;
51
50
  data?: string | undefined;
51
+ config?: string | undefined;
52
52
  temp?: string | undefined;
53
53
  log?: string | undefined;
54
54
  build?: string | undefined;
@@ -795,8 +795,6 @@ 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";
800
798
  organization: string;
801
799
  license: string;
802
800
  homepage: string;
@@ -808,20 +806,22 @@ declare const StormConfigSchema: z.ZodObject<{
808
806
  name: string;
809
807
  email: string;
810
808
  };
809
+ mode: "development" | "staging" | "production";
811
810
  workspaceRoot: string;
812
811
  externalPackagePatterns: string[];
813
812
  skipCache: boolean;
814
813
  directories: {
815
814
  build: string;
816
- config?: string | undefined;
817
815
  cache?: string | undefined;
818
816
  data?: string | undefined;
817
+ config?: string | undefined;
819
818
  temp?: string | undefined;
820
819
  log?: string | undefined;
821
820
  };
822
821
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
823
822
  timezone: string;
824
823
  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;
982
981
  $schema?: string | null | undefined;
983
982
  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;
995
994
  cache?: string | undefined;
996
995
  data?: string | undefined;
996
+ config?: string | undefined;
997
997
  temp?: string | undefined;
998
998
  log?: string | undefined;
999
999
  build?: string | undefined;
@@ -1145,11 +1145,9 @@ 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;
1151
1148
  $schema?: string | null | undefined;
1152
1149
  extends?: string | string[] | undefined;
1150
+ name?: string | undefined;
1153
1151
  namespace?: string | undefined;
1154
1152
  organization?: string | undefined;
1155
1153
  repository?: string | undefined;
@@ -1160,12 +1158,14 @@ declare const StormConfigSchema: z.ZodObject<{
1160
1158
  branch?: string | undefined;
1161
1159
  preid?: string | undefined;
1162
1160
  owner?: string | undefined;
1161
+ mode?: "development" | "staging" | "production" | undefined;
1163
1162
  workspaceRoot?: string | undefined;
1164
1163
  externalPackagePatterns?: string[] | undefined;
1165
1164
  skipCache?: boolean | undefined;
1166
1165
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
1167
1166
  timezone?: string | undefined;
1168
1167
  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;
44
43
  cache?: string | undefined;
45
44
  data?: string | undefined;
45
+ config?: string | undefined;
46
46
  temp?: string | undefined;
47
47
  log?: string | undefined;
48
48
  }, {
49
- config?: string | undefined;
50
49
  cache?: string | undefined;
51
50
  data?: string | undefined;
51
+ config?: string | undefined;
52
52
  temp?: string | undefined;
53
53
  log?: string | undefined;
54
54
  build?: string | undefined;
@@ -795,8 +795,6 @@ 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";
800
798
  organization: string;
801
799
  license: string;
802
800
  homepage: string;
@@ -808,20 +806,22 @@ declare const StormConfigSchema: z.ZodObject<{
808
806
  name: string;
809
807
  email: string;
810
808
  };
809
+ mode: "development" | "staging" | "production";
811
810
  workspaceRoot: string;
812
811
  externalPackagePatterns: string[];
813
812
  skipCache: boolean;
814
813
  directories: {
815
814
  build: string;
816
- config?: string | undefined;
817
815
  cache?: string | undefined;
818
816
  data?: string | undefined;
817
+ config?: string | undefined;
819
818
  temp?: string | undefined;
820
819
  log?: string | undefined;
821
820
  };
822
821
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
823
822
  timezone: string;
824
823
  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;
982
981
  $schema?: string | null | undefined;
983
982
  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;
995
994
  cache?: string | undefined;
996
995
  data?: string | undefined;
996
+ config?: string | undefined;
997
997
  temp?: string | undefined;
998
998
  log?: string | undefined;
999
999
  build?: string | undefined;
@@ -1145,11 +1145,9 @@ 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;
1151
1148
  $schema?: string | null | undefined;
1152
1149
  extends?: string | string[] | undefined;
1150
+ name?: string | undefined;
1153
1151
  namespace?: string | undefined;
1154
1152
  organization?: string | undefined;
1155
1153
  repository?: string | undefined;
@@ -1160,12 +1158,14 @@ declare const StormConfigSchema: z.ZodObject<{
1160
1158
  branch?: string | undefined;
1161
1159
  preid?: string | undefined;
1162
1160
  owner?: string | undefined;
1161
+ mode?: "development" | "staging" | "production" | undefined;
1163
1162
  workspaceRoot?: string | undefined;
1164
1163
  externalPackagePatterns?: string[] | undefined;
1165
1164
  skipCache?: boolean | undefined;
1166
1165
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
1167
1166
  timezone?: string | undefined;
1168
1167
  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,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkWBI5JPFCcjs = require('./chunk-WBI5JPFC.cjs');
4
+ var _chunkSCRZEL2Mcjs = require('./chunk-SCRZEL2M.cjs');
5
5
  require('./chunk-S6M44SSZ.cjs');
6
6
  require('./chunk-WRBUO7H6.cjs');
7
7
  require('./chunk-I2FH4C27.cjs');
@@ -15,4 +15,4 @@ require('./chunk-BGYQAVKQ.cjs');
15
15
 
16
16
 
17
17
 
18
- exports.DEFAULT_BUILD_OPTIONS = _chunkWBI5JPFCcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkWBI5JPFCcjs.getDefaultBuildPlugins;
18
+ exports.DEFAULT_BUILD_OPTIONS = _chunkSCRZEL2Mcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkSCRZEL2Mcjs.getDefaultBuildPlugins;
package/dist/config.d.cts CHANGED
@@ -6,6 +6,6 @@ import 'rollup';
6
6
  import 'source-map';
7
7
 
8
8
  declare const getDefaultBuildPlugins: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin[];
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">>;
9
+ declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "format" | "platform" | "target" | "external" | "tsconfig" | "mode" | "keepNames" | "metafile" | "injectShims" | "color" | "watch" | "bundle" | "clean" | "debug" | "resolveExtensions" | "loader" | "banner" | "logLevel">>;
10
10
 
11
11
  export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins };
package/dist/config.d.ts CHANGED
@@ -6,6 +6,6 @@ import 'rollup';
6
6
  import 'source-map';
7
7
 
8
8
  declare const getDefaultBuildPlugins: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin[];
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">>;
9
+ declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "format" | "platform" | "target" | "external" | "tsconfig" | "mode" | "keepNames" | "metafile" | "injectShims" | "color" | "watch" | "bundle" | "clean" | "debug" | "resolveExtensions" | "loader" | "banner" | "logLevel">>;
10
10
 
11
11
  export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins };
package/dist/config.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS,
3
3
  getDefaultBuildPlugins
4
- } from "./chunk-OG5DUDGZ.js";
4
+ } from "./chunk-RDDN3V2P.js";
5
5
  import "./chunk-T5272PC2.js";
6
6
  import "./chunk-LYDEMC26.js";
7
7
  import "./chunk-YWKYHSIN.js";
package/dist/index.cjs CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkSWIMNO2Pcjs = require('./chunk-SWIMNO2P.cjs');
10
+ var _chunkX63GR2QYcjs = require('./chunk-X63GR2QY.cjs');
11
11
 
12
12
 
13
13
 
@@ -15,7 +15,7 @@ var _chunkDITM26C7cjs = require('./chunk-DITM26C7.cjs');
15
15
 
16
16
 
17
17
 
18
- var _chunkWBI5JPFCcjs = require('./chunk-WBI5JPFC.cjs');
18
+ var _chunkSCRZEL2Mcjs = require('./chunk-SCRZEL2M.cjs');
19
19
  require('./chunk-S6M44SSZ.cjs');
20
20
  require('./chunk-WRBUO7H6.cjs');
21
21
  require('./chunk-I2FH4C27.cjs');
@@ -41,4 +41,4 @@ require('./chunk-BGYQAVKQ.cjs');
41
41
 
42
42
 
43
43
 
44
- exports.DEFAULT_BUILD_OPTIONS = _chunkWBI5JPFCcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkSWIMNO2Pcjs.Filter; exports.Mapper = _chunkSWIMNO2Pcjs.Mapper; exports.build = _chunkSWIMNO2Pcjs.build; exports.clean = _chunkDITM26C7cjs.clean; exports.cleanDirectories = _chunkDITM26C7cjs.cleanDirectories; exports.cleanOutputPath = _chunkSWIMNO2Pcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkWBI5JPFCcjs.getDefaultBuildPlugins; exports.handle = _chunkSWIMNO2Pcjs.handle; exports.pipe = _chunkSWIMNO2Pcjs.pipe; exports.skip = _chunkSWIMNO2Pcjs.skip; exports.transduce = _chunkSWIMNO2Pcjs.transduce;
44
+ exports.DEFAULT_BUILD_OPTIONS = _chunkSCRZEL2Mcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkX63GR2QYcjs.Filter; exports.Mapper = _chunkX63GR2QYcjs.Mapper; exports.build = _chunkX63GR2QYcjs.build; exports.clean = _chunkDITM26C7cjs.clean; exports.cleanDirectories = _chunkDITM26C7cjs.cleanDirectories; exports.cleanOutputPath = _chunkX63GR2QYcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkSCRZEL2Mcjs.getDefaultBuildPlugins; exports.handle = _chunkX63GR2QYcjs.handle; exports.pipe = _chunkX63GR2QYcjs.pipe; exports.skip = _chunkX63GR2QYcjs.skip; exports.transduce = _chunkX63GR2QYcjs.transduce;
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  pipe,
8
8
  skip,
9
9
  transduce
10
- } from "./chunk-JNX3ZLGI.js";
10
+ } from "./chunk-D65MIXMC.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-OG5DUDGZ.js";
18
+ } from "./chunk-RDDN3V2P.js";
19
19
  import "./chunk-T5272PC2.js";
20
20
  import "./chunk-LYDEMC26.js";
21
21
  import "./chunk-YWKYHSIN.js";
package/dist/types.d.cts CHANGED
@@ -21,6 +21,7 @@ type ESBuildOptions = Omit<BuildOptions, "outbase" | "outfile" | "outExtension"
21
21
  emitTypes?: boolean;
22
22
  injectShims?: boolean;
23
23
  renderers?: Renderer[];
24
+ distDir?: string;
24
25
  };
25
26
  type ESBuildResult = BuildResult;
26
27
  type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "footer" | "target" | "format" | "sourcemap" | "outExtension"> & Pick<BuildOptions, "loader" | "inject" | "metafile" | "keepNames" | "target" | "color" | "banner" | "footer" | "sourcemap"> & {
@@ -31,6 +32,7 @@ type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "f
31
32
  entryPoints: string[];
32
33
  renderers?: Renderer[];
33
34
  format: Format;
35
+ distDir: string;
34
36
  };
35
37
  type ESBuildCLIOptions = AdditionalCLIOptions & Pick<ESBuildOptions, "name" | "entry" | "outputPath" | "platform" | "format" | "bundle" | "target" | "watch" | "clean" | "debug" | "banner" | "footer" | "splitting" | "treeShaking" | "generatePackageJson" | "emitOnAll" | "metafile" | "minify" | "includeSrc" | "verbose" | "emitTypes" | "injectShims">;
36
38
  type ESBuildContext = {
package/dist/types.d.ts CHANGED
@@ -21,6 +21,7 @@ type ESBuildOptions = Omit<BuildOptions, "outbase" | "outfile" | "outExtension"
21
21
  emitTypes?: boolean;
22
22
  injectShims?: boolean;
23
23
  renderers?: Renderer[];
24
+ distDir?: string;
24
25
  };
25
26
  type ESBuildResult = BuildResult;
26
27
  type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "footer" | "target" | "format" | "sourcemap" | "outExtension"> & Pick<BuildOptions, "loader" | "inject" | "metafile" | "keepNames" | "target" | "color" | "banner" | "footer" | "sourcemap"> & {
@@ -31,6 +32,7 @@ type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "f
31
32
  entryPoints: string[];
32
33
  renderers?: Renderer[];
33
34
  format: Format;
35
+ distDir: string;
34
36
  };
35
37
  type ESBuildCLIOptions = AdditionalCLIOptions & Pick<ESBuildOptions, "name" | "entry" | "outputPath" | "platform" | "format" | "bundle" | "target" | "watch" | "clean" | "debug" | "banner" | "footer" | "splitting" | "treeShaking" | "generatePackageJson" | "emitOnAll" | "metafile" | "minify" | "includeSrc" | "verbose" | "emitTypes" | "injectShims">;
36
38
  type ESBuildContext = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/esbuild",
3
- "version": "0.29.0",
3
+ "version": "0.29.2",
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.3.1",
174
174
  "@nx/js": "^20.3.1",
175
- "@storm-software/build-tools": "0.141.0",
176
- "@storm-software/config": "1.106.0",
177
- "@storm-software/config-tools": "1.158.0",
175
+ "@storm-software/build-tools": "0.141.2",
176
+ "@storm-software/config": "1.106.1",
177
+ "@storm-software/config-tools": "1.158.1",
178
178
  "@types/node": "^22.10.2",
179
179
  "rollup": "4.29.1",
180
180
  "spdx-exceptions": "^2.5.0",