@storm-software/esbuild 0.31.55 → 0.32.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/dist/build.cjs +9 -9
  3. package/dist/build.js +8 -8
  4. package/dist/{chunk-OFHMWQZF.cjs → chunk-5LN4W7RS.cjs} +1 -1
  5. package/dist/{chunk-LRVWPYIC.cjs → chunk-63NDGTHK.cjs} +2 -2
  6. package/dist/{chunk-CEE2QW7F.js → chunk-A6VGGOSN.js} +5 -5
  7. package/dist/{chunk-KYYHVNV4.cjs → chunk-BFF4J5BM.cjs} +2 -2
  8. package/dist/{chunk-CJ75TYKD.cjs → chunk-DQKNCLPI.cjs} +45 -45
  9. package/dist/{chunk-E2ITHLMT.js → chunk-EQ6TXPLW.js} +1 -1
  10. package/dist/{chunk-ASASYO7N.cjs → chunk-FYFB2IQY.cjs} +3 -3
  11. package/dist/{chunk-6OP2VX6Y.js → chunk-IY7XC4HQ.js} +1 -1
  12. package/dist/{chunk-CFK6TJYF.js → chunk-LOXSNNRO.js} +17 -12
  13. package/dist/{chunk-6AQHAXIU.js → chunk-M4O2EJ6Z.js} +1 -1
  14. package/dist/{chunk-QYSYE4DQ.cjs → chunk-PKPG6XXP.cjs} +42 -37
  15. package/dist/{chunk-E4SGSVQK.js → chunk-UAKT6QUX.js} +1 -1
  16. package/dist/{chunk-SLCDPX5I.js → chunk-V3JNF263.js} +1 -1
  17. package/dist/{chunk-HTG42YEH.cjs → chunk-VFORKCNS.cjs} +3 -3
  18. package/dist/{chunk-OPVRR2SU.cjs → chunk-VK6V4C6A.cjs} +2 -2
  19. package/dist/{chunk-A6P3N2E2.js → chunk-YXPXX5XP.js} +1 -1
  20. package/dist/clean.cjs +3 -3
  21. package/dist/clean.d.cts +1 -1
  22. package/dist/clean.d.ts +1 -1
  23. package/dist/clean.js +2 -2
  24. package/dist/config.cjs +5 -5
  25. package/dist/config.js +4 -4
  26. package/dist/index.cjs +9 -9
  27. package/dist/index.d.cts +1 -1
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.js +8 -8
  30. package/dist/plugins/deps-check.cjs +3 -3
  31. package/dist/plugins/deps-check.js +2 -2
  32. package/dist/plugins/on-error.cjs +3 -3
  33. package/dist/plugins/on-error.js +2 -2
  34. package/dist/plugins/tsc.cjs +3 -3
  35. package/dist/plugins/tsc.js +2 -2
  36. package/dist/tsc.cjs +3 -3
  37. package/dist/tsc.d.cts +1 -1
  38. package/dist/tsc.d.ts +1 -1
  39. package/dist/tsc.js +2 -2
  40. package/dist/{types-BVD_-NDh.d.cts → types-B4jbZA4j.d.cts} +14 -14
  41. package/dist/{types-BVD_-NDh.d.ts → types-B4jbZA4j.d.ts} +14 -14
  42. package/package.json +5 -5
@@ -9,13 +9,13 @@ var _chunkS6M44SSZcjs = require('./chunk-S6M44SSZ.cjs');
9
9
  var _chunkWRBUO7H6cjs = require('./chunk-WRBUO7H6.cjs');
10
10
 
11
11
 
12
- var _chunkKYYHVNV4cjs = require('./chunk-KYYHVNV4.cjs');
12
+ var _chunkBFF4J5BMcjs = require('./chunk-BFF4J5BM.cjs');
13
13
 
14
14
 
15
15
  var _chunkSSEYS7LIcjs = require('./chunk-SSEYS7LI.cjs');
16
16
 
17
17
 
18
- var _chunkLRVWPYICcjs = require('./chunk-LRVWPYIC.cjs');
18
+ var _chunk63NDGTHKcjs = require('./chunk-63NDGTHK.cjs');
19
19
 
20
20
 
21
21
 
@@ -31,7 +31,7 @@ var _chunkLRVWPYICcjs = require('./chunk-LRVWPYIC.cjs');
31
31
 
32
32
 
33
33
 
34
- var _chunkOFHMWQZFcjs = require('./chunk-OFHMWQZF.cjs');
34
+ var _chunk5LN4W7RScjs = require('./chunk-5LN4W7RS.cjs');
35
35
 
36
36
 
37
37
 
@@ -97,7 +97,7 @@ var copyAssets = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (co
97
97
  output: "src/"
98
98
  });
99
99
  }
100
- _chunkOFHMWQZFcjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
100
+ _chunk5LN4W7RScjs.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
- _chunkOFHMWQZFcjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXITTOHOGcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
110
+ _chunk5LN4W7RScjs.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
- _chunkOFHMWQZFcjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
149
+ _chunk5LN4W7RScjs.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;
@@ -175,17 +175,17 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
175
175
  }, _nullishCoalesce(packageJson.dependencies, () => ( {})));
176
176
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
177
177
  if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _20 => _20.includes, 'call', _21 => _21(localPackage.name)]) && _optionalChain([packageJson, 'access', _22 => _22.dependencies, 'optionalAccess', _23 => _23[localPackage.name]]) === void 0) {
178
- ret[localPackage.name] = localPackage.version || "0.0.1";
178
+ ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
179
179
  }
180
180
  return ret;
181
181
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
182
182
  } else {
183
- _chunkOFHMWQZFcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
183
+ _chunk5LN4W7RScjs.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 : _chunkOFHMWQZFcjs.findWorkspaceRoot.call(void 0, );
188
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunk5LN4W7RScjs.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 || _chunkOFHMWQZFcjs.findWorkspaceRoot.call(void 0, filePath);
237
+ const workspacePath = filePath || _chunk5LN4W7RScjs.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 : _chunkOFHMWQZFcjs.findWorkspaceRoot.call(void 0, filePath);
266
+ const workspacePath = filePath ? filePath : _chunk5LN4W7RScjs.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
- _chunkOFHMWQZFcjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
271
+ _chunk5LN4W7RScjs.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
- _chunkOFHMWQZFcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
280
+ _chunk5LN4W7RScjs.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
  }
@@ -285,7 +285,7 @@ var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
285
285
  }
286
286
  }
287
287
  }
288
- if (!config) {
288
+ if (!config || Object.keys(config).length === 0) {
289
289
  return void 0;
290
290
  }
291
291
  config.configFile = configFile;
@@ -374,24 +374,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
374
374
  cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
375
375
  container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
376
376
  },
377
- 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`])) ? _chunkOFHMWQZFcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
377
+ 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`])) ? _chunk5LN4W7RScjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
378
378
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
379
379
  };
380
- const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkOFHMWQZFcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
380
+ const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunk5LN4W7RScjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
381
381
  config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
382
382
  ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
383
383
  return ret;
384
384
  }, {}) : getThemeColorConfigEnv(prefix);
385
- if (config.docs === _chunkOFHMWQZFcjs.STORM_DEFAULT_DOCS) {
386
- if (config.homepage === _chunkOFHMWQZFcjs.STORM_DEFAULT_HOMEPAGE) {
387
- config.docs = `${_chunkOFHMWQZFcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
385
+ if (config.docs === _chunk5LN4W7RScjs.STORM_DEFAULT_DOCS) {
386
+ if (config.homepage === _chunk5LN4W7RScjs.STORM_DEFAULT_HOMEPAGE) {
387
+ config.docs = `${_chunk5LN4W7RScjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
388
388
  } else {
389
389
  config.docs = `${config.homepage}/docs`;
390
390
  }
391
391
  }
392
- if (config.licensing === _chunkOFHMWQZFcjs.STORM_DEFAULT_LICENSING) {
393
- if (config.homepage === _chunkOFHMWQZFcjs.STORM_DEFAULT_HOMEPAGE) {
394
- config.licensing = `${_chunkOFHMWQZFcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
392
+ if (config.licensing === _chunk5LN4W7RScjs.STORM_DEFAULT_LICENSING) {
393
+ if (config.homepage === _chunk5LN4W7RScjs.STORM_DEFAULT_HOMEPAGE) {
394
+ config.licensing = `${_chunk5LN4W7RScjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
395
395
  } else {
396
396
  config.licensing = `${config.homepage}/docs`;
397
397
  }
@@ -645,8 +645,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
645
645
  if (config.logLevel) {
646
646
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
647
647
  process.env.LOG_LEVEL = String(config.logLevel);
648
- process.env.NX_VERBOSE_LOGGING = String(_chunkOFHMWQZFcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkOFHMWQZFcjs.LogLevel.DEBUG ? true : false);
649
- process.env.RUST_BACKTRACE = _chunkOFHMWQZFcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkOFHMWQZFcjs.LogLevel.DEBUG ? "full" : "none";
648
+ process.env.NX_VERBOSE_LOGGING = String(_chunk5LN4W7RScjs.getLogLevel.call(void 0, config.logLevel) >= _chunk5LN4W7RScjs.LogLevel.DEBUG ? true : false);
649
+ process.env.RUST_BACKTRACE = _chunk5LN4W7RScjs.getLogLevel.call(void 0, config.logLevel) >= _chunk5LN4W7RScjs.LogLevel.DEBUG ? "full" : "none";
650
650
  }
651
651
  if (config.skipConfigLogging !== void 0) {
652
652
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
@@ -759,22 +759,27 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(v
759
759
  // ../config-tools/src/create-storm-config.ts
760
760
  var _extension_cache = /* @__PURE__ */ new WeakMap();
761
761
  var _static_cache = void 0;
762
- var createStormWorkspaceConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
762
+ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
763
763
  let result;
764
764
  if (!_optionalChain([_static_cache, 'optionalAccess', _52 => _52.data]) || !_optionalChain([_static_cache, 'optionalAccess', _53 => _53.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
765
765
  let _workspaceRoot = workspaceRoot;
766
766
  if (!_workspaceRoot) {
767
- _workspaceRoot = _chunkOFHMWQZFcjs.findWorkspaceRoot.call(void 0, );
767
+ _workspaceRoot = _chunk5LN4W7RScjs.findWorkspaceRoot.call(void 0, );
768
768
  }
769
769
  const configEnv = getConfigEnv();
770
- const defaultConfig = await _chunkOFHMWQZFcjs.getDefaultConfig.call(void 0, _workspaceRoot);
771
770
  const configFile = await getConfigFile(_workspaceRoot);
772
- if (!configFile && !skipLogs) {
773
- _chunkOFHMWQZFcjs.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", {
774
- logLevel: "all"
775
- });
771
+ if (!configFile) {
772
+ if (!skipLogs) {
773
+ _chunk5LN4W7RScjs.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", {
774
+ logLevel: "all"
775
+ });
776
+ }
777
+ if (useDefault === false) {
778
+ return void 0;
779
+ }
776
780
  }
777
- result = await _chunkOFHMWQZFcjs.stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
781
+ const defaultConfig = await _chunk5LN4W7RScjs.getDefaultConfig.call(void 0, _workspaceRoot);
782
+ result = await _chunk5LN4W7RScjs.stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
778
783
  result.workspaceRoot ??= _workspaceRoot;
779
784
  } else {
780
785
  result = _static_cache.data;
@@ -806,11 +811,11 @@ var createConfigExtension = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0
806
811
  return extension;
807
812
  }, "createConfigExtension");
808
813
  var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
809
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
814
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
810
815
  setConfigEnv(config);
811
816
  if (!skipLogs && !config.skipConfigLogging) {
812
- _chunkOFHMWQZFcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
813
- ${_chunkOFHMWQZFcjs.formatLogMessage.call(void 0, config)}`, config);
817
+ _chunk5LN4W7RScjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
818
+ ${_chunk5LN4W7RScjs.formatLogMessage.call(void 0, config)}`, config);
814
819
  }
815
820
  return config;
816
821
  }, "loadStormWorkspaceConfig");
@@ -851,8 +856,8 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
851
856
  _chunkEZGTDCYMcjs.fixImportsPlugin.call(void 0, options, resolvedOptions),
852
857
  _chunkS6M44SSZcjs.nativeNodeModulesPlugin.call(void 0, options, resolvedOptions),
853
858
  _chunkCGFDQ5AJcjs.esmSplitCodeToCjsPlugin.call(void 0, options, resolvedOptions),
854
- _chunkLRVWPYICcjs.tscPlugin.call(void 0, options, resolvedOptions),
855
- _chunkKYYHVNV4cjs.onErrorPlugin.call(void 0, options, resolvedOptions)
859
+ _chunk63NDGTHKcjs.tscPlugin.call(void 0, options, resolvedOptions),
860
+ _chunkBFF4J5BMcjs.onErrorPlugin.call(void 0, options, resolvedOptions)
856
861
  ], "getDefaultBuildPlugins");
857
862
  var DEFAULT_BUILD_OPTIONS = {
858
863
  platform: "node",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-E2ITHLMT.js";
3
+ } from "./chunk-EQ6TXPLW.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-3GQAWCBQ.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeWarning
4
- } from "./chunk-E2ITHLMT.js";
4
+ } from "./chunk-EQ6TXPLW.js";
5
5
  import {
6
6
  __name,
7
7
  __require
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOFHMWQZFcjs = require('./chunk-OFHMWQZF.cjs');
4
+ var _chunk5LN4W7RScjs = require('./chunk-5LN4W7RS.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
- _chunkOFHMWQZFcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
- const stopwatch = _chunkOFHMWQZFcjs.getStopwatch.call(void 0, `${name} output clean`);
12
+ _chunk5LN4W7RScjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
+ const stopwatch = _chunk5LN4W7RScjs.getStopwatch.call(void 0, `${name} output clean`);
14
14
  await cleanDirectories(name, directory, config);
15
15
  stopwatch();
16
16
  }
@@ -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; } var _class;
2
2
 
3
- var _chunkOFHMWQZFcjs = require('./chunk-OFHMWQZF.cjs');
3
+ var _chunk5LN4W7RScjs = require('./chunk-5LN4W7RS.cjs');
4
4
 
5
5
 
6
6
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
@@ -122,7 +122,7 @@ function emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles = true, c
122
122
  });
123
123
  const diagnosticMessage = diagnosticMessages.join("\n");
124
124
  if (diagnosticMessage) {
125
- _chunkOFHMWQZFcjs.writeError.call(void 0, `Failed to emit declaration files.
125
+ _chunk5LN4W7RScjs.writeError.call(void 0, `Failed to emit declaration files.
126
126
 
127
127
  ${diagnosticMessage}`, workspaceConfig);
128
128
  throw new Error("TypeScript compilation failed");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-E2ITHLMT.js";
3
+ } from "./chunk-EQ6TXPLW.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-3GQAWCBQ.js";
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 _chunkHTG42YEHcjs = require('./chunk-HTG42YEH.cjs');
5
- require('./chunk-OFHMWQZF.cjs');
4
+ var _chunkVFORKCNScjs = require('./chunk-VFORKCNS.cjs');
5
+ require('./chunk-5LN4W7RS.cjs');
6
6
  require('./chunk-XITTOHOG.cjs');
7
7
  require('./chunk-BGYQAVKQ.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.clean = _chunkHTG42YEHcjs.clean; exports.cleanDirectories = _chunkHTG42YEHcjs.cleanDirectories;
11
+ exports.clean = _chunkVFORKCNScjs.clean; exports.cleanDirectories = _chunkVFORKCNScjs.cleanDirectories;
package/dist/clean.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as StormWorkspaceConfig } from './types-BVD_-NDh.cjs';
1
+ import { S as StormWorkspaceConfig } from './types-B4jbZA4j.cjs';
2
2
  import 'zod';
3
3
 
4
4
  /**
package/dist/clean.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as StormWorkspaceConfig } from './types-BVD_-NDh.js';
1
+ import { S as StormWorkspaceConfig } from './types-B4jbZA4j.js';
2
2
  import 'zod';
3
3
 
4
4
  /**
package/dist/clean.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-6AQHAXIU.js";
5
- import "./chunk-E2ITHLMT.js";
4
+ } from "./chunk-M4O2EJ6Z.js";
5
+ import "./chunk-EQ6TXPLW.js";
6
6
  import "./chunk-YMTDVMD6.js";
7
7
  import "./chunk-3GQAWCBQ.js";
8
8
  export {
package/dist/config.cjs CHANGED
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkQYSYE4DQcjs = require('./chunk-QYSYE4DQ.cjs');
4
+ var _chunkPKPG6XXPcjs = require('./chunk-PKPG6XXP.cjs');
5
5
  require('./chunk-EZGTDCYM.cjs');
6
6
  require('./chunk-S6M44SSZ.cjs');
7
7
  require('./chunk-WRBUO7H6.cjs');
8
- require('./chunk-KYYHVNV4.cjs');
8
+ require('./chunk-BFF4J5BM.cjs');
9
9
  require('./chunk-SSEYS7LI.cjs');
10
- require('./chunk-LRVWPYIC.cjs');
11
- require('./chunk-OFHMWQZF.cjs');
10
+ require('./chunk-63NDGTHK.cjs');
11
+ require('./chunk-5LN4W7RS.cjs');
12
12
  require('./chunk-XITTOHOG.cjs');
13
13
  require('./chunk-CGFDQ5AJ.cjs');
14
14
  require('./chunk-BGYQAVKQ.cjs');
15
15
 
16
16
 
17
17
 
18
- exports.DEFAULT_BUILD_OPTIONS = _chunkQYSYE4DQcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkQYSYE4DQcjs.getDefaultBuildPlugins;
18
+ exports.DEFAULT_BUILD_OPTIONS = _chunkPKPG6XXPcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkPKPG6XXPcjs.getDefaultBuildPlugins;
package/dist/config.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS,
3
3
  getDefaultBuildPlugins
4
- } from "./chunk-CFK6TJYF.js";
4
+ } from "./chunk-LOXSNNRO.js";
5
5
  import "./chunk-GWG4HOQ6.js";
6
6
  import "./chunk-T5272PC2.js";
7
7
  import "./chunk-LYDEMC26.js";
8
- import "./chunk-E4SGSVQK.js";
8
+ import "./chunk-UAKT6QUX.js";
9
9
  import "./chunk-Q3LOGZKI.js";
10
- import "./chunk-6OP2VX6Y.js";
11
- import "./chunk-E2ITHLMT.js";
10
+ import "./chunk-IY7XC4HQ.js";
11
+ import "./chunk-EQ6TXPLW.js";
12
12
  import "./chunk-YMTDVMD6.js";
13
13
  import "./chunk-YNQ45EAM.js";
14
14
  import "./chunk-3GQAWCBQ.js";
package/dist/index.cjs CHANGED
@@ -7,31 +7,31 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkCJ75TYKDcjs = require('./chunk-CJ75TYKD.cjs');
10
+ var _chunkDQKNCLPIcjs = require('./chunk-DQKNCLPI.cjs');
11
11
 
12
12
 
13
13
 
14
- var _chunkHTG42YEHcjs = require('./chunk-HTG42YEH.cjs');
14
+ var _chunkVFORKCNScjs = require('./chunk-VFORKCNS.cjs');
15
15
 
16
16
 
17
17
 
18
- var _chunkQYSYE4DQcjs = require('./chunk-QYSYE4DQ.cjs');
18
+ var _chunkPKPG6XXPcjs = require('./chunk-PKPG6XXP.cjs');
19
19
  require('./chunk-EZGTDCYM.cjs');
20
20
  require('./chunk-S6M44SSZ.cjs');
21
21
  require('./chunk-WRBUO7H6.cjs');
22
- require('./chunk-KYYHVNV4.cjs');
22
+ require('./chunk-BFF4J5BM.cjs');
23
23
  require('./chunk-SSEYS7LI.cjs');
24
- require('./chunk-LRVWPYIC.cjs');
24
+ require('./chunk-63NDGTHK.cjs');
25
25
 
26
26
 
27
27
 
28
28
 
29
29
 
30
30
 
31
- var _chunkOPVRR2SUcjs = require('./chunk-OPVRR2SU.cjs');
31
+ var _chunkVK6V4C6Acjs = require('./chunk-VK6V4C6A.cjs');
32
32
  require('./chunk-SFZRYJZ2.cjs');
33
- require('./chunk-ASASYO7N.cjs');
34
- require('./chunk-OFHMWQZF.cjs');
33
+ require('./chunk-FYFB2IQY.cjs');
34
+ require('./chunk-5LN4W7RS.cjs');
35
35
  require('./chunk-XITTOHOG.cjs');
36
36
  require('./chunk-CGFDQ5AJ.cjs');
37
37
  require('./chunk-BGYQAVKQ.cjs');
@@ -53,4 +53,4 @@ require('./chunk-BGYQAVKQ.cjs');
53
53
 
54
54
 
55
55
 
56
- exports.DEFAULT_BUILD_OPTIONS = _chunkQYSYE4DQcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkCJ75TYKDcjs.Filter; exports.Mapper = _chunkCJ75TYKDcjs.Mapper; exports.build = _chunkCJ75TYKDcjs.build; exports.clean = _chunkHTG42YEHcjs.clean; exports.cleanDirectories = _chunkHTG42YEHcjs.cleanDirectories; exports.cleanOutputPath = _chunkCJ75TYKDcjs.cleanOutputPath; exports.emitDts = _chunkOPVRR2SUcjs.emitDts; exports.emitDtsFiles = _chunkOPVRR2SUcjs.emitDtsFiles; exports.ensureTempDeclarationDir = _chunkOPVRR2SUcjs.ensureTempDeclarationDir; exports.getDefaultBuildPlugins = _chunkQYSYE4DQcjs.getDefaultBuildPlugins; exports.handle = _chunkCJ75TYKDcjs.handle; exports.pipe = _chunkCJ75TYKDcjs.pipe; exports.skip = _chunkCJ75TYKDcjs.skip; exports.slash = _chunkOPVRR2SUcjs.slash; exports.toAbsolutePath = _chunkOPVRR2SUcjs.toAbsolutePath; exports.transduce = _chunkCJ75TYKDcjs.transduce;
56
+ exports.DEFAULT_BUILD_OPTIONS = _chunkPKPG6XXPcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkDQKNCLPIcjs.Filter; exports.Mapper = _chunkDQKNCLPIcjs.Mapper; exports.build = _chunkDQKNCLPIcjs.build; exports.clean = _chunkVFORKCNScjs.clean; exports.cleanDirectories = _chunkVFORKCNScjs.cleanDirectories; exports.cleanOutputPath = _chunkDQKNCLPIcjs.cleanOutputPath; exports.emitDts = _chunkVK6V4C6Acjs.emitDts; exports.emitDtsFiles = _chunkVK6V4C6Acjs.emitDtsFiles; exports.ensureTempDeclarationDir = _chunkVK6V4C6Acjs.ensureTempDeclarationDir; exports.getDefaultBuildPlugins = _chunkPKPG6XXPcjs.getDefaultBuildPlugins; exports.handle = _chunkDQKNCLPIcjs.handle; exports.pipe = _chunkDQKNCLPIcjs.pipe; exports.skip = _chunkDQKNCLPIcjs.skip; exports.slash = _chunkVK6V4C6Acjs.slash; exports.toAbsolutePath = _chunkVK6V4C6Acjs.toAbsolutePath; exports.transduce = _chunkDQKNCLPIcjs.transduce;
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ export { clean, cleanDirectories } from './clean.cjs';
3
3
  export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins } from './config.cjs';
4
4
  export { emitDts, emitDtsFiles, ensureTempDeclarationDir, slash, toAbsolutePath } from './tsc.cjs';
5
5
  export { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, ExportDeclaration, MaybePromise, ModifyEsbuildOptions, RenderChunk, Renderer, WrittenFile } from './types.cjs';
6
- import './types-BVD_-NDh.cjs';
6
+ import './types-B4jbZA4j.cjs';
7
7
  import 'zod';
8
8
  import 'esbuild';
9
9
  import 'typescript';
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { clean, cleanDirectories } from './clean.js';
3
3
  export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins } from './config.js';
4
4
  export { emitDts, emitDtsFiles, ensureTempDeclarationDir, slash, toAbsolutePath } from './tsc.js';
5
5
  export { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, ExportDeclaration, MaybePromise, ModifyEsbuildOptions, RenderChunk, Renderer, WrittenFile } from './types.js';
6
- import './types-BVD_-NDh.js';
6
+ import './types-B4jbZA4j.js';
7
7
  import 'zod';
8
8
  import 'esbuild';
9
9
  import 'typescript';
package/dist/index.js CHANGED
@@ -7,31 +7,31 @@ import {
7
7
  pipe,
8
8
  skip,
9
9
  transduce
10
- } from "./chunk-CEE2QW7F.js";
10
+ } from "./chunk-A6VGGOSN.js";
11
11
  import {
12
12
  clean,
13
13
  cleanDirectories
14
- } from "./chunk-6AQHAXIU.js";
14
+ } from "./chunk-M4O2EJ6Z.js";
15
15
  import {
16
16
  DEFAULT_BUILD_OPTIONS,
17
17
  getDefaultBuildPlugins
18
- } from "./chunk-CFK6TJYF.js";
18
+ } from "./chunk-LOXSNNRO.js";
19
19
  import "./chunk-GWG4HOQ6.js";
20
20
  import "./chunk-T5272PC2.js";
21
21
  import "./chunk-LYDEMC26.js";
22
- import "./chunk-E4SGSVQK.js";
22
+ import "./chunk-UAKT6QUX.js";
23
23
  import "./chunk-Q3LOGZKI.js";
24
- import "./chunk-6OP2VX6Y.js";
24
+ import "./chunk-IY7XC4HQ.js";
25
25
  import {
26
26
  emitDts,
27
27
  emitDtsFiles,
28
28
  ensureTempDeclarationDir,
29
29
  slash,
30
30
  toAbsolutePath
31
- } from "./chunk-A6P3N2E2.js";
31
+ } from "./chunk-YXPXX5XP.js";
32
32
  import "./chunk-GGNOJ77I.js";
33
- import "./chunk-SLCDPX5I.js";
34
- import "./chunk-E2ITHLMT.js";
33
+ import "./chunk-V3JNF263.js";
34
+ import "./chunk-EQ6TXPLW.js";
35
35
  import "./chunk-YMTDVMD6.js";
36
36
  import "./chunk-YNQ45EAM.js";
37
37
  import "./chunk-3GQAWCBQ.js";
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkASASYO7Ncjs = require('../chunk-ASASYO7N.cjs');
4
- require('../chunk-OFHMWQZF.cjs');
3
+ var _chunkFYFB2IQYcjs = require('../chunk-FYFB2IQY.cjs');
4
+ require('../chunk-5LN4W7RS.cjs');
5
5
  require('../chunk-XITTOHOG.cjs');
6
6
  require('../chunk-BGYQAVKQ.cjs');
7
7
 
8
8
 
9
- exports.depsCheckPlugin = _chunkASASYO7Ncjs.depsCheckPlugin;
9
+ exports.depsCheckPlugin = _chunkFYFB2IQYcjs.depsCheckPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  depsCheckPlugin
3
- } from "../chunk-SLCDPX5I.js";
4
- import "../chunk-E2ITHLMT.js";
3
+ } from "../chunk-V3JNF263.js";
4
+ import "../chunk-EQ6TXPLW.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 _chunkKYYHVNV4cjs = require('../chunk-KYYHVNV4.cjs');
4
- require('../chunk-OFHMWQZF.cjs');
3
+ var _chunkBFF4J5BMcjs = require('../chunk-BFF4J5BM.cjs');
4
+ require('../chunk-5LN4W7RS.cjs');
5
5
  require('../chunk-XITTOHOG.cjs');
6
6
  require('../chunk-BGYQAVKQ.cjs');
7
7
 
8
8
 
9
- exports.onErrorPlugin = _chunkKYYHVNV4cjs.onErrorPlugin;
9
+ exports.onErrorPlugin = _chunkBFF4J5BMcjs.onErrorPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  onErrorPlugin
3
- } from "../chunk-E4SGSVQK.js";
4
- import "../chunk-E2ITHLMT.js";
3
+ } from "../chunk-UAKT6QUX.js";
4
+ import "../chunk-EQ6TXPLW.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 _chunkLRVWPYICcjs = require('../chunk-LRVWPYIC.cjs');
4
- require('../chunk-OFHMWQZF.cjs');
3
+ var _chunk63NDGTHKcjs = require('../chunk-63NDGTHK.cjs');
4
+ require('../chunk-5LN4W7RS.cjs');
5
5
  require('../chunk-XITTOHOG.cjs');
6
6
  require('../chunk-BGYQAVKQ.cjs');
7
7
 
8
8
 
9
- exports.tscPlugin = _chunkLRVWPYICcjs.tscPlugin;
9
+ exports.tscPlugin = _chunk63NDGTHKcjs.tscPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  tscPlugin
3
- } from "../chunk-6OP2VX6Y.js";
4
- import "../chunk-E2ITHLMT.js";
3
+ } from "../chunk-IY7XC4HQ.js";
4
+ import "../chunk-EQ6TXPLW.js";
5
5
  import "../chunk-YMTDVMD6.js";
6
6
  import "../chunk-3GQAWCBQ.js";
7
7
  export {
package/dist/tsc.cjs CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkOPVRR2SUcjs = require('./chunk-OPVRR2SU.cjs');
8
- require('./chunk-OFHMWQZF.cjs');
7
+ var _chunkVK6V4C6Acjs = require('./chunk-VK6V4C6A.cjs');
8
+ require('./chunk-5LN4W7RS.cjs');
9
9
  require('./chunk-XITTOHOG.cjs');
10
10
  require('./chunk-BGYQAVKQ.cjs');
11
11
 
@@ -14,4 +14,4 @@ require('./chunk-BGYQAVKQ.cjs');
14
14
 
15
15
 
16
16
 
17
- exports.emitDts = _chunkOPVRR2SUcjs.emitDts; exports.emitDtsFiles = _chunkOPVRR2SUcjs.emitDtsFiles; exports.ensureTempDeclarationDir = _chunkOPVRR2SUcjs.ensureTempDeclarationDir; exports.slash = _chunkOPVRR2SUcjs.slash; exports.toAbsolutePath = _chunkOPVRR2SUcjs.toAbsolutePath;
17
+ exports.emitDts = _chunkVK6V4C6Acjs.emitDts; exports.emitDtsFiles = _chunkVK6V4C6Acjs.emitDtsFiles; exports.ensureTempDeclarationDir = _chunkVK6V4C6Acjs.ensureTempDeclarationDir; exports.slash = _chunkVK6V4C6Acjs.slash; exports.toAbsolutePath = _chunkVK6V4C6Acjs.toAbsolutePath;
package/dist/tsc.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as StormWorkspaceConfig } from './types-BVD_-NDh.cjs';
1
+ import { S as StormWorkspaceConfig } from './types-B4jbZA4j.cjs';
2
2
  import { TsconfigRaw } from 'esbuild';
3
3
  import ts from 'typescript';
4
4
  import { ExportDeclaration } from './types.cjs';
package/dist/tsc.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as StormWorkspaceConfig } from './types-BVD_-NDh.js';
1
+ import { S as StormWorkspaceConfig } from './types-B4jbZA4j.js';
2
2
  import { TsconfigRaw } from 'esbuild';
3
3
  import ts from 'typescript';
4
4
  import { ExportDeclaration } from './types.js';
package/dist/tsc.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  ensureTempDeclarationDir,
5
5
  slash,
6
6
  toAbsolutePath
7
- } from "./chunk-A6P3N2E2.js";
8
- import "./chunk-E2ITHLMT.js";
7
+ } from "./chunk-YXPXX5XP.js";
8
+ import "./chunk-EQ6TXPLW.js";
9
9
  import "./chunk-YMTDVMD6.js";
10
10
  import "./chunk-3GQAWCBQ.js";
11
11
  export {