@storm-software/esbuild 0.31.28 → 0.31.30

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 (34) hide show
  1. package/bin/esbuild.cjs +9 -6
  2. package/dist/build.cjs +8 -8
  3. package/dist/build.js +7 -7
  4. package/dist/{chunk-NR55GSOK.js → chunk-4F2UUEOG.js} +1 -1
  5. package/dist/{chunk-A3LV5XYV.cjs → chunk-4I65QR6D.cjs} +43 -41
  6. package/dist/{chunk-YK3LK2JZ.cjs → chunk-6D27C2MD.cjs} +2 -2
  7. package/dist/{chunk-QJ5VE3PG.js → chunk-DJBLQVO3.js} +1 -1
  8. package/dist/{chunk-LYGJRBW3.js → chunk-F55MDH52.js} +14 -15
  9. package/dist/{chunk-MP6USOJU.js → chunk-LTXLRCFK.js} +1 -1
  10. package/dist/{chunk-EBJG5FWJ.cjs → chunk-MECU4TGM.cjs} +41 -42
  11. package/dist/{chunk-EMOTV6ML.js → chunk-O2DGD74J.js} +11 -9
  12. package/dist/{chunk-SGTMRJLZ.js → chunk-OS6IORPL.js} +2 -2
  13. package/dist/{chunk-UONT522M.cjs → chunk-QICNNYHX.cjs} +2 -2
  14. package/dist/{chunk-FY4GMRVA.cjs → chunk-S2QQQQC4.cjs} +3 -3
  15. package/dist/{chunk-IQNPH4CN.cjs → chunk-UFNNCUFM.cjs} +2 -2
  16. package/dist/{chunk-ATQXZL2N.cjs → chunk-XF4W7Y5G.cjs} +3 -3
  17. package/dist/{chunk-ILLWUPTW.js → chunk-YSMZ4KXD.js} +1 -1
  18. package/dist/clean.cjs +3 -3
  19. package/dist/clean.d.cts +36 -20
  20. package/dist/clean.d.ts +36 -20
  21. package/dist/clean.js +2 -2
  22. package/dist/config.cjs +5 -5
  23. package/dist/config.js +4 -4
  24. package/dist/index.cjs +8 -8
  25. package/dist/index.js +7 -7
  26. package/dist/plugins/deps-check.cjs +3 -3
  27. package/dist/plugins/deps-check.js +2 -2
  28. package/dist/plugins/on-error.cjs +3 -3
  29. package/dist/plugins/on-error.js +2 -2
  30. package/dist/plugins/tsc.cjs +3 -3
  31. package/dist/plugins/tsc.js +2 -2
  32. package/dist/types.d.cts +3 -3
  33. package/dist/types.d.ts +3 -3
  34. package/package.json +4 -4
@@ -6,13 +6,13 @@ var _chunkS6M44SSZcjs = require('./chunk-S6M44SSZ.cjs');
6
6
  var _chunkWRBUO7H6cjs = require('./chunk-WRBUO7H6.cjs');
7
7
 
8
8
 
9
- var _chunkUONT522Mcjs = require('./chunk-UONT522M.cjs');
9
+ var _chunkQICNNYHXcjs = require('./chunk-QICNNYHX.cjs');
10
10
 
11
11
 
12
12
  var _chunkSSEYS7LIcjs = require('./chunk-SSEYS7LI.cjs');
13
13
 
14
14
 
15
- var _chunkYK3LK2JZcjs = require('./chunk-YK3LK2JZ.cjs');
15
+ var _chunk6D27C2MDcjs = require('./chunk-6D27C2MD.cjs');
16
16
 
17
17
 
18
18
 
@@ -28,7 +28,7 @@ var _chunkYK3LK2JZcjs = require('./chunk-YK3LK2JZ.cjs');
28
28
 
29
29
 
30
30
 
31
- var _chunkIQNPH4CNcjs = require('./chunk-IQNPH4CN.cjs');
31
+ var _chunkUFNNCUFMcjs = require('./chunk-UFNNCUFM.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
- _chunkIQNPH4CNcjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
100
+ _chunkUFNNCUFMcjs.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
- _chunkIQNPH4CNcjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXITTOHOGcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
110
+ _chunkUFNNCUFMcjs.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
- _chunkIQNPH4CNcjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
149
+ _chunkUFNNCUFMcjs.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
- _chunkIQNPH4CNcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
183
+ _chunkUFNNCUFMcjs.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 : _chunkIQNPH4CNcjs.findWorkspaceRoot.call(void 0, );
188
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkUFNNCUFMcjs.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";
@@ -234,7 +234,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.cal
234
234
  var _c12 = require('c12');
235
235
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
236
236
  var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
237
- const workspacePath = filePath || _chunkIQNPH4CNcjs.findWorkspaceRoot.call(void 0, filePath);
237
+ const workspacePath = filePath || _chunkUFNNCUFMcjs.findWorkspaceRoot.call(void 0, filePath);
238
238
  const configs = await Promise.all([
239
239
  _c12.loadConfig.call(void 0, {
240
240
  cwd: workspacePath,
@@ -263,12 +263,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
263
263
  return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
264
264
  }, "getConfigFileByName");
265
265
  var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
266
- const workspacePath = filePath ? filePath : _chunkIQNPH4CNcjs.findWorkspaceRoot.call(void 0, filePath);
266
+ const workspacePath = filePath ? filePath : _chunkUFNNCUFMcjs.findWorkspaceRoot.call(void 0, filePath);
267
267
  const result = await getConfigFileByName("storm-workspace", workspacePath);
268
268
  let config = result.config;
269
269
  const configFile = result.configFile;
270
270
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
271
- _chunkIQNPH4CNcjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
271
+ _chunkUFNNCUFMcjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
272
272
  logLevel: "all"
273
273
  });
274
274
  }
@@ -277,7 +277,7 @@ var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
277
277
  for (const result2 of results) {
278
278
  if (_optionalChain([result2, 'optionalAccess', _28 => _28.config]) && _optionalChain([result2, 'optionalAccess', _29 => _29.configFile]) && Object.keys(result2.config).length > 0) {
279
279
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
280
- _chunkIQNPH4CNcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
280
+ _chunkUFNNCUFMcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
281
281
  logLevel: "all"
282
282
  });
283
283
  }
@@ -370,24 +370,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
370
370
  cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
371
371
  container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
372
372
  },
373
- 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`])) ? _chunkIQNPH4CNcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
373
+ 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`])) ? _chunkUFNNCUFMcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
374
374
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
375
375
  };
376
- const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkIQNPH4CNcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
376
+ const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkUFNNCUFMcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
377
377
  config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
378
378
  ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
379
379
  return ret;
380
380
  }, {}) : getThemeColorConfigEnv(prefix);
381
- if (config.docs === _chunkIQNPH4CNcjs.STORM_DEFAULT_DOCS) {
382
- if (config.homepage === _chunkIQNPH4CNcjs.STORM_DEFAULT_HOMEPAGE) {
383
- config.docs = `${_chunkIQNPH4CNcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
381
+ if (config.docs === _chunkUFNNCUFMcjs.STORM_DEFAULT_DOCS) {
382
+ if (config.homepage === _chunkUFNNCUFMcjs.STORM_DEFAULT_HOMEPAGE) {
383
+ config.docs = `${_chunkUFNNCUFMcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
384
384
  } else {
385
385
  config.docs = `${config.homepage}/docs`;
386
386
  }
387
387
  }
388
- if (config.licensing === _chunkIQNPH4CNcjs.STORM_DEFAULT_LICENSING) {
389
- if (config.homepage === _chunkIQNPH4CNcjs.STORM_DEFAULT_HOMEPAGE) {
390
- config.licensing = `${_chunkIQNPH4CNcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
388
+ if (config.licensing === _chunkUFNNCUFMcjs.STORM_DEFAULT_LICENSING) {
389
+ if (config.homepage === _chunkUFNNCUFMcjs.STORM_DEFAULT_HOMEPAGE) {
390
+ config.licensing = `${_chunkUFNNCUFMcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
391
391
  } else {
392
392
  config.licensing = `${config.homepage}/docs`;
393
393
  }
@@ -631,8 +631,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
631
631
  if (config.logLevel) {
632
632
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
633
633
  process.env.LOG_LEVEL = String(config.logLevel);
634
- process.env.NX_VERBOSE_LOGGING = String(_chunkIQNPH4CNcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkIQNPH4CNcjs.LogLevel.DEBUG ? true : false);
635
- process.env.RUST_BACKTRACE = _chunkIQNPH4CNcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkIQNPH4CNcjs.LogLevel.DEBUG ? "full" : "none";
634
+ process.env.NX_VERBOSE_LOGGING = String(_chunkUFNNCUFMcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkUFNNCUFMcjs.LogLevel.DEBUG ? true : false);
635
+ process.env.RUST_BACKTRACE = _chunkUFNNCUFMcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkUFNNCUFMcjs.LogLevel.DEBUG ? "full" : "none";
636
636
  }
637
637
  if (config.skipConfigLogging !== void 0) {
638
638
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
@@ -745,22 +745,22 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(v
745
745
  // ../config-tools/src/create-storm-config.ts
746
746
  var _extension_cache = /* @__PURE__ */ new WeakMap();
747
747
  var _static_cache = void 0;
748
- var createStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
748
+ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
749
749
  let result;
750
750
  if (!_optionalChain([_static_cache, 'optionalAccess', _52 => _52.data]) || !_optionalChain([_static_cache, 'optionalAccess', _53 => _53.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
751
751
  let _workspaceRoot = workspaceRoot;
752
752
  if (!_workspaceRoot) {
753
- _workspaceRoot = _chunkIQNPH4CNcjs.findWorkspaceRoot.call(void 0, );
753
+ _workspaceRoot = _chunkUFNNCUFMcjs.findWorkspaceRoot.call(void 0, );
754
754
  }
755
755
  const configEnv = getConfigEnv();
756
- const defaultConfig = await _chunkIQNPH4CNcjs.getDefaultConfig.call(void 0, _workspaceRoot);
756
+ const defaultConfig = await _chunkUFNNCUFMcjs.getDefaultConfig.call(void 0, _workspaceRoot);
757
757
  const configFile = await getConfigFile(_workspaceRoot);
758
758
  if (!configFile && !skipLogs) {
759
- _chunkIQNPH4CNcjs.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", {
759
+ _chunkUFNNCUFMcjs.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", {
760
760
  logLevel: "all"
761
761
  });
762
762
  }
763
- result = await _chunkIQNPH4CNcjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
763
+ result = await _chunkUFNNCUFMcjs.stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
764
764
  result.workspaceRoot ??= _workspaceRoot;
765
765
  } else {
766
766
  result = _static_cache.data;
@@ -776,7 +776,7 @@ var createStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, as
776
776
  data: result
777
777
  };
778
778
  return result;
779
- }, "createStormConfig");
779
+ }, "createStormWorkspaceConfig");
780
780
  var createConfigExtension = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (extensionName, schema) => {
781
781
  const extension_cache_key = {
782
782
  extensionName
@@ -791,25 +791,25 @@ var createConfigExtension = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0
791
791
  _extension_cache.set(extension_cache_key, extension);
792
792
  return extension;
793
793
  }, "createConfigExtension");
794
- var loadStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
795
- const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
794
+ var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
795
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
796
796
  setConfigEnv(config);
797
797
  if (!skipLogs && !config.skipConfigLogging) {
798
- _chunkIQNPH4CNcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
799
- ${_chunkIQNPH4CNcjs.formatLogMessage.call(void 0, config)}`, config);
798
+ _chunkUFNNCUFMcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
799
+ ${_chunkUFNNCUFMcjs.formatLogMessage.call(void 0, config)}`, config);
800
800
  }
801
801
  return config;
802
- }, "loadStormConfig");
802
+ }, "loadStormWorkspaceConfig");
803
803
 
804
804
  // ../config-tools/src/get-config.ts
805
805
  var getConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (workspaceRoot, skipLogs = false) => {
806
- return loadStormConfig(workspaceRoot, skipLogs);
806
+ return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
807
807
  }, "getConfig");
808
808
 
809
809
  // ../build-tools/src/utilities/get-entry-points.ts
810
810
 
811
811
  var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
812
- const workspaceRoot = config.workspaceRoot || _chunkIQNPH4CNcjs.findWorkspaceRoot.call(void 0, );
812
+ const workspaceRoot = config.workspaceRoot || _chunkUFNNCUFMcjs.findWorkspaceRoot.call(void 0, );
813
813
  const entryPoints = [];
814
814
  if (entry) {
815
815
  if (typeof entry === "string") {
@@ -835,7 +835,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
835
835
  paths.push(...files.reduce((ret, filePath) => {
836
836
  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), ""));
837
837
  if (result) {
838
- _chunkIQNPH4CNcjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXITTOHOGcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
838
+ _chunkUFNNCUFMcjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXITTOHOGcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
839
839
  if (!paths.includes(result)) {
840
840
  paths.push(result);
841
841
  }
@@ -843,10 +843,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
843
843
  return ret;
844
844
  }, []));
845
845
  } else {
846
- const result = _chunkXITTOHOGcjs.correctPaths.call(void 0, entryPoint.replaceAll(_chunkXITTOHOGcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXITTOHOGcjs.correctPaths.call(void 0, projectRoot), ""));
847
- _chunkIQNPH4CNcjs.writeDebug.call(void 0, `Trying to add entry point ${result}"`, config);
848
- if (!paths.includes(result)) {
849
- paths.push(result);
846
+ _chunkUFNNCUFMcjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
847
+ if (!paths.includes(entryPoint)) {
848
+ paths.push(entryPoint);
850
849
  }
851
850
  }
852
851
  return paths;
@@ -889,8 +888,8 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
889
888
  _chunkEZGTDCYMcjs.fixImportsPlugin.call(void 0, options, resolvedOptions),
890
889
  _chunkS6M44SSZcjs.nativeNodeModulesPlugin.call(void 0, options, resolvedOptions),
891
890
  _chunkCGFDQ5AJcjs.esmSplitCodeToCjsPlugin.call(void 0, options, resolvedOptions),
892
- _chunkYK3LK2JZcjs.tscPlugin.call(void 0, options, resolvedOptions),
893
- _chunkUONT522Mcjs.onErrorPlugin.call(void 0, options, resolvedOptions)
891
+ _chunk6D27C2MDcjs.tscPlugin.call(void 0, options, resolvedOptions),
892
+ _chunkQICNNYHXcjs.onErrorPlugin.call(void 0, options, resolvedOptions)
894
893
  ], "getDefaultBuildPlugins");
895
894
  var DEFAULT_BUILD_OPTIONS = {
896
895
  platform: "node",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cleanDirectories
3
- } from "./chunk-QJ5VE3PG.js";
3
+ } from "./chunk-DJBLQVO3.js";
4
4
  import {
5
5
  DEFAULT_BUILD_OPTIONS,
6
6
  DEFAULT_COMPILED_BANNER,
@@ -12,10 +12,10 @@ import {
12
12
  getDefaultBuildPlugins,
13
13
  getEntryPoints,
14
14
  getEnv
15
- } from "./chunk-LYGJRBW3.js";
15
+ } from "./chunk-F55MDH52.js";
16
16
  import {
17
17
  depsCheckPlugin
18
- } from "./chunk-ILLWUPTW.js";
18
+ } from "./chunk-YSMZ4KXD.js";
19
19
  import {
20
20
  formatLogMessage,
21
21
  getStopwatch,
@@ -26,8 +26,9 @@ import {
26
26
  writeSuccess,
27
27
  writeTrace,
28
28
  writeWarning
29
- } from "./chunk-SGTMRJLZ.js";
29
+ } from "./chunk-OS6IORPL.js";
30
30
  import {
31
+ correctPaths,
31
32
  joinPaths
32
33
  } from "./chunk-YMTDVMD6.js";
33
34
  import {
@@ -316,7 +317,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
316
317
  ...userOptions,
317
318
  tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
318
319
  format: options.format || "cjs",
319
- entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry ?? "./src/index.ts", userOptions.emitOnAll === true),
320
+ entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry ?? "./src/index.ts", false),
320
321
  outdir: userOptions.outputPath || joinPaths("dist", projectRoot),
321
322
  distDir: userOptions.distDir || "dist",
322
323
  plugins: [],
@@ -331,7 +332,6 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
331
332
  metafile: userOptions.metafile !== false,
332
333
  generatePackageJson: userOptions.generatePackageJson !== false,
333
334
  clean: userOptions.clean !== false,
334
- emitOnAll: userOptions.emitOnAll === true,
335
335
  assets: userOptions.assets ?? [],
336
336
  injectShims: userOptions.injectShims !== true,
337
337
  bundle: userOptions.bundle !== false,
@@ -408,7 +408,7 @@ async function generatePackageJson(context2) {
408
408
  if (Array.isArray(context2.options.entryPoints)) {
409
409
  entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
410
410
  in: entryPoint,
411
- out: entryPoint
411
+ out: correctPaths(entryPoint.replaceAll(correctPaths(context2.options.config.workspaceRoot), "").replaceAll(correctPaths(context2.options.projectRoot), ""))
412
412
  } : entryPoint);
413
413
  }
414
414
  for (const entryPoint of entryPoints) {
@@ -479,7 +479,6 @@ async function executeEsBuild(context2) {
479
479
  delete options.clean;
480
480
  delete options.debug;
481
481
  delete options.generatePackageJson;
482
- delete options.emitOnAll;
483
482
  delete options.distDir;
484
483
  delete options.includeSrc;
485
484
  delete options.verbose;
@@ -492,7 +491,10 @@ async function executeEsBuild(context2) {
492
491
  delete options.injectShims;
493
492
  delete options.external;
494
493
  writeTrace(`Run esbuild (${context2.options.name}) with the following options:
495
- ${formatLogMessage(options)}`, context2.options.config);
494
+ ${formatLogMessage({
495
+ ...options,
496
+ define: "<Hidden>"
497
+ })}`, context2.options.config);
496
498
  const result = await esbuild.build(options);
497
499
  await esbuild.stop();
498
500
  if (result.metafile) {
@@ -216,7 +216,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
216
216
  log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
217
217
  build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
218
218
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
219
- var StormConfigSchema = z.object({
219
+ var stormWorkspaceConfigSchema = z.object({
220
220
  $schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
221
221
  extends: ExtendsSchema.optional(),
222
222
  name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
@@ -615,7 +615,7 @@ export {
615
615
  STORM_DEFAULT_DOCS,
616
616
  STORM_DEFAULT_HOMEPAGE,
617
617
  STORM_DEFAULT_LICENSING,
618
- StormConfigSchema,
618
+ stormWorkspaceConfigSchema,
619
619
  COLOR_KEYS,
620
620
  findWorkspaceRoot,
621
621
  getDefaultConfig,
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkIQNPH4CNcjs = require('./chunk-IQNPH4CN.cjs');
3
+ var _chunkUFNNCUFMcjs = require('./chunk-UFNNCUFM.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
- _chunkIQNPH4CNcjs.writeError.call(void 0, `The following errors occurred during the build:
14
+ _chunkUFNNCUFMcjs.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,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 _chunkIQNPH4CNcjs = require('./chunk-IQNPH4CN.cjs');
4
+ var _chunkUFNNCUFMcjs = require('./chunk-UFNNCUFM.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
- _chunkIQNPH4CNcjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
90
- _chunkIQNPH4CNcjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
89
+ _chunkUFNNCUFMcjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
90
+ _chunkUFNNCUFMcjs.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)}
@@ -216,7 +216,7 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
216
216
  log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
217
217
  build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
218
218
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
219
- var StormConfigSchema = _zod2.default.object({
219
+ var stormWorkspaceConfigSchema = _zod2.default.object({
220
220
  $schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
221
221
  extends: ExtendsSchema.optional(),
222
222
  name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
@@ -630,4 +630,4 @@ var _isFunction = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (value)
630
630
 
631
631
 
632
632
 
633
- exports.LogLevel = LogLevel; exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.StormConfigSchema = StormConfigSchema; exports.COLOR_KEYS = COLOR_KEYS; exports.findWorkspaceRoot = findWorkspaceRoot; exports.getDefaultConfig = getDefaultConfig; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage;
633
+ exports.LogLevel = LogLevel; exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.stormWorkspaceConfigSchema = stormWorkspaceConfigSchema; exports.COLOR_KEYS = COLOR_KEYS; exports.findWorkspaceRoot = findWorkspaceRoot; exports.getDefaultConfig = getDefaultConfig; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage;
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkIQNPH4CNcjs = require('./chunk-IQNPH4CN.cjs');
4
+ var _chunkUFNNCUFMcjs = require('./chunk-UFNNCUFM.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
- _chunkIQNPH4CNcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
- const stopwatch = _chunkIQNPH4CNcjs.getStopwatch.call(void 0, `${name} output clean`);
12
+ _chunkUFNNCUFMcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
+ const stopwatch = _chunkUFNNCUFMcjs.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-SGTMRJLZ.js";
4
+ } from "./chunk-OS6IORPL.js";
5
5
  import {
6
6
  __name,
7
7
  __require
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 _chunkATQXZL2Ncjs = require('./chunk-ATQXZL2N.cjs');
5
- require('./chunk-IQNPH4CN.cjs');
4
+ var _chunkXF4W7Y5Gcjs = require('./chunk-XF4W7Y5G.cjs');
5
+ require('./chunk-UFNNCUFM.cjs');
6
6
  require('./chunk-XITTOHOG.cjs');
7
7
  require('./chunk-BGYQAVKQ.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.clean = _chunkATQXZL2Ncjs.clean; exports.cleanDirectories = _chunkATQXZL2Ncjs.cleanDirectories;
11
+ exports.clean = _chunkXF4W7Y5Gcjs.clean; exports.cleanDirectories = _chunkXF4W7Y5Gcjs.cleanDirectories;
package/dist/clean.d.cts CHANGED
@@ -3,7 +3,7 @@ import z from 'zod';
3
3
  /**
4
4
  * Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
5
5
  */
6
- declare const StormConfigSchema: z.ZodObject<{
6
+ declare const stormWorkspaceConfigSchema: z.ZodObject<{
7
7
  $schema: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodString>>>>;
8
8
  extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
9
9
  name: z.ZodOptional<z.ZodString>;
@@ -38,8 +38,8 @@ declare const StormConfigSchema: z.ZodObject<{
38
38
  header?: string | undefined;
39
39
  }, {
40
40
  banner?: string | undefined;
41
- header?: string | undefined;
42
41
  footer?: string | undefined;
42
+ header?: string | undefined;
43
43
  }>;
44
44
  account: z.ZodObject<{
45
45
  twitter: z.ZodDefault<z.ZodString>;
@@ -76,15 +76,15 @@ declare const StormConfigSchema: z.ZodObject<{
76
76
  build: z.ZodDefault<z.ZodString>;
77
77
  }, "strip", z.ZodTypeAny, {
78
78
  build: string;
79
+ config?: string | undefined;
79
80
  cache?: string | undefined;
80
81
  data?: string | undefined;
81
- config?: string | undefined;
82
82
  temp?: string | undefined;
83
83
  log?: string | undefined;
84
84
  }, {
85
+ config?: string | undefined;
85
86
  cache?: string | undefined;
86
87
  data?: string | undefined;
87
- config?: string | undefined;
88
88
  temp?: string | undefined;
89
89
  log?: string | undefined;
90
90
  build?: string | undefined;
@@ -831,6 +831,8 @@ declare const StormConfigSchema: z.ZodObject<{
831
831
  }>]>>]>]>;
832
832
  extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
833
833
  }, "strip", z.ZodTypeAny, {
834
+ logLevel: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all";
835
+ mode: "development" | "staging" | "production";
834
836
  organization: string;
835
837
  license: string;
836
838
  homepage: string;
@@ -856,22 +858,20 @@ declare const StormConfigSchema: z.ZodObject<{
856
858
  medium: string;
857
859
  github: string;
858
860
  };
859
- mode: "development" | "staging" | "production";
860
861
  workspaceRoot: string;
861
862
  externalPackagePatterns: string[];
862
863
  skipCache: boolean;
863
864
  directories: {
864
865
  build: string;
866
+ config?: string | undefined;
865
867
  cache?: string | undefined;
866
868
  data?: string | undefined;
867
- config?: string | undefined;
868
869
  temp?: string | undefined;
869
870
  log?: string | undefined;
870
871
  };
871
872
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
872
873
  timezone: string;
873
874
  locale: string;
874
- logLevel: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all";
875
875
  registry: {
876
876
  github?: string | undefined;
877
877
  npm?: string | undefined;
@@ -1028,9 +1028,9 @@ declare const StormConfigSchema: z.ZodObject<{
1028
1028
  };
1029
1029
  }>;
1030
1030
  extensions: Record<string, any>;
1031
+ name?: string | undefined;
1031
1032
  $schema?: string | null | undefined;
1032
1033
  extends?: string | string[] | undefined;
1033
- name?: string | undefined;
1034
1034
  namespace?: string | undefined;
1035
1035
  repository?: string | undefined;
1036
1036
  preid?: string | undefined;
@@ -1042,8 +1042,8 @@ declare const StormConfigSchema: z.ZodObject<{
1042
1042
  };
1043
1043
  release: {
1044
1044
  banner?: string | undefined;
1045
- header?: string | undefined;
1046
1045
  footer?: string | undefined;
1046
+ header?: string | undefined;
1047
1047
  };
1048
1048
  account: {
1049
1049
  twitter?: string | undefined;
@@ -1054,9 +1054,9 @@ declare const StormConfigSchema: z.ZodObject<{
1054
1054
  github?: string | undefined;
1055
1055
  };
1056
1056
  directories: {
1057
+ config?: string | undefined;
1057
1058
  cache?: string | undefined;
1058
1059
  data?: string | undefined;
1059
- config?: string | undefined;
1060
1060
  temp?: string | undefined;
1061
1061
  log?: string | undefined;
1062
1062
  build?: string | undefined;
@@ -1208,9 +1208,11 @@ declare const StormConfigSchema: z.ZodObject<{
1208
1208
  background?: string | undefined;
1209
1209
  };
1210
1210
  }>;
1211
+ logLevel?: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all" | undefined;
1212
+ name?: string | undefined;
1213
+ mode?: "development" | "staging" | "production" | undefined;
1211
1214
  $schema?: string | null | undefined;
1212
1215
  extends?: string | string[] | undefined;
1213
- name?: string | undefined;
1214
1216
  namespace?: string | undefined;
1215
1217
  organization?: string | undefined;
1216
1218
  repository?: string | undefined;
@@ -1222,14 +1224,12 @@ declare const StormConfigSchema: z.ZodObject<{
1222
1224
  branch?: string | undefined;
1223
1225
  preid?: string | undefined;
1224
1226
  owner?: string | undefined;
1225
- mode?: "development" | "staging" | "production" | undefined;
1226
1227
  workspaceRoot?: string | undefined;
1227
1228
  externalPackagePatterns?: string[] | undefined;
1228
1229
  skipCache?: boolean | undefined;
1229
1230
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
1230
1231
  timezone?: string | undefined;
1231
1232
  locale?: string | undefined;
1232
- logLevel?: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
1233
1233
  skipConfigLogging?: boolean | undefined;
1234
1234
  registry?: {
1235
1235
  github?: string | undefined;
@@ -1242,28 +1242,44 @@ declare const StormConfigSchema: z.ZodObject<{
1242
1242
  extensions?: Record<string, any> | undefined;
1243
1243
  }>;
1244
1244
 
1245
- type TStormConfig = z.infer<typeof StormConfigSchema>;
1246
- type StormConfig<TExtensionName extends keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"], TExtensionConfig extends TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]> = TStormConfig & {
1247
- extensions: (TStormConfig["extensions"] & {
1245
+ type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
1246
+ /**
1247
+ * The Storm workspace's configuration object
1248
+ *
1249
+ * @remarks
1250
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
1251
+ *
1252
+ * @deprecated
1253
+ * This type is deprecated and will be removed in the next major version. Use `StormWorkspaceConfig` instead.
1254
+ */
1255
+ type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
1256
+ extensions: (TStormWorkspaceConfig["extensions"] & {
1248
1257
  [extensionName in TExtensionName]: TExtensionConfig;
1249
1258
  }) | NonNullable<Record<string, any>>;
1250
1259
  };
1260
+ /**
1261
+ * The Storm workspace's configuration object
1262
+ *
1263
+ * @remarks
1264
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
1265
+ */
1266
+ type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
1251
1267
 
1252
1268
  /**
1253
1269
  * Clean the ESBuild output path
1254
1270
  *
1255
1271
  * @param name - The name of the executor
1256
1272
  * @param directory - The directory to clean
1257
- * @param config - The StormConfig object
1273
+ * @param config - The StormWorkspaceConfig object
1258
1274
  */
1259
- declare function clean(name: string | undefined, directory: string, config?: StormConfig): Promise<void>;
1275
+ declare function clean(name: string | undefined, directory: string, config?: StormWorkspaceConfig): Promise<void>;
1260
1276
  /**
1261
1277
  * Clean the ESBuild output path
1262
1278
  *
1263
1279
  * @param name - The name of the executor
1264
1280
  * @param directory - The directory to clean
1265
- * @param config - The StormConfig object
1281
+ * @param config - The StormWorkspaceConfig object
1266
1282
  */
1267
- declare function cleanDirectories(name: string | undefined, directory: string, config?: StormConfig): Promise<void>;
1283
+ declare function cleanDirectories(name: string | undefined, directory: string, config?: StormWorkspaceConfig): Promise<void>;
1268
1284
 
1269
1285
  export { clean, cleanDirectories };