@storm-software/esbuild 0.24.4 → 0.24.5

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.
Files changed (36) hide show
  1. package/bin/esbuild.cjs +1 -1
  2. package/dist/build.cjs +8 -8
  3. package/dist/build.js +7 -7
  4. package/dist/{chunk-D6KDL53G.js → chunk-2HAHXU54.js} +2 -2
  5. package/dist/{chunk-ZPV4MFLS.cjs → chunk-57Z7YYTW.cjs} +39 -39
  6. package/dist/{chunk-Q7K2MKJS.cjs → chunk-62KAIAWT.cjs} +3 -3
  7. package/dist/{chunk-UOMGQ2T3.js → chunk-7NZ2E6EC.js} +1 -1
  8. package/dist/{chunk-6RYUOHHQ.cjs → chunk-A7M6QDWG.cjs} +2 -2
  9. package/dist/{chunk-7UYZTNGE.js → chunk-D5ZZNDUG.js} +10 -10
  10. package/dist/{chunk-M4U64EJG.js → chunk-DNJAV4NQ.js} +1 -1
  11. package/dist/{chunk-M3OOEUTH.cjs → chunk-GQQQCEJN.cjs} +2 -2
  12. package/dist/{chunk-DEQ3NJFX.js → chunk-IW7GZHF7.js} +1 -1
  13. package/dist/{chunk-WQPBFWHA.js → chunk-K5YRZ5LC.js} +4 -4
  14. package/dist/{chunk-YXP75YVC.js → chunk-V23YDDCC.js} +1 -1
  15. package/dist/{chunk-2MIBIYGU.cjs → chunk-VWP2SU7A.cjs} +3 -3
  16. package/dist/{chunk-VKJZVZO3.cjs → chunk-XRLQUA2X.cjs} +39 -39
  17. package/dist/{chunk-UTVDQAK2.cjs → chunk-XZED6WF3.cjs} +2 -2
  18. package/dist/clean.cjs +3 -3
  19. package/dist/clean.d.cts +3 -3
  20. package/dist/clean.d.ts +3 -3
  21. package/dist/clean.js +2 -2
  22. package/dist/config.cjs +5 -5
  23. package/dist/config.d.cts +1 -1
  24. package/dist/config.d.ts +1 -1
  25. package/dist/config.js +4 -4
  26. package/dist/index.cjs +8 -8
  27. package/dist/index.js +7 -7
  28. package/dist/plugins/deps-check.cjs +3 -3
  29. package/dist/plugins/deps-check.js +2 -2
  30. package/dist/plugins/on-error.cjs +3 -3
  31. package/dist/plugins/on-error.js +2 -2
  32. package/dist/plugins/tsc.cjs +3 -3
  33. package/dist/plugins/tsc.js +2 -2
  34. package/dist/types.d.cts +1 -1
  35. package/dist/types.d.ts +1 -1
  36. package/package.json +3 -9
package/bin/esbuild.cjs CHANGED
@@ -574,7 +574,7 @@ var DEFAULT_BUILD_OPTIONS = {
574
574
  external: [],
575
575
  logLevel: "error",
576
576
  tsconfig: "tsconfig.json",
577
- envName: "production",
577
+ mode: "production",
578
578
  keepNames: true,
579
579
  metafile: true,
580
580
  injectShims: true,
package/dist/build.cjs CHANGED
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkVKJZVZO3cjs = require('./chunk-VKJZVZO3.cjs');
5
- require('./chunk-Q7K2MKJS.cjs');
6
- require('./chunk-ZPV4MFLS.cjs');
4
+ var _chunkXRLQUA2Xcjs = require('./chunk-XRLQUA2X.cjs');
5
+ require('./chunk-62KAIAWT.cjs');
6
+ require('./chunk-57Z7YYTW.cjs');
7
7
  require('./chunk-S6M44SSZ.cjs');
8
8
  require('./chunk-WRBUO7H6.cjs');
9
- require('./chunk-M3OOEUTH.cjs');
9
+ require('./chunk-GQQQCEJN.cjs');
10
10
  require('./chunk-SSEYS7LI.cjs');
11
- require('./chunk-6RYUOHHQ.cjs');
12
- require('./chunk-2MIBIYGU.cjs');
13
- require('./chunk-UTVDQAK2.cjs');
11
+ require('./chunk-A7M6QDWG.cjs');
12
+ require('./chunk-VWP2SU7A.cjs');
13
+ require('./chunk-XZED6WF3.cjs');
14
14
  require('./chunk-XITTOHOG.cjs');
15
15
  require('./chunk-CGFDQ5AJ.cjs');
16
16
  require('./chunk-EZGTDCYM.cjs');
@@ -18,4 +18,4 @@ require('./chunk-BGYQAVKQ.cjs');
18
18
 
19
19
 
20
20
 
21
- exports.build = _chunkVKJZVZO3cjs.build; exports.cleanOutputPath = _chunkVKJZVZO3cjs.cleanOutputPath;
21
+ exports.build = _chunkXRLQUA2Xcjs.build; exports.cleanOutputPath = _chunkXRLQUA2Xcjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-WQPBFWHA.js";
5
- import "./chunk-M4U64EJG.js";
6
- import "./chunk-7UYZTNGE.js";
4
+ } from "./chunk-K5YRZ5LC.js";
5
+ import "./chunk-DNJAV4NQ.js";
6
+ import "./chunk-D5ZZNDUG.js";
7
7
  import "./chunk-T5272PC2.js";
8
8
  import "./chunk-LYDEMC26.js";
9
- import "./chunk-DEQ3NJFX.js";
9
+ import "./chunk-IW7GZHF7.js";
10
10
  import "./chunk-Q3LOGZKI.js";
11
- import "./chunk-YXP75YVC.js";
12
- import "./chunk-UOMGQ2T3.js";
13
- import "./chunk-D6KDL53G.js";
11
+ import "./chunk-V23YDDCC.js";
12
+ import "./chunk-7NZ2E6EC.js";
13
+ import "./chunk-2HAHXU54.js";
14
14
  import "./chunk-YMTDVMD6.js";
15
15
  import "./chunk-YNQ45EAM.js";
16
16
  import "./chunk-GWG4HOQ6.js";
@@ -203,11 +203,11 @@ var StormConfigSchema = z.object({
203
203
  preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
204
204
  owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
205
205
  bot: WorkspaceBotConfigSchema,
206
- env: z.enum([
206
+ mode: z.enum([
207
207
  "development",
208
208
  "staging",
209
209
  "production"
210
- ]).default("production").describe("The current runtime environment name for the package"),
210
+ ]).default("production").describe("The current runtime environment mode for the package"),
211
211
  workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
212
212
  externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
213
213
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
@@ -6,13 +6,13 @@ var _chunkS6M44SSZcjs = require('./chunk-S6M44SSZ.cjs');
6
6
  var _chunkWRBUO7H6cjs = require('./chunk-WRBUO7H6.cjs');
7
7
 
8
8
 
9
- var _chunkM3OOEUTHcjs = require('./chunk-M3OOEUTH.cjs');
9
+ var _chunkGQQQCEJNcjs = require('./chunk-GQQQCEJN.cjs');
10
10
 
11
11
 
12
12
  var _chunkSSEYS7LIcjs = require('./chunk-SSEYS7LI.cjs');
13
13
 
14
14
 
15
- var _chunk6RYUOHHQcjs = require('./chunk-6RYUOHHQ.cjs');
15
+ var _chunkA7M6QDWGcjs = require('./chunk-A7M6QDWG.cjs');
16
16
 
17
17
 
18
18
 
@@ -28,7 +28,7 @@ var _chunk6RYUOHHQcjs = require('./chunk-6RYUOHHQ.cjs');
28
28
 
29
29
 
30
30
 
31
- var _chunkUTVDQAK2cjs = require('./chunk-UTVDQAK2.cjs');
31
+ var _chunkXZED6WF3cjs = require('./chunk-XZED6WF3.cjs');
32
32
 
33
33
 
34
34
 
@@ -97,7 +97,7 @@ var copyAssets = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (co
97
97
  output: "src/"
98
98
  });
99
99
  }
100
- _chunkUTVDQAK2cjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
100
+ _chunkXZED6WF3cjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
101
101
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkXITTOHOGcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
102
102
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
103
103
  projectDir: projectRoot,
@@ -107,7 +107,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
107
107
  });
108
108
  await assetHandler.processAllAssetsOnce();
109
109
  if (includeSrc === true) {
110
- _chunkUTVDQAK2cjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXITTOHOGcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
110
+ _chunkXZED6WF3cjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXITTOHOGcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
111
111
  const files = await _glob.glob.call(void 0, [
112
112
  _chunkXITTOHOGcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
113
113
  _chunkXITTOHOGcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
@@ -146,7 +146,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
146
146
  }
147
147
  }
148
148
  if (localPackages.length > 0) {
149
- _chunkUTVDQAK2cjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
149
+ _chunkXZED6WF3cjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
150
150
  const projectJsonFile = await _promises.readFile.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
151
151
  const projectJson = JSON.parse(projectJsonFile);
152
152
  const projectName2 = projectJson.name;
@@ -180,12 +180,12 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
180
180
  return ret;
181
181
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
182
182
  } else {
183
- _chunkUTVDQAK2cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
183
+ _chunkXZED6WF3cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
184
184
  }
185
185
  return packageJson;
186
186
  }, "addPackageDependencies");
187
187
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
188
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkUTVDQAK2cjs.findWorkspaceRoot.call(void 0, );
188
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkXZED6WF3cjs.findWorkspaceRoot.call(void 0, );
189
189
  const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
190
190
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
191
191
  packageJson.type ??= "module";
@@ -254,7 +254,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
254
254
  var _c12 = require('c12');
255
255
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
256
256
  var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
257
- const workspacePath = filePath || _chunkUTVDQAK2cjs.findWorkspaceRoot.call(void 0, filePath);
257
+ const workspacePath = filePath || _chunkXZED6WF3cjs.findWorkspaceRoot.call(void 0, filePath);
258
258
  const configs = await Promise.all([
259
259
  _c12.loadConfig.call(void 0, {
260
260
  cwd: workspacePath,
@@ -283,12 +283,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
283
283
  return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
284
284
  }, "getConfigFileByName");
285
285
  var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
286
- const workspacePath = filePath ? filePath : _chunkUTVDQAK2cjs.findWorkspaceRoot.call(void 0, filePath);
286
+ const workspacePath = filePath ? filePath : _chunkXZED6WF3cjs.findWorkspaceRoot.call(void 0, filePath);
287
287
  const result = await getConfigFileByName("storm-workspace", workspacePath);
288
288
  let config = result.config;
289
289
  const configFile = result.configFile;
290
290
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
291
- _chunkUTVDQAK2cjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
291
+ _chunkXZED6WF3cjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
292
292
  logLevel: "all"
293
293
  });
294
294
  }
@@ -297,7 +297,7 @@ var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
297
297
  for (const result2 of results) {
298
298
  if (_optionalChain([result2, 'optionalAccess', _18 => _18.config]) && _optionalChain([result2, 'optionalAccess', _19 => _19.configFile]) && Object.keys(result2.config).length > 0) {
299
299
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
300
- _chunkUTVDQAK2cjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
300
+ _chunkXZED6WF3cjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
301
301
  logLevel: "all"
302
302
  });
303
303
  }
@@ -356,7 +356,7 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
356
356
  build: process.env[`${prefix}BUILD_DIR`] ? _chunkXITTOHOGcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
357
357
  },
358
358
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
359
- env: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}ENV`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
359
+ mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
360
360
  // ci:
361
361
  // process.env[`${prefix}CI`] !== undefined
362
362
  // ? Boolean(
@@ -376,24 +376,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
376
376
  cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
377
377
  container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
378
378
  },
379
- logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? _chunkUTVDQAK2cjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
379
+ logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? _chunkXZED6WF3cjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
380
380
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
381
381
  };
382
- const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkUTVDQAK2cjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
382
+ const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkXZED6WF3cjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
383
383
  config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
384
384
  ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
385
385
  return ret;
386
386
  }, {}) : getThemeColorConfigEnv(prefix);
387
- if (config.docs === _chunkUTVDQAK2cjs.STORM_DEFAULT_DOCS) {
388
- if (config.homepage === _chunkUTVDQAK2cjs.STORM_DEFAULT_HOMEPAGE) {
389
- config.docs = `${_chunkUTVDQAK2cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
387
+ if (config.docs === _chunkXZED6WF3cjs.STORM_DEFAULT_DOCS) {
388
+ if (config.homepage === _chunkXZED6WF3cjs.STORM_DEFAULT_HOMEPAGE) {
389
+ config.docs = `${_chunkXZED6WF3cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
390
390
  } else {
391
391
  config.docs = `${config.homepage}/docs`;
392
392
  }
393
393
  }
394
- if (config.licensing === _chunkUTVDQAK2cjs.STORM_DEFAULT_LICENSING) {
395
- if (config.homepage === _chunkUTVDQAK2cjs.STORM_DEFAULT_HOMEPAGE) {
396
- config.licensing = `${_chunkUTVDQAK2cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
394
+ if (config.licensing === _chunkXZED6WF3cjs.STORM_DEFAULT_LICENSING) {
395
+ if (config.homepage === _chunkXZED6WF3cjs.STORM_DEFAULT_HOMEPAGE) {
396
+ config.licensing = `${_chunkXZED6WF3cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
397
397
  } else {
398
398
  config.licensing = `${config.homepage}/docs`;
399
399
  }
@@ -565,10 +565,10 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
565
565
  process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
566
566
  }
567
567
  }
568
- if (config.env) {
569
- process.env[`${prefix}ENV`] = config.env;
570
- process.env.NODE_ENV = config.env;
571
- process.env.ENVIRONMENT = config.env;
568
+ if (config.mode) {
569
+ process.env[`${prefix}MODE`] = config.mode;
570
+ process.env.NODE_ENV = config.mode;
571
+ process.env.ENVIRONMENT = config.mode;
572
572
  }
573
573
  if (_optionalChain([config, 'access', _32 => _32.colors, 'optionalAccess', _33 => _33.base, 'optionalAccess', _34 => _34.light]) || _optionalChain([config, 'access', _35 => _35.colors, 'optionalAccess', _36 => _36.base, 'optionalAccess', _37 => _37.dark])) {
574
574
  for (const key of Object.keys(config.colors)) {
@@ -609,8 +609,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
609
609
  if (config.logLevel) {
610
610
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
611
611
  process.env.LOG_LEVEL = String(config.logLevel);
612
- process.env.NX_VERBOSE_LOGGING = String(_chunkUTVDQAK2cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkUTVDQAK2cjs.LogLevel.DEBUG ? true : false);
613
- process.env.RUST_BACKTRACE = _chunkUTVDQAK2cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkUTVDQAK2cjs.LogLevel.DEBUG ? "full" : "none";
612
+ process.env.NX_VERBOSE_LOGGING = String(_chunkXZED6WF3cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkXZED6WF3cjs.LogLevel.DEBUG ? true : false);
613
+ process.env.RUST_BACKTRACE = _chunkXZED6WF3cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkXZED6WF3cjs.LogLevel.DEBUG ? "full" : "none";
614
614
  }
615
615
  if (config.skipConfigLogging !== void 0) {
616
616
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
@@ -726,17 +726,17 @@ var createStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, as
726
726
  if (!_optionalChain([_static_cache, 'optionalAccess', _42 => _42.data]) || !_optionalChain([_static_cache, 'optionalAccess', _43 => _43.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
727
727
  let _workspaceRoot = workspaceRoot;
728
728
  if (!_workspaceRoot) {
729
- _workspaceRoot = _chunkUTVDQAK2cjs.findWorkspaceRoot.call(void 0, );
729
+ _workspaceRoot = _chunkXZED6WF3cjs.findWorkspaceRoot.call(void 0, );
730
730
  }
731
731
  const configEnv = getConfigEnv();
732
- const defaultConfig = await _chunkUTVDQAK2cjs.getDefaultConfig.call(void 0, _workspaceRoot);
732
+ const defaultConfig = await _chunkXZED6WF3cjs.getDefaultConfig.call(void 0, _workspaceRoot);
733
733
  const configFile = await getConfigFile(_workspaceRoot);
734
734
  if (!configFile && !skipLogs) {
735
- _chunkUTVDQAK2cjs.writeWarning.call(void 0, "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
735
+ _chunkXZED6WF3cjs.writeWarning.call(void 0, "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
736
736
  logLevel: "all"
737
737
  });
738
738
  }
739
- result = await _chunkUTVDQAK2cjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
739
+ result = await _chunkXZED6WF3cjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
740
740
  result.workspaceRoot ??= _workspaceRoot;
741
741
  } else {
742
742
  result = _static_cache.data;
@@ -771,8 +771,8 @@ var loadStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, asyn
771
771
  const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
772
772
  setConfigEnv(config);
773
773
  if (!skipLogs && !config.skipConfigLogging) {
774
- _chunkUTVDQAK2cjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
775
- ${_chunkUTVDQAK2cjs.formatLogMessage.call(void 0, config)}`, config);
774
+ _chunkXZED6WF3cjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
775
+ ${_chunkXZED6WF3cjs.formatLogMessage.call(void 0, config)}`, config);
776
776
  }
777
777
  return config;
778
778
  }, "loadStormConfig");
@@ -785,7 +785,7 @@ var getConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (workspace
785
785
  // ../build-tools/src/utilities/get-entry-points.ts
786
786
 
787
787
  var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
788
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkUTVDQAK2cjs.findWorkspaceRoot.call(void 0, );
788
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkXZED6WF3cjs.findWorkspaceRoot.call(void 0, );
789
789
  const entryPoints = [];
790
790
  if (entry) {
791
791
  if (Array.isArray(entry)) {
@@ -808,7 +808,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
808
808
  results.push(...files.reduce((ret, filePath) => {
809
809
  const result = _chunkXITTOHOGcjs.correctPaths.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXITTOHOGcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXITTOHOGcjs.correctPaths.call(void 0, projectRoot), ""));
810
810
  if (result) {
811
- _chunkUTVDQAK2cjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXITTOHOGcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
811
+ _chunkXZED6WF3cjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXITTOHOGcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
812
812
  if (!results.includes(result)) {
813
813
  results.push(result);
814
814
  }
@@ -828,7 +828,7 @@ var getEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (builder, opt
828
828
  STORM_BUILD: builder,
829
829
  STORM_ORG: options.orgName || DEFAULT_ORGANIZATION,
830
830
  STORM_NAME: options.name,
831
- STORM_ENV: options.envName || DEFAULT_ENVIRONMENT,
831
+ STORM_MODE: options.mode || DEFAULT_ENVIRONMENT,
832
832
  STORM_PLATFORM: options.platform,
833
833
  STORM_FORMAT: JSON.stringify(options.format),
834
834
  STORM_TARGET: JSON.stringify(options.target),
@@ -875,8 +875,8 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
875
875
  _chunkEZGTDCYMcjs.fixImportsPlugin.call(void 0, options, resolvedOptions),
876
876
  _chunkS6M44SSZcjs.nativeNodeModulesPlugin.call(void 0, options, resolvedOptions),
877
877
  _chunkCGFDQ5AJcjs.esmSplitCodeToCjsPlugin.call(void 0, options, resolvedOptions),
878
- _chunk6RYUOHHQcjs.tscPlugin.call(void 0, options, resolvedOptions),
879
- _chunkM3OOEUTHcjs.onErrorPlugin.call(void 0, options, resolvedOptions)
878
+ _chunkA7M6QDWGcjs.tscPlugin.call(void 0, options, resolvedOptions),
879
+ _chunkGQQQCEJNcjs.onErrorPlugin.call(void 0, options, resolvedOptions)
880
880
  ], "getDefaultBuildPlugins");
881
881
  var DEFAULT_BUILD_OPTIONS = {
882
882
  platform: "node",
@@ -885,7 +885,7 @@ var DEFAULT_BUILD_OPTIONS = {
885
885
  external: [],
886
886
  logLevel: "error",
887
887
  tsconfig: "tsconfig.json",
888
- envName: "production",
888
+ mode: "production",
889
889
  keepNames: true,
890
890
  metafile: true,
891
891
  injectShims: true,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkUTVDQAK2cjs = require('./chunk-UTVDQAK2.cjs');
4
+ var _chunkXZED6WF3cjs = require('./chunk-XZED6WF3.cjs');
5
5
 
6
6
 
7
7
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
@@ -9,8 +9,8 @@ var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
9
9
  // src/clean.ts
10
10
  var _promises = require('fs/promises');
11
11
  async function clean(name = "ESBuild", directory, config) {
12
- _chunkUTVDQAK2cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
- const stopwatch = _chunkUTVDQAK2cjs.getStopwatch.call(void 0, `${name} output clean`);
12
+ _chunkXZED6WF3cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
+ const stopwatch = _chunkXZED6WF3cjs.getStopwatch.call(void 0, `${name} output clean`);
14
14
  await cleanDirectories(name, directory, config);
15
15
  stopwatch();
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeWarning
4
- } from "./chunk-D6KDL53G.js";
4
+ } from "./chunk-2HAHXU54.js";
5
5
  import {
6
6
  __name,
7
7
  __require
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkUTVDQAK2cjs = require('./chunk-UTVDQAK2.cjs');
3
+ var _chunkXZED6WF3cjs = require('./chunk-XZED6WF3.cjs');
4
4
 
5
5
 
6
6
  var _chunkXITTOHOGcjs = require('./chunk-XITTOHOG.cjs');
@@ -84,7 +84,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
84
84
  localBuild: true
85
85
  });
86
86
  if (extractorResult.succeeded === false) {
87
- _chunkUTVDQAK2cjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
87
+ _chunkXZED6WF3cjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
88
88
  throw new Error("API Extractor completed with errors");
89
89
  }
90
90
  }
@@ -6,13 +6,13 @@ import {
6
6
  } from "./chunk-LYDEMC26.js";
7
7
  import {
8
8
  onErrorPlugin
9
- } from "./chunk-DEQ3NJFX.js";
9
+ } from "./chunk-IW7GZHF7.js";
10
10
  import {
11
11
  resolvePathsPlugin
12
12
  } from "./chunk-Q3LOGZKI.js";
13
13
  import {
14
14
  tscPlugin
15
- } from "./chunk-YXP75YVC.js";
15
+ } from "./chunk-V23YDDCC.js";
16
16
  import {
17
17
  COLOR_KEYS,
18
18
  LogLevel,
@@ -28,7 +28,7 @@ import {
28
28
  writeDebug,
29
29
  writeTrace,
30
30
  writeWarning
31
- } from "./chunk-D6KDL53G.js";
31
+ } from "./chunk-2HAHXU54.js";
32
32
  import {
33
33
  correctPaths,
34
34
  joinPaths
@@ -356,7 +356,7 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
356
356
  build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
357
357
  },
358
358
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
359
- env: (process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
359
+ mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
360
360
  // ci:
361
361
  // process.env[`${prefix}CI`] !== undefined
362
362
  // ? Boolean(
@@ -565,10 +565,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
565
565
  process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
566
566
  }
567
567
  }
568
- if (config.env) {
569
- process.env[`${prefix}ENV`] = config.env;
570
- process.env.NODE_ENV = config.env;
571
- process.env.ENVIRONMENT = config.env;
568
+ if (config.mode) {
569
+ process.env[`${prefix}MODE`] = config.mode;
570
+ process.env.NODE_ENV = config.mode;
571
+ process.env.ENVIRONMENT = config.mode;
572
572
  }
573
573
  if (config.colors?.base?.light || config.colors?.base?.dark) {
574
574
  for (const key of Object.keys(config.colors)) {
@@ -828,7 +828,7 @@ var getEnv = /* @__PURE__ */ __name((builder, options) => {
828
828
  STORM_BUILD: builder,
829
829
  STORM_ORG: options.orgName || DEFAULT_ORGANIZATION,
830
830
  STORM_NAME: options.name,
831
- STORM_ENV: options.envName || DEFAULT_ENVIRONMENT,
831
+ STORM_MODE: options.mode || DEFAULT_ENVIRONMENT,
832
832
  STORM_PLATFORM: options.platform,
833
833
  STORM_FORMAT: JSON.stringify(options.format),
834
834
  STORM_TARGET: JSON.stringify(options.target),
@@ -885,7 +885,7 @@ var DEFAULT_BUILD_OPTIONS = {
885
885
  external: [],
886
886
  logLevel: "error",
887
887
  tsconfig: "tsconfig.json",
888
- envName: "production",
888
+ mode: "production",
889
889
  keepNames: true,
890
890
  metafile: true,
891
891
  injectShims: true,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-D6KDL53G.js";
4
+ } from "./chunk-2HAHXU54.js";
5
5
  import {
6
6
  __name
7
7
  } from "./chunk-3GQAWCBQ.js";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUTVDQAK2cjs = require('./chunk-UTVDQAK2.cjs');
3
+ var _chunkXZED6WF3cjs = require('./chunk-XZED6WF3.cjs');
4
4
 
5
5
 
6
6
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
@@ -11,7 +11,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (optio
11
11
  setup(build) {
12
12
  build.onEnd((result) => {
13
13
  if (result.errors.length > 0 && process.env.WATCH !== "true") {
14
- _chunkUTVDQAK2cjs.writeError.call(void 0, `The following errors occurred during the build:
14
+ _chunkXZED6WF3cjs.writeError.call(void 0, `The following errors occurred during the build:
15
15
  ${result.errors.map((error) => error.text).join("\n")}
16
16
 
17
17
  `, resolvedOptions.config);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-D6KDL53G.js";
3
+ } from "./chunk-2HAHXU54.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-3GQAWCBQ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cleanDirectories
3
- } from "./chunk-M4U64EJG.js";
3
+ } from "./chunk-DNJAV4NQ.js";
4
4
  import {
5
5
  DEFAULT_BUILD_OPTIONS,
6
6
  DEFAULT_COMPILED_BANNER,
@@ -14,10 +14,10 @@ import {
14
14
  getEntryPoints,
15
15
  getEnv,
16
16
  getOutputExtensionMap
17
- } from "./chunk-7UYZTNGE.js";
17
+ } from "./chunk-D5ZZNDUG.js";
18
18
  import {
19
19
  depsCheckPlugin
20
- } from "./chunk-UOMGQ2T3.js";
20
+ } from "./chunk-7NZ2E6EC.js";
21
21
  import {
22
22
  getStopwatch,
23
23
  isVerbose,
@@ -27,7 +27,7 @@ import {
27
27
  writeSuccess,
28
28
  writeTrace,
29
29
  writeWarning
30
- } from "./chunk-D6KDL53G.js";
30
+ } from "./chunk-2HAHXU54.js";
31
31
  import {
32
32
  joinPaths
33
33
  } from "./chunk-YMTDVMD6.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-D6KDL53G.js";
3
+ } from "./chunk-2HAHXU54.js";
4
4
  import {
5
5
  joinPaths
6
6
  } from "./chunk-YMTDVMD6.js";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkUTVDQAK2cjs = require('./chunk-UTVDQAK2.cjs');
4
+ var _chunkXZED6WF3cjs = require('./chunk-XZED6WF3.cjs');
5
5
 
6
6
 
7
7
 
@@ -86,8 +86,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (bun
86
86
  const filteredMissingDeps = missingDependencies.filter((dep) => {
87
87
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
88
88
  });
89
- _chunkUTVDQAK2cjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
90
- _chunkUTVDQAK2cjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
89
+ _chunkXZED6WF3cjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
90
+ _chunkXZED6WF3cjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
91
91
  if (filteredMissingDeps.length > 0) {
92
92
  throw new Error(`Missing dependencies detected - please install them:
93
93
  ${JSON.stringify(filteredMissingDeps)}
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkQ7K2MKJScjs = require('./chunk-Q7K2MKJS.cjs');
3
+ var _chunk62KAIAWTcjs = require('./chunk-62KAIAWT.cjs');
4
4
 
5
5
 
6
6
 
@@ -14,10 +14,10 @@ var _chunkQ7K2MKJScjs = require('./chunk-Q7K2MKJS.cjs');
14
14
 
15
15
 
16
16
 
17
- var _chunkZPV4MFLScjs = require('./chunk-ZPV4MFLS.cjs');
17
+ var _chunk57Z7YYTWcjs = require('./chunk-57Z7YYTW.cjs');
18
18
 
19
19
 
20
- var _chunk2MIBIYGUcjs = require('./chunk-2MIBIYGU.cjs');
20
+ var _chunkVWP2SU7Acjs = require('./chunk-VWP2SU7A.cjs');
21
21
 
22
22
 
23
23
 
@@ -27,7 +27,7 @@ var _chunk2MIBIYGUcjs = require('./chunk-2MIBIYGU.cjs');
27
27
 
28
28
 
29
29
 
30
- var _chunkUTVDQAK2cjs = require('./chunk-UTVDQAK2.cjs');
30
+ var _chunkXZED6WF3cjs = require('./chunk-XZED6WF3.cjs');
31
31
 
32
32
 
33
33
  var _chunkXITTOHOGcjs = require('./chunk-XITTOHOG.cjs');
@@ -278,9 +278,9 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
278
278
  if (!workspaceRoot) {
279
279
  throw new Error("Cannot find Nx workspace root");
280
280
  }
281
- const config = await _chunkZPV4MFLScjs.getConfig.call(void 0, workspaceRoot.dir);
282
- _chunkUTVDQAK2cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
283
- const stopwatch = _chunkUTVDQAK2cjs.getStopwatch.call(void 0, "Build options resolution");
281
+ const config = await _chunk57Z7YYTWcjs.getConfig.call(void 0, workspaceRoot.dir);
282
+ _chunkXZED6WF3cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
283
+ const stopwatch = _chunkXZED6WF3cjs.getStopwatch.call(void 0, "Build options resolution");
284
284
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
285
285
  exitOnError: true
286
286
  });
@@ -295,17 +295,17 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
295
295
  if (!_optionalChain([projectConfigurations, 'optionalAccess', _14 => _14.projects, 'optionalAccess', _15 => _15[projectName]])) {
296
296
  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
297
  }
298
- const options = _defu2.default.call(void 0, userOptions, _chunkZPV4MFLScjs.DEFAULT_BUILD_OPTIONS);
298
+ const options = _defu2.default.call(void 0, userOptions, _chunk57Z7YYTWcjs.DEFAULT_BUILD_OPTIONS);
299
299
  options.name ??= `${projectName}-${options.format}`;
300
- options.target ??= _chunkZPV4MFLScjs.DEFAULT_TARGET;
300
+ options.target ??= _chunk57Z7YYTWcjs.DEFAULT_TARGET;
301
301
  const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
302
302
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
303
303
  throw new Error("Cannot find package.json configuration");
304
304
  }
305
305
  const packageJsonFile = await _promises2.default.readFile(packageJsonPath, "utf8");
306
306
  const packageJson = JSON.parse(packageJsonFile);
307
- const outExtension = _chunkZPV4MFLScjs.getOutputExtensionMap.call(void 0, options, packageJson.type);
308
- const env = _chunkZPV4MFLScjs.getEnv.call(void 0, "esbuild", options);
307
+ const outExtension = _chunk57Z7YYTWcjs.getOutputExtensionMap.call(void 0, options, packageJson.type);
308
+ const env = _chunk57Z7YYTWcjs.getEnv.call(void 0, "esbuild", options);
309
309
  const result = {
310
310
  ...options,
311
311
  config,
@@ -325,7 +325,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
325
325
  ...userOptions,
326
326
  tsconfig: _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
327
327
  format: options.format || "cjs",
328
- entryPoints: await _chunkZPV4MFLScjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
328
+ entryPoints: await _chunk57Z7YYTWcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
329
329
  "./src/index.ts"
330
330
  ], userOptions.emitOnAll),
331
331
  outdir: userOptions.outputPath || _chunkXITTOHOGcjs.joinPaths.call(void 0, "dist", projectRoot),
@@ -336,7 +336,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
336
336
  projectGraph,
337
337
  sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, "src"),
338
338
  minify: userOptions.minify || !userOptions.debug,
339
- verbose: userOptions.verbose || _chunkUTVDQAK2cjs.isVerbose.call(void 0, ) || userOptions.debug === true,
339
+ verbose: userOptions.verbose || _chunkXZED6WF3cjs.isVerbose.call(void 0, ) || userOptions.debug === true,
340
340
  includeSrc: userOptions.includeSrc === true,
341
341
  metafile: userOptions.metafile !== false,
342
342
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -350,8 +350,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
350
350
  outExtension,
351
351
  footer: userOptions.footer,
352
352
  banner: {
353
- js: options.banner || _chunkZPV4MFLScjs.DEFAULT_COMPILED_BANNER,
354
- css: options.banner || _chunkZPV4MFLScjs.DEFAULT_COMPILED_BANNER
353
+ js: options.banner || _chunk57Z7YYTWcjs.DEFAULT_COMPILED_BANNER,
354
+ css: options.banner || _chunk57Z7YYTWcjs.DEFAULT_COMPILED_BANNER
355
355
  },
356
356
  splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
357
357
  treeShaking: options.format === "esm",
@@ -377,14 +377,14 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
377
377
  ..._nullishCoalesce(options.inject, () => ( []))
378
378
  ].filter(Boolean)
379
379
  };
380
- result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkZPV4MFLScjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
380
+ result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunk57Z7YYTWcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
381
381
  stopwatch();
382
382
  return result;
383
383
  }, "resolveOptions");
384
384
  async function generatePackageJson(context2) {
385
385
  if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
386
- _chunkUTVDQAK2cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
387
- const stopwatch = _chunkUTVDQAK2cjs.getStopwatch.call(void 0, "Write package.json file");
386
+ _chunkXZED6WF3cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
387
+ const stopwatch = _chunkXZED6WF3cjs.getStopwatch.call(void 0, "Write package.json file");
388
388
  const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
389
389
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
390
390
  throw new Error("Cannot find package.json configuration");
@@ -394,11 +394,11 @@ async function generatePackageJson(context2) {
394
394
  if (!packageJson) {
395
395
  throw new Error("Cannot find package.json configuration file");
396
396
  }
397
- packageJson = await _chunkZPV4MFLScjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
398
- packageJson = await _chunkZPV4MFLScjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
397
+ packageJson = await _chunk57Z7YYTWcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
398
+ packageJson = await _chunk57Z7YYTWcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
399
399
  packageJson.exports ??= {};
400
400
  packageJson.exports["./package.json"] ??= "./package.json";
401
- packageJson.exports["."] ??= _chunkZPV4MFLScjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
401
+ packageJson.exports["."] ??= _chunk57Z7YYTWcjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
402
402
  let entryPoints = [
403
403
  {
404
404
  in: "./src/index.ts",
@@ -416,7 +416,7 @@ async function generatePackageJson(context2) {
416
416
  const split = entryPoint.out.split(".");
417
417
  split.pop();
418
418
  const entry = split.join(".").replaceAll("\\", "/");
419
- packageJson.exports[`./${entry}`] ??= _chunkZPV4MFLScjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
419
+ packageJson.exports[`./${entry}`] ??= _chunk57Z7YYTWcjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
420
420
  }
421
421
  }
422
422
  packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
@@ -454,8 +454,8 @@ async function generateContext(getOptions) {
454
454
  }
455
455
  _chunkBGYQAVKQcjs.__name.call(void 0, generateContext, "generateContext");
456
456
  async function executeEsBuild(context2) {
457
- _chunkUTVDQAK2cjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
458
- const stopwatch = _chunkUTVDQAK2cjs.getStopwatch.call(void 0, `${context2.options.name} build`);
457
+ _chunkXZED6WF3cjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
458
+ const stopwatch = _chunkXZED6WF3cjs.getStopwatch.call(void 0, `${context2.options.name} build`);
459
459
  if (process.env.WATCH === "true") {
460
460
  const ctx = await esbuild.context(context2.options);
461
461
  watch(ctx, context2.options);
@@ -471,9 +471,9 @@ async function executeEsBuild(context2) {
471
471
  _chunkBGYQAVKQcjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
472
472
  async function copyBuildAssets(context2) {
473
473
  if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
474
- _chunkUTVDQAK2cjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
475
- const stopwatch = _chunkUTVDQAK2cjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
476
- await _chunkZPV4MFLScjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
474
+ _chunkXZED6WF3cjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
475
+ const stopwatch = _chunkXZED6WF3cjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
476
+ await _chunk57Z7YYTWcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
477
477
  stopwatch();
478
478
  }
479
479
  return context2;
@@ -482,9 +482,9 @@ _chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
482
482
  async function reportResults(context2) {
483
483
  if (_optionalChain([context2, 'access', _19 => _19.result, 'optionalAccess', _20 => _20.errors, 'access', _21 => _21.length]) === 0) {
484
484
  if (context2.result.warnings.length > 0) {
485
- _chunkUTVDQAK2cjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
485
+ _chunkXZED6WF3cjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
486
486
  }
487
- _chunkUTVDQAK2cjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
487
+ _chunkXZED6WF3cjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
488
488
  }
489
489
  }
490
490
  _chunkBGYQAVKQcjs.__name.call(void 0, reportResults, "reportResults");
@@ -510,7 +510,7 @@ async function dependencyCheck(options) {
510
510
  write: false,
511
511
  outdir: "out",
512
512
  plugins: [
513
- _chunk2MIBIYGUcjs.depsCheckPlugin.call(void 0, options.bundle)
513
+ _chunkVWP2SU7Acjs.depsCheckPlugin.call(void 0, options.bundle)
514
514
  ]
515
515
  });
516
516
  await buildPromise.catch(() => {
@@ -520,17 +520,17 @@ async function dependencyCheck(options) {
520
520
  _chunkBGYQAVKQcjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
521
521
  async function cleanOutputPath(context2) {
522
522
  if (context2.options.clean !== false && context2.options.outdir) {
523
- _chunkUTVDQAK2cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
524
- const stopwatch = _chunkUTVDQAK2cjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
525
- await _chunkQ7K2MKJScjs.cleanDirectories.call(void 0, context2.options.name, context2.options.outdir, context2.options.config);
523
+ _chunkXZED6WF3cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
524
+ const stopwatch = _chunkXZED6WF3cjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
525
+ await _chunk62KAIAWTcjs.cleanDirectories.call(void 0, context2.options.name, context2.options.outdir, context2.options.config);
526
526
  stopwatch();
527
527
  }
528
528
  return context2;
529
529
  }
530
530
  _chunkBGYQAVKQcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
531
531
  async function build2(options) {
532
- _chunkUTVDQAK2cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
533
- const stopwatch = _chunkUTVDQAK2cjs.getStopwatch.call(void 0, "ESBuild pipeline");
532
+ _chunkXZED6WF3cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
533
+ const stopwatch = _chunkXZED6WF3cjs.getStopwatch.call(void 0, "ESBuild pipeline");
534
534
  try {
535
535
  const opts = Array.isArray(options) ? options : [
536
536
  options
@@ -540,9 +540,9 @@ async function build2(options) {
540
540
  }
541
541
  void transduce.async(opts, dependencyCheck);
542
542
  await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
543
- _chunkUTVDQAK2cjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
543
+ _chunkXZED6WF3cjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
544
544
  } catch (error) {
545
- _chunkUTVDQAK2cjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
545
+ _chunkXZED6WF3cjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
546
546
  throw error;
547
547
  } finally {
548
548
  stopwatch();
@@ -570,9 +570,9 @@ var watch = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (context2, opt
570
570
  return context2.rebuild();
571
571
  });
572
572
  if (rebuildResult instanceof Error) {
573
- _chunkUTVDQAK2cjs.writeError.call(void 0, rebuildResult.message);
573
+ _chunkXZED6WF3cjs.writeError.call(void 0, rebuildResult.message);
574
574
  }
575
- _chunkUTVDQAK2cjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
575
+ _chunkXZED6WF3cjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
576
576
  }, 10);
577
577
  changeWatcher.on("change", fastRebuild);
578
578
  return void 0;
@@ -203,11 +203,11 @@ var StormConfigSchema = _zod2.default.object({
203
203
  preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
204
204
  owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
205
205
  bot: WorkspaceBotConfigSchema,
206
- env: _zod2.default.enum([
206
+ mode: _zod2.default.enum([
207
207
  "development",
208
208
  "staging",
209
209
  "production"
210
- ]).default("production").describe("The current runtime environment name for the package"),
210
+ ]).default("production").describe("The current runtime environment mode for the package"),
211
211
  workspaceRoot: _zod2.default.string().trim().default("").describe("The root directory of the workspace"),
212
212
  externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
213
213
  skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
package/dist/clean.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkQ7K2MKJScjs = require('./chunk-Q7K2MKJS.cjs');
5
- require('./chunk-UTVDQAK2.cjs');
4
+ var _chunk62KAIAWTcjs = require('./chunk-62KAIAWT.cjs');
5
+ require('./chunk-XZED6WF3.cjs');
6
6
  require('./chunk-XITTOHOG.cjs');
7
7
  require('./chunk-BGYQAVKQ.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.clean = _chunkQ7K2MKJScjs.clean; exports.cleanDirectories = _chunkQ7K2MKJScjs.cleanDirectories;
11
+ exports.clean = _chunk62KAIAWTcjs.clean; exports.cleanDirectories = _chunk62KAIAWTcjs.cleanDirectories;
package/dist/clean.d.cts CHANGED
@@ -27,7 +27,7 @@ declare const StormConfigSchema: z.ZodObject<{
27
27
  name?: string | undefined;
28
28
  email?: string | undefined;
29
29
  }>;
30
- env: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
30
+ mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
31
31
  workspaceRoot: z.ZodDefault<z.ZodString>;
32
32
  externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
33
33
  skipCache: z.ZodDefault<z.ZodBoolean>;
@@ -796,7 +796,7 @@ declare const StormConfigSchema: z.ZodObject<{
796
796
  extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
797
797
  }, "strip", z.ZodTypeAny, {
798
798
  logLevel: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all";
799
- env: "development" | "staging" | "production";
799
+ mode: "development" | "staging" | "production";
800
800
  organization: string;
801
801
  license: string;
802
802
  homepage: string;
@@ -1147,7 +1147,7 @@ declare const StormConfigSchema: z.ZodObject<{
1147
1147
  }>;
1148
1148
  logLevel?: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all" | undefined;
1149
1149
  name?: string | undefined;
1150
- env?: "development" | "staging" | "production" | undefined;
1150
+ mode?: "development" | "staging" | "production" | undefined;
1151
1151
  $schema?: string | null | undefined;
1152
1152
  extends?: string | string[] | undefined;
1153
1153
  namespace?: string | undefined;
package/dist/clean.d.ts CHANGED
@@ -27,7 +27,7 @@ declare const StormConfigSchema: z.ZodObject<{
27
27
  name?: string | undefined;
28
28
  email?: string | undefined;
29
29
  }>;
30
- env: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
30
+ mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
31
31
  workspaceRoot: z.ZodDefault<z.ZodString>;
32
32
  externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
33
33
  skipCache: z.ZodDefault<z.ZodBoolean>;
@@ -796,7 +796,7 @@ declare const StormConfigSchema: z.ZodObject<{
796
796
  extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
797
797
  }, "strip", z.ZodTypeAny, {
798
798
  logLevel: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all";
799
- env: "development" | "staging" | "production";
799
+ mode: "development" | "staging" | "production";
800
800
  organization: string;
801
801
  license: string;
802
802
  homepage: string;
@@ -1147,7 +1147,7 @@ declare const StormConfigSchema: z.ZodObject<{
1147
1147
  }>;
1148
1148
  logLevel?: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all" | undefined;
1149
1149
  name?: string | undefined;
1150
- env?: "development" | "staging" | "production" | undefined;
1150
+ mode?: "development" | "staging" | "production" | undefined;
1151
1151
  $schema?: string | null | undefined;
1152
1152
  extends?: string | string[] | undefined;
1153
1153
  namespace?: string | undefined;
package/dist/clean.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-M4U64EJG.js";
5
- import "./chunk-D6KDL53G.js";
4
+ } from "./chunk-DNJAV4NQ.js";
5
+ import "./chunk-2HAHXU54.js";
6
6
  import "./chunk-YMTDVMD6.js";
7
7
  import "./chunk-3GQAWCBQ.js";
8
8
  export {
package/dist/config.cjs CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkZPV4MFLScjs = require('./chunk-ZPV4MFLS.cjs');
5
+ var _chunk57Z7YYTWcjs = require('./chunk-57Z7YYTW.cjs');
6
6
  require('./chunk-S6M44SSZ.cjs');
7
7
  require('./chunk-WRBUO7H6.cjs');
8
- require('./chunk-M3OOEUTH.cjs');
8
+ require('./chunk-GQQQCEJN.cjs');
9
9
  require('./chunk-SSEYS7LI.cjs');
10
- require('./chunk-6RYUOHHQ.cjs');
11
- require('./chunk-UTVDQAK2.cjs');
10
+ require('./chunk-A7M6QDWG.cjs');
11
+ require('./chunk-XZED6WF3.cjs');
12
12
  require('./chunk-XITTOHOG.cjs');
13
13
  require('./chunk-CGFDQ5AJ.cjs');
14
14
  require('./chunk-EZGTDCYM.cjs');
@@ -17,4 +17,4 @@ require('./chunk-BGYQAVKQ.cjs');
17
17
 
18
18
 
19
19
 
20
- exports.DEFAULT_BUILD_OPTIONS = _chunkZPV4MFLScjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkZPV4MFLScjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunkZPV4MFLScjs.getOutputExtensionMap;
20
+ exports.DEFAULT_BUILD_OPTIONS = _chunk57Z7YYTWcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunk57Z7YYTWcjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunk57Z7YYTWcjs.getOutputExtensionMap;
package/dist/config.d.cts CHANGED
@@ -7,6 +7,6 @@ import 'source-map';
7
7
 
8
8
  declare const getOutputExtensionMap: (options: ESBuildOptions, pkgType: string | undefined) => OutExtensionObject;
9
9
  declare const getDefaultBuildPlugins: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin[];
10
- declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "format" | "platform" | "target" | "external" | "tsconfig" | "envName" | "keepNames" | "metafile" | "injectShims" | "color" | "watch" | "bundle" | "clean" | "debug" | "loader" | "banner" | "logLevel">>;
10
+ 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
11
 
12
12
  export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins, getOutputExtensionMap };
package/dist/config.d.ts CHANGED
@@ -7,6 +7,6 @@ import 'source-map';
7
7
 
8
8
  declare const getOutputExtensionMap: (options: ESBuildOptions, pkgType: string | undefined) => OutExtensionObject;
9
9
  declare const getDefaultBuildPlugins: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin[];
10
- declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "format" | "platform" | "target" | "external" | "tsconfig" | "envName" | "keepNames" | "metafile" | "injectShims" | "color" | "watch" | "bundle" | "clean" | "debug" | "loader" | "banner" | "logLevel">>;
10
+ 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
11
 
12
12
  export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins, getOutputExtensionMap };
package/dist/config.js CHANGED
@@ -2,13 +2,13 @@ import {
2
2
  DEFAULT_BUILD_OPTIONS,
3
3
  getDefaultBuildPlugins,
4
4
  getOutputExtensionMap
5
- } from "./chunk-7UYZTNGE.js";
5
+ } from "./chunk-D5ZZNDUG.js";
6
6
  import "./chunk-T5272PC2.js";
7
7
  import "./chunk-LYDEMC26.js";
8
- import "./chunk-DEQ3NJFX.js";
8
+ import "./chunk-IW7GZHF7.js";
9
9
  import "./chunk-Q3LOGZKI.js";
10
- import "./chunk-YXP75YVC.js";
11
- import "./chunk-D6KDL53G.js";
10
+ import "./chunk-V23YDDCC.js";
11
+ import "./chunk-2HAHXU54.js";
12
12
  import "./chunk-YMTDVMD6.js";
13
13
  import "./chunk-YNQ45EAM.js";
14
14
  import "./chunk-GWG4HOQ6.js";
package/dist/index.cjs CHANGED
@@ -7,24 +7,24 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkVKJZVZO3cjs = require('./chunk-VKJZVZO3.cjs');
10
+ var _chunkXRLQUA2Xcjs = require('./chunk-XRLQUA2X.cjs');
11
11
 
12
12
 
13
13
 
14
- var _chunkQ7K2MKJScjs = require('./chunk-Q7K2MKJS.cjs');
14
+ var _chunk62KAIAWTcjs = require('./chunk-62KAIAWT.cjs');
15
15
 
16
16
 
17
17
 
18
18
 
19
- var _chunkZPV4MFLScjs = require('./chunk-ZPV4MFLS.cjs');
19
+ var _chunk57Z7YYTWcjs = require('./chunk-57Z7YYTW.cjs');
20
20
  require('./chunk-S6M44SSZ.cjs');
21
21
  require('./chunk-WRBUO7H6.cjs');
22
- require('./chunk-M3OOEUTH.cjs');
22
+ require('./chunk-GQQQCEJN.cjs');
23
23
  require('./chunk-SSEYS7LI.cjs');
24
- require('./chunk-6RYUOHHQ.cjs');
24
+ require('./chunk-A7M6QDWG.cjs');
25
25
  require('./chunk-SFZRYJZ2.cjs');
26
- require('./chunk-2MIBIYGU.cjs');
27
- require('./chunk-UTVDQAK2.cjs');
26
+ require('./chunk-VWP2SU7A.cjs');
27
+ require('./chunk-XZED6WF3.cjs');
28
28
  require('./chunk-XITTOHOG.cjs');
29
29
  require('./chunk-CGFDQ5AJ.cjs');
30
30
  require('./chunk-EZGTDCYM.cjs');
@@ -43,4 +43,4 @@ require('./chunk-BGYQAVKQ.cjs');
43
43
 
44
44
 
45
45
 
46
- exports.DEFAULT_BUILD_OPTIONS = _chunkZPV4MFLScjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkVKJZVZO3cjs.Filter; exports.Mapper = _chunkVKJZVZO3cjs.Mapper; exports.build = _chunkVKJZVZO3cjs.build; exports.clean = _chunkQ7K2MKJScjs.clean; exports.cleanDirectories = _chunkQ7K2MKJScjs.cleanDirectories; exports.cleanOutputPath = _chunkVKJZVZO3cjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkZPV4MFLScjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunkZPV4MFLScjs.getOutputExtensionMap; exports.handle = _chunkVKJZVZO3cjs.handle; exports.pipe = _chunkVKJZVZO3cjs.pipe; exports.skip = _chunkVKJZVZO3cjs.skip; exports.transduce = _chunkVKJZVZO3cjs.transduce;
46
+ exports.DEFAULT_BUILD_OPTIONS = _chunk57Z7YYTWcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkXRLQUA2Xcjs.Filter; exports.Mapper = _chunkXRLQUA2Xcjs.Mapper; exports.build = _chunkXRLQUA2Xcjs.build; exports.clean = _chunk62KAIAWTcjs.clean; exports.cleanDirectories = _chunk62KAIAWTcjs.cleanDirectories; exports.cleanOutputPath = _chunkXRLQUA2Xcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunk57Z7YYTWcjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunk57Z7YYTWcjs.getOutputExtensionMap; exports.handle = _chunkXRLQUA2Xcjs.handle; exports.pipe = _chunkXRLQUA2Xcjs.pipe; exports.skip = _chunkXRLQUA2Xcjs.skip; exports.transduce = _chunkXRLQUA2Xcjs.transduce;
package/dist/index.js CHANGED
@@ -7,24 +7,24 @@ import {
7
7
  pipe,
8
8
  skip,
9
9
  transduce
10
- } from "./chunk-WQPBFWHA.js";
10
+ } from "./chunk-K5YRZ5LC.js";
11
11
  import {
12
12
  clean,
13
13
  cleanDirectories
14
- } from "./chunk-M4U64EJG.js";
14
+ } from "./chunk-DNJAV4NQ.js";
15
15
  import {
16
16
  DEFAULT_BUILD_OPTIONS,
17
17
  getDefaultBuildPlugins,
18
18
  getOutputExtensionMap
19
- } from "./chunk-7UYZTNGE.js";
19
+ } from "./chunk-D5ZZNDUG.js";
20
20
  import "./chunk-T5272PC2.js";
21
21
  import "./chunk-LYDEMC26.js";
22
- import "./chunk-DEQ3NJFX.js";
22
+ import "./chunk-IW7GZHF7.js";
23
23
  import "./chunk-Q3LOGZKI.js";
24
- import "./chunk-YXP75YVC.js";
24
+ import "./chunk-V23YDDCC.js";
25
25
  import "./chunk-GGNOJ77I.js";
26
- import "./chunk-UOMGQ2T3.js";
27
- import "./chunk-D6KDL53G.js";
26
+ import "./chunk-7NZ2E6EC.js";
27
+ import "./chunk-2HAHXU54.js";
28
28
  import "./chunk-YMTDVMD6.js";
29
29
  import "./chunk-YNQ45EAM.js";
30
30
  import "./chunk-GWG4HOQ6.js";
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2MIBIYGUcjs = require('../chunk-2MIBIYGU.cjs');
4
- require('../chunk-UTVDQAK2.cjs');
3
+ var _chunkVWP2SU7Acjs = require('../chunk-VWP2SU7A.cjs');
4
+ require('../chunk-XZED6WF3.cjs');
5
5
  require('../chunk-XITTOHOG.cjs');
6
6
  require('../chunk-BGYQAVKQ.cjs');
7
7
 
8
8
 
9
- exports.depsCheckPlugin = _chunk2MIBIYGUcjs.depsCheckPlugin;
9
+ exports.depsCheckPlugin = _chunkVWP2SU7Acjs.depsCheckPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  depsCheckPlugin
3
- } from "../chunk-UOMGQ2T3.js";
4
- import "../chunk-D6KDL53G.js";
3
+ } from "../chunk-7NZ2E6EC.js";
4
+ import "../chunk-2HAHXU54.js";
5
5
  import "../chunk-YMTDVMD6.js";
6
6
  import "../chunk-3GQAWCBQ.js";
7
7
  export {
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkM3OOEUTHcjs = require('../chunk-M3OOEUTH.cjs');
4
- require('../chunk-UTVDQAK2.cjs');
3
+ var _chunkGQQQCEJNcjs = require('../chunk-GQQQCEJN.cjs');
4
+ require('../chunk-XZED6WF3.cjs');
5
5
  require('../chunk-XITTOHOG.cjs');
6
6
  require('../chunk-BGYQAVKQ.cjs');
7
7
 
8
8
 
9
- exports.onErrorPlugin = _chunkM3OOEUTHcjs.onErrorPlugin;
9
+ exports.onErrorPlugin = _chunkGQQQCEJNcjs.onErrorPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  onErrorPlugin
3
- } from "../chunk-DEQ3NJFX.js";
4
- import "../chunk-D6KDL53G.js";
3
+ } from "../chunk-IW7GZHF7.js";
4
+ import "../chunk-2HAHXU54.js";
5
5
  import "../chunk-YMTDVMD6.js";
6
6
  import "../chunk-3GQAWCBQ.js";
7
7
  export {
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk6RYUOHHQcjs = require('../chunk-6RYUOHHQ.cjs');
4
- require('../chunk-UTVDQAK2.cjs');
3
+ var _chunkA7M6QDWGcjs = require('../chunk-A7M6QDWG.cjs');
4
+ require('../chunk-XZED6WF3.cjs');
5
5
  require('../chunk-XITTOHOG.cjs');
6
6
  require('../chunk-BGYQAVKQ.cjs');
7
7
 
8
8
 
9
- exports.tscPlugin = _chunk6RYUOHHQcjs.tscPlugin;
9
+ exports.tscPlugin = _chunkA7M6QDWGcjs.tscPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  tscPlugin
3
- } from "../chunk-YXP75YVC.js";
4
- import "../chunk-D6KDL53G.js";
3
+ } from "../chunk-V23YDDCC.js";
4
+ import "../chunk-2HAHXU54.js";
5
5
  import "../chunk-YMTDVMD6.js";
6
6
  import "../chunk-3GQAWCBQ.js";
7
7
  export {
package/dist/types.d.cts CHANGED
@@ -22,7 +22,7 @@ type OutExtensionObject = {
22
22
  dts?: string;
23
23
  };
24
24
  type OutExtensionFactory = (format?: Format, pkgType?: string) => OutExtensionObject;
25
- type ESBuildOptions = Omit<BuildOptions, "outbase" | "outfile" | "outExtension" | "banner"> & Omit<TypeScriptBuildOptions, "format"> & {
25
+ type ESBuildOptions = Omit<BuildOptions, "outbase" | "outfile" | "outExtension" | "banner" | "entryPoints"> & Omit<TypeScriptBuildOptions, "format"> & {
26
26
  emitTypes?: boolean;
27
27
  injectShims?: boolean;
28
28
  outExtension?: OutExtensionFactory;
package/dist/types.d.ts CHANGED
@@ -22,7 +22,7 @@ type OutExtensionObject = {
22
22
  dts?: string;
23
23
  };
24
24
  type OutExtensionFactory = (format?: Format, pkgType?: string) => OutExtensionObject;
25
- type ESBuildOptions = Omit<BuildOptions, "outbase" | "outfile" | "outExtension" | "banner"> & Omit<TypeScriptBuildOptions, "format"> & {
25
+ type ESBuildOptions = Omit<BuildOptions, "outbase" | "outfile" | "outExtension" | "banner" | "entryPoints"> & Omit<TypeScriptBuildOptions, "format"> & {
26
26
  emitTypes?: boolean;
27
27
  injectShims?: boolean;
28
28
  outExtension?: OutExtensionFactory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/esbuild",
3
- "version": "0.24.4",
3
+ "version": "0.24.5",
4
4
  "type": "module",
5
5
  "description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -42,11 +42,7 @@
42
42
  "private": false,
43
43
  "packageManager": "pnpm@10.3.0",
44
44
  "engines": { "node": ">=22.4.0", "pnpm": ">=10.3.0" },
45
- "bin": {
46
- "storm-esbuild": "./bin/esbuild.js",
47
- "storm-esbuild-cjs": "./bin/esbuild.cjs",
48
- "storm-esbuild-esm": "./bin/esbuild.js"
49
- },
45
+ "bin": { "storm-esbuild": "./bin/esbuild.cjs" },
50
46
  "main": "./dist/index.cjs",
51
47
  "module": "./dist/index.js",
52
48
  "exports": {
@@ -129,8 +125,6 @@
129
125
  "types": "./dist/index.d.ts",
130
126
  "files": ["dist/**/*"],
131
127
  "keywords": [
132
- "acidic",
133
- "cyclone-ui",
134
128
  "esbuild",
135
129
  "monorepo",
136
130
  "storm",
@@ -176,7 +170,7 @@
176
170
  "@nx/js": "^20.3.1",
177
171
  "@storm-software/build-tools": "0.138.33",
178
172
  "@storm-software/config": "1.101.26",
179
- "@storm-software/config-tools": "1.153.7",
173
+ "@storm-software/config-tools": "1.153.8",
180
174
  "@types/node": "^22.10.2",
181
175
  "defu": "6.1.4",
182
176
  "esbuild": "^0.24.0",