@storm-software/esbuild 0.31.27 → 0.31.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/esbuild.cjs CHANGED
@@ -1062,7 +1062,9 @@ async function createProgram(config) {
1062
1062
  const root = (0, import_find_workspace_root2.findWorkspaceRootSafe)();
1063
1063
  process.env.STORM_WORKSPACE_ROOT ??= root;
1064
1064
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
1065
- root && process.chdir(root);
1065
+ if (root) {
1066
+ process.chdir(root);
1067
+ }
1066
1068
  const program = new import_commander.Command("storm-esbuild");
1067
1069
  program.version("1.0.0", "-v --version", "display CLI version");
1068
1070
  program.description("\u26A1 Run the Storm ESBuild pipeline").showHelpAfterError().showSuggestionAfterError();
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 _chunkIJPOOWVJcjs = require('./chunk-IJPOOWVJ.cjs');
5
- require('./chunk-ATQXZL2N.cjs');
6
- require('./chunk-AGWKKDSC.cjs');
4
+ var _chunkAY3TWHXScjs = require('./chunk-AY3TWHXS.cjs');
5
+ require('./chunk-XF4W7Y5G.cjs');
6
+ require('./chunk-C53X3QIN.cjs');
7
7
  require('./chunk-S6M44SSZ.cjs');
8
8
  require('./chunk-WRBUO7H6.cjs');
9
- require('./chunk-UONT522M.cjs');
9
+ require('./chunk-QICNNYHX.cjs');
10
10
  require('./chunk-SSEYS7LI.cjs');
11
- require('./chunk-YK3LK2JZ.cjs');
12
- require('./chunk-FY4GMRVA.cjs');
13
- require('./chunk-IQNPH4CN.cjs');
11
+ require('./chunk-6D27C2MD.cjs');
12
+ require('./chunk-S2QQQQC4.cjs');
13
+ require('./chunk-UFNNCUFM.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 = _chunkIJPOOWVJcjs.build; exports.cleanOutputPath = _chunkIJPOOWVJcjs.cleanOutputPath;
21
+ exports.build = _chunkAY3TWHXScjs.build; exports.cleanOutputPath = _chunkAY3TWHXScjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-QZ2LI3FG.js";
5
- import "./chunk-QJ5VE3PG.js";
6
- import "./chunk-YUFST2S3.js";
4
+ } from "./chunk-CCHSZBIJ.js";
5
+ import "./chunk-DJBLQVO3.js";
6
+ import "./chunk-6ESUOJS3.js";
7
7
  import "./chunk-T5272PC2.js";
8
8
  import "./chunk-LYDEMC26.js";
9
- import "./chunk-MP6USOJU.js";
9
+ import "./chunk-LTXLRCFK.js";
10
10
  import "./chunk-Q3LOGZKI.js";
11
- import "./chunk-NR55GSOK.js";
12
- import "./chunk-ILLWUPTW.js";
13
- import "./chunk-SGTMRJLZ.js";
11
+ import "./chunk-4F2UUEOG.js";
12
+ import "./chunk-YSMZ4KXD.js";
13
+ import "./chunk-OS6IORPL.js";
14
14
  import "./chunk-YMTDVMD6.js";
15
15
  import "./chunk-YNQ45EAM.js";
16
16
  import "./chunk-GWG4HOQ6.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-SGTMRJLZ.js";
3
+ } from "./chunk-OS6IORPL.js";
4
4
  import {
5
5
  joinPaths
6
6
  } from "./chunk-YMTDVMD6.js";
@@ -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 _chunkIQNPH4CNcjs = require('./chunk-IQNPH4CN.cjs');
3
+ var _chunkUFNNCUFMcjs = require('./chunk-UFNNCUFM.cjs');
4
4
 
5
5
 
6
6
  var _chunkXITTOHOGcjs = require('./chunk-XITTOHOG.cjs');
@@ -85,7 +85,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
85
85
  localBuild: true
86
86
  });
87
87
  if (extractorResult.succeeded === false) {
88
- _chunkIQNPH4CNcjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
88
+ _chunkUFNNCUFMcjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
89
89
  throw new Error("API Extractor completed with errors");
90
90
  }
91
91
  }
@@ -6,29 +6,29 @@ import {
6
6
  } from "./chunk-LYDEMC26.js";
7
7
  import {
8
8
  onErrorPlugin
9
- } from "./chunk-MP6USOJU.js";
9
+ } from "./chunk-LTXLRCFK.js";
10
10
  import {
11
11
  resolvePathsPlugin
12
12
  } from "./chunk-Q3LOGZKI.js";
13
13
  import {
14
14
  tscPlugin
15
- } from "./chunk-NR55GSOK.js";
15
+ } from "./chunk-4F2UUEOG.js";
16
16
  import {
17
17
  COLOR_KEYS,
18
18
  LogLevel,
19
19
  STORM_DEFAULT_DOCS,
20
20
  STORM_DEFAULT_HOMEPAGE,
21
21
  STORM_DEFAULT_LICENSING,
22
- StormConfigSchema,
23
22
  findWorkspaceRoot,
24
23
  formatLogMessage,
25
24
  getDefaultConfig,
26
25
  getLogLevel,
27
26
  getLogLevelLabel,
27
+ stormWorkspaceConfigSchema,
28
28
  writeDebug,
29
29
  writeTrace,
30
30
  writeWarning
31
- } from "./chunk-SGTMRJLZ.js";
31
+ } from "./chunk-OS6IORPL.js";
32
32
  import {
33
33
  correctPaths,
34
34
  joinPaths
@@ -168,13 +168,13 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projec
168
168
  return ret;
169
169
  }, []);
170
170
  packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
171
- if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name)) {
172
- ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
171
+ if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name) && packageJson.devDependencies?.[localPackage.name] === void 0) {
172
+ ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
173
173
  }
174
174
  return ret;
175
175
  }, packageJson.dependencies ?? {});
176
176
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
177
- if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
177
+ if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name) && packageJson.dependencies?.[localPackage.name] === void 0) {
178
178
  ret[localPackage.name] = localPackage.version || "0.0.1";
179
179
  }
180
180
  return ret;
@@ -745,7 +745,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
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__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
748
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
749
749
  let result;
750
750
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
751
751
  let _workspaceRoot = workspaceRoot;
@@ -760,7 +760,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
760
760
  logLevel: "all"
761
761
  });
762
762
  }
763
- result = await StormConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
763
+ result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
764
764
  result.workspaceRoot ??= _workspaceRoot;
765
765
  } else {
766
766
  result = _static_cache.data;
@@ -776,7 +776,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
776
776
  data: result
777
777
  };
778
778
  return result;
779
- }, "createStormConfig");
779
+ }, "createStormWorkspaceConfig");
780
780
  var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
781
781
  const extension_cache_key = {
782
782
  extensionName
@@ -791,19 +791,19 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
791
791
  _extension_cache.set(extension_cache_key, extension);
792
792
  return extension;
793
793
  }, "createConfigExtension");
794
- var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
795
- const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
794
+ var loadStormWorkspaceConfig = /* @__PURE__ */ __name(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
798
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
799
799
  ${formatLogMessage(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__ */ __name((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
@@ -843,7 +843,11 @@ var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRo
843
843
  return ret;
844
844
  }, []));
845
845
  } else {
846
- paths.push(entryPoint);
846
+ const result = correctPaths(entryPoint.replaceAll(correctPaths(workspaceRoot), "").replaceAll(correctPaths(projectRoot), ""));
847
+ writeDebug(`Trying to add entry point ${result}"`, config);
848
+ if (!paths.includes(result)) {
849
+ paths.push(result);
850
+ }
847
851
  }
848
852
  return paths;
849
853
  }));
@@ -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 _chunkATQXZL2Ncjs = require('./chunk-ATQXZL2N.cjs');
3
+ var _chunkXF4W7Y5Gcjs = require('./chunk-XF4W7Y5G.cjs');
4
4
 
5
5
 
6
6
 
@@ -12,10 +12,10 @@ var _chunkATQXZL2Ncjs = require('./chunk-ATQXZL2N.cjs');
12
12
 
13
13
 
14
14
 
15
- var _chunkAGWKKDSCcjs = require('./chunk-AGWKKDSC.cjs');
15
+ var _chunkC53X3QINcjs = require('./chunk-C53X3QIN.cjs');
16
16
 
17
17
 
18
- var _chunkFY4GMRVAcjs = require('./chunk-FY4GMRVA.cjs');
18
+ var _chunkS2QQQQC4cjs = require('./chunk-S2QQQQC4.cjs');
19
19
 
20
20
 
21
21
 
@@ -26,7 +26,7 @@ var _chunkFY4GMRVAcjs = require('./chunk-FY4GMRVA.cjs');
26
26
 
27
27
 
28
28
 
29
- var _chunkIQNPH4CNcjs = require('./chunk-IQNPH4CN.cjs');
29
+ var _chunkUFNNCUFMcjs = require('./chunk-UFNNCUFM.cjs');
30
30
 
31
31
 
32
32
  var _chunkXITTOHOGcjs = require('./chunk-XITTOHOG.cjs');
@@ -277,9 +277,9 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
277
277
  if (!workspaceRoot) {
278
278
  throw new Error("Cannot find Nx workspace root");
279
279
  }
280
- const config = await _chunkAGWKKDSCcjs.getConfig.call(void 0, workspaceRoot.dir);
281
- _chunkIQNPH4CNcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
282
- const stopwatch = _chunkIQNPH4CNcjs.getStopwatch.call(void 0, "Build options resolution");
280
+ const config = await _chunkC53X3QINcjs.getConfig.call(void 0, workspaceRoot.dir);
281
+ _chunkUFNNCUFMcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
282
+ const stopwatch = _chunkUFNNCUFMcjs.getStopwatch.call(void 0, "Build options resolution");
283
283
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
284
284
  exitOnError: true
285
285
  });
@@ -294,14 +294,14 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
294
294
  if (!_optionalChain([projectConfigurations, 'optionalAccess', _14 => _14.projects, 'optionalAccess', _15 => _15[projectName]])) {
295
295
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
296
296
  }
297
- const options = _defu2.default.call(void 0, userOptions, _chunkAGWKKDSCcjs.DEFAULT_BUILD_OPTIONS);
297
+ const options = _defu2.default.call(void 0, userOptions, _chunkC53X3QINcjs.DEFAULT_BUILD_OPTIONS);
298
298
  options.name ??= `${projectName}-${options.format}`;
299
- options.target ??= _chunkAGWKKDSCcjs.DEFAULT_TARGET;
299
+ options.target ??= _chunkC53X3QINcjs.DEFAULT_TARGET;
300
300
  const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
301
301
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
302
302
  throw new Error("Cannot find package.json configuration");
303
303
  }
304
- const env = _chunkAGWKKDSCcjs.getEnv.call(void 0, "esbuild", options);
304
+ const env = _chunkC53X3QINcjs.getEnv.call(void 0, "esbuild", options);
305
305
  const result = {
306
306
  ...options,
307
307
  config,
@@ -316,7 +316,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
316
316
  ...userOptions,
317
317
  tsconfig: _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
318
318
  format: options.format || "cjs",
319
- entryPoints: await _chunkAGWKKDSCcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), userOptions.emitOnAll === true),
319
+ entryPoints: await _chunkC53X3QINcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), userOptions.emitOnAll === true),
320
320
  outdir: userOptions.outputPath || _chunkXITTOHOGcjs.joinPaths.call(void 0, "dist", projectRoot),
321
321
  distDir: userOptions.distDir || "dist",
322
322
  plugins: [],
@@ -326,7 +326,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
326
326
  projectGraph,
327
327
  sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, "src"),
328
328
  minify: userOptions.minify || !userOptions.debug,
329
- verbose: userOptions.verbose || _chunkIQNPH4CNcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
329
+ verbose: userOptions.verbose || _chunkUFNNCUFMcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
330
330
  includeSrc: userOptions.includeSrc === true,
331
331
  metafile: userOptions.metafile !== false,
332
332
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -339,8 +339,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
339
339
  watch: userOptions.watch === true,
340
340
  footer: userOptions.footer,
341
341
  banner: {
342
- js: options.banner || _chunkAGWKKDSCcjs.DEFAULT_COMPILED_BANNER,
343
- css: options.banner || _chunkAGWKKDSCcjs.DEFAULT_COMPILED_BANNER
342
+ js: options.banner || _chunkC53X3QINcjs.DEFAULT_COMPILED_BANNER,
343
+ css: options.banner || _chunkC53X3QINcjs.DEFAULT_COMPILED_BANNER
344
344
  },
345
345
  splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
346
346
  treeShaking: options.format === "esm",
@@ -366,7 +366,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
366
366
  options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : void 0
367
367
  ].filter(Boolean)
368
368
  };
369
- result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkAGWKKDSCcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
369
+ result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkC53X3QINcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
370
370
  if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
371
371
  result.inject = options.inject.reduce((ret, inj) => {
372
372
  if (inj && typeof inj === "string" && ret.includes(inj)) {
@@ -382,8 +382,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
382
382
  }, "resolveOptions");
383
383
  async function generatePackageJson(context2) {
384
384
  if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
385
- _chunkIQNPH4CNcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
386
- const stopwatch = _chunkIQNPH4CNcjs.getStopwatch.call(void 0, "Write package.json file");
385
+ _chunkUFNNCUFMcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
386
+ const stopwatch = _chunkUFNNCUFMcjs.getStopwatch.call(void 0, "Write package.json file");
387
387
  const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
388
388
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
389
389
  throw new Error("Cannot find package.json configuration");
@@ -393,8 +393,8 @@ async function generatePackageJson(context2) {
393
393
  if (!packageJson) {
394
394
  throw new Error("Cannot find package.json configuration file");
395
395
  }
396
- packageJson = await _chunkAGWKKDSCcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
397
- packageJson = await _chunkAGWKKDSCcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
396
+ packageJson = await _chunkC53X3QINcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
397
+ packageJson = await _chunkC53X3QINcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
398
398
  packageJson.exports ??= {};
399
399
  packageJson.exports["./package.json"] ??= "./package.json";
400
400
  packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
@@ -456,8 +456,8 @@ async function generateContext(getOptions) {
456
456
  }
457
457
  _chunkBGYQAVKQcjs.__name.call(void 0, generateContext, "generateContext");
458
458
  async function executeEsBuild(context2) {
459
- _chunkIQNPH4CNcjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
460
- const stopwatch = _chunkIQNPH4CNcjs.getStopwatch.call(void 0, `${context2.options.name} build`);
459
+ _chunkUFNNCUFMcjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
460
+ const stopwatch = _chunkUFNNCUFMcjs.getStopwatch.call(void 0, `${context2.options.name} build`);
461
461
  if (process.env.STORM_WATCH) {
462
462
  const ctx = await esbuild.context(context2.options);
463
463
  watch(ctx, context2.options);
@@ -491,8 +491,8 @@ async function executeEsBuild(context2) {
491
491
  delete options.config;
492
492
  delete options.injectShims;
493
493
  delete options.external;
494
- _chunkIQNPH4CNcjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
495
- ${_chunkIQNPH4CNcjs.formatLogMessage.call(void 0, options)}`, context2.options.config);
494
+ _chunkUFNNCUFMcjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
495
+ ${_chunkUFNNCUFMcjs.formatLogMessage.call(void 0, options)}`, context2.options.config);
496
496
  const result = await esbuild.build(options);
497
497
  await esbuild.stop();
498
498
  if (result.metafile) {
@@ -505,9 +505,9 @@ ${_chunkIQNPH4CNcjs.formatLogMessage.call(void 0, options)}`, context2.options.c
505
505
  _chunkBGYQAVKQcjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
506
506
  async function copyBuildAssets(context2) {
507
507
  if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
508
- _chunkIQNPH4CNcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
509
- const stopwatch = _chunkIQNPH4CNcjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
510
- await _chunkAGWKKDSCcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
508
+ _chunkUFNNCUFMcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
509
+ const stopwatch = _chunkUFNNCUFMcjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
510
+ await _chunkC53X3QINcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
511
511
  stopwatch();
512
512
  }
513
513
  return context2;
@@ -516,9 +516,9 @@ _chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
516
516
  async function reportResults(context2) {
517
517
  if (_optionalChain([context2, 'access', _19 => _19.result, 'optionalAccess', _20 => _20.errors, 'access', _21 => _21.length]) === 0) {
518
518
  if (context2.result.warnings.length > 0) {
519
- _chunkIQNPH4CNcjs.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);
519
+ _chunkUFNNCUFMcjs.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);
520
520
  }
521
- _chunkIQNPH4CNcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
521
+ _chunkUFNNCUFMcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
522
522
  }
523
523
  }
524
524
  _chunkBGYQAVKQcjs.__name.call(void 0, reportResults, "reportResults");
@@ -544,7 +544,7 @@ async function dependencyCheck(options) {
544
544
  write: false,
545
545
  outdir: "out",
546
546
  plugins: [
547
- _chunkFY4GMRVAcjs.depsCheckPlugin.call(void 0, options.bundle)
547
+ _chunkS2QQQQC4cjs.depsCheckPlugin.call(void 0, options.bundle)
548
548
  ]
549
549
  });
550
550
  await buildPromise.catch(() => {
@@ -554,17 +554,17 @@ async function dependencyCheck(options) {
554
554
  _chunkBGYQAVKQcjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
555
555
  async function cleanOutputPath(context2) {
556
556
  if (context2.options.clean !== false && context2.options.outdir) {
557
- _chunkIQNPH4CNcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
558
- const stopwatch = _chunkIQNPH4CNcjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
559
- await _chunkATQXZL2Ncjs.cleanDirectories.call(void 0, context2.options.name, context2.options.outdir, context2.options.config);
557
+ _chunkUFNNCUFMcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
558
+ const stopwatch = _chunkUFNNCUFMcjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
559
+ await _chunkXF4W7Y5Gcjs.cleanDirectories.call(void 0, context2.options.name, context2.options.outdir, context2.options.config);
560
560
  stopwatch();
561
561
  }
562
562
  return context2;
563
563
  }
564
564
  _chunkBGYQAVKQcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
565
565
  async function build2(options) {
566
- _chunkIQNPH4CNcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
567
- const stopwatch = _chunkIQNPH4CNcjs.getStopwatch.call(void 0, "ESBuild pipeline");
566
+ _chunkUFNNCUFMcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
567
+ const stopwatch = _chunkUFNNCUFMcjs.getStopwatch.call(void 0, "ESBuild pipeline");
568
568
  try {
569
569
  const opts = Array.isArray(options) ? options : [
570
570
  options
@@ -574,9 +574,9 @@ async function build2(options) {
574
574
  }
575
575
  void transduce.async(opts, dependencyCheck);
576
576
  await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
577
- _chunkIQNPH4CNcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
577
+ _chunkUFNNCUFMcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
578
578
  } catch (error) {
579
- _chunkIQNPH4CNcjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
579
+ _chunkUFNNCUFMcjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
580
580
  throw error;
581
581
  } finally {
582
582
  stopwatch();
@@ -604,9 +604,9 @@ var watch = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (context2, opt
604
604
  return context2.rebuild();
605
605
  });
606
606
  if (rebuildResult instanceof Error) {
607
- _chunkIQNPH4CNcjs.writeError.call(void 0, rebuildResult.message);
607
+ _chunkUFNNCUFMcjs.writeError.call(void 0, rebuildResult.message);
608
608
  }
609
- _chunkIQNPH4CNcjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
609
+ _chunkUFNNCUFMcjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
610
610
  }, 10);
611
611
  changeWatcher.on("change", fastRebuild);
612
612
  return void 0;