@storm-software/esbuild 0.23.10 → 0.23.12

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 (41) hide show
  1. package/README.md +1 -1
  2. package/bin/esbuild.cjs +1200 -0
  3. package/dist/build.cjs +10 -10
  4. package/dist/build.js +9 -9
  5. package/dist/{chunk-RIVOXICH.js → chunk-2TSSKHLN.js} +2 -2
  6. package/dist/{chunk-V747733R.cjs → chunk-7B5IS3JU.cjs} +3 -3
  7. package/dist/{chunk-4Q76YH6E.js → chunk-7BNTMCVO.js} +1 -1
  8. package/dist/{chunk-U2QMMQDA.cjs → chunk-EKAZKXNP.cjs} +67 -67
  9. package/dist/{chunk-B2PY326H.js → chunk-GUU57L7S.js} +1 -1
  10. package/dist/{chunk-5A3PLYYB.js → chunk-HETBF2XF.js} +1 -1
  11. package/dist/{chunk-2STSOOUQ.js → chunk-NZA22OTO.js} +6 -6
  12. package/dist/{chunk-XOY3T2ZQ.js → chunk-Q3LOGZKI.js} +1 -1
  13. package/dist/{chunk-JYZKDIZJ.js → chunk-RAOTNBZB.js} +1 -1
  14. package/dist/{chunk-5UODOOQA.cjs → chunk-SSEYS7LI.cjs} +2 -2
  15. package/dist/{chunk-AP5TC7E5.cjs → chunk-TVEZYOW4.cjs} +2 -2
  16. package/dist/{chunk-CNHHELK6.cjs → chunk-URNZZJ4H.cjs} +3 -3
  17. package/dist/{chunk-YHAEJIC5.cjs → chunk-W7IOYOPN.cjs} +11 -11
  18. package/dist/{chunk-HXF5CHDH.js → chunk-WRQFX4AD.js} +5 -5
  19. package/dist/chunk-XITTOHOG.cjs +135 -0
  20. package/dist/{chunk-MPZUORUA.cjs → chunk-YMPJ3GHZ.cjs} +4 -4
  21. package/dist/chunk-YMTDVMD6.js +135 -0
  22. package/dist/{chunk-ZQYP5TTV.cjs → chunk-ZMQZFCEU.cjs} +51 -51
  23. package/dist/clean.cjs +4 -4
  24. package/dist/clean.d.cts +10 -10
  25. package/dist/clean.d.ts +10 -10
  26. package/dist/clean.js +3 -3
  27. package/dist/config.cjs +7 -7
  28. package/dist/config.js +6 -6
  29. package/dist/index.cjs +10 -10
  30. package/dist/index.js +9 -9
  31. package/dist/plugins/deps-check.cjs +4 -4
  32. package/dist/plugins/deps-check.js +3 -3
  33. package/dist/plugins/on-error.cjs +4 -4
  34. package/dist/plugins/on-error.js +3 -3
  35. package/dist/plugins/resolve-paths.cjs +3 -3
  36. package/dist/plugins/resolve-paths.js +2 -2
  37. package/dist/plugins/tsc.cjs +4 -4
  38. package/dist/plugins/tsc.js +3 -3
  39. package/package.json +7 -7
  40. package/dist/chunk-GHWCUMOG.cjs +0 -32
  41. package/dist/chunk-P4V2LVOO.js +0 -32
@@ -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 _chunkV747733Rcjs = require('./chunk-V747733R.cjs');
3
+ var _chunk7B5IS3JUcjs = require('./chunk-7B5IS3JU.cjs');
4
4
 
5
5
 
6
6
 
@@ -14,10 +14,10 @@ var _chunkV747733Rcjs = require('./chunk-V747733R.cjs');
14
14
 
15
15
 
16
16
 
17
- var _chunkU2QMMQDAcjs = require('./chunk-U2QMMQDA.cjs');
17
+ var _chunkEKAZKXNPcjs = require('./chunk-EKAZKXNP.cjs');
18
18
 
19
19
 
20
- var _chunkCNHHELK6cjs = require('./chunk-CNHHELK6.cjs');
20
+ var _chunkURNZZJ4Hcjs = require('./chunk-URNZZJ4H.cjs');
21
21
 
22
22
 
23
23
 
@@ -27,10 +27,10 @@ var _chunkCNHHELK6cjs = require('./chunk-CNHHELK6.cjs');
27
27
 
28
28
 
29
29
 
30
- var _chunkMPZUORUAcjs = require('./chunk-MPZUORUA.cjs');
30
+ var _chunkYMPJ3GHZcjs = require('./chunk-YMPJ3GHZ.cjs');
31
31
 
32
32
 
33
- var _chunkGHWCUMOGcjs = require('./chunk-GHWCUMOG.cjs');
33
+ var _chunkXITTOHOGcjs = require('./chunk-XITTOHOG.cjs');
34
34
 
35
35
 
36
36
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
@@ -278,13 +278,13 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
278
278
  if (!workspaceRoot) {
279
279
  throw new Error("Cannot find Nx workspace root");
280
280
  }
281
- const config = await _chunkU2QMMQDAcjs.getConfig.call(void 0, workspaceRoot.dir);
282
- _chunkMPZUORUAcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
283
- const stopwatch = _chunkMPZUORUAcjs.getStopwatch.call(void 0, "Build options resolution");
281
+ const config = await _chunkEKAZKXNPcjs.getConfig.call(void 0, workspaceRoot.dir);
282
+ _chunkYMPJ3GHZcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
283
+ const stopwatch = _chunkYMPJ3GHZcjs.getStopwatch.call(void 0, "Build options resolution");
284
284
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
285
285
  exitOnError: true
286
286
  });
287
- const projectJsonPath = _chunkGHWCUMOGcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
287
+ const projectJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
288
288
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
289
289
  throw new Error("Cannot find project.json configuration");
290
290
  }
@@ -295,17 +295,17 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
295
295
  if (!_optionalChain([projectConfigurations, 'optionalAccess', _14 => _14.projects, 'optionalAccess', _15 => _15[projectName]])) {
296
296
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
297
297
  }
298
- const options = _defu2.default.call(void 0, userOptions, _chunkU2QMMQDAcjs.DEFAULT_BUILD_OPTIONS);
298
+ const options = _defu2.default.call(void 0, userOptions, _chunkEKAZKXNPcjs.DEFAULT_BUILD_OPTIONS);
299
299
  options.name ??= `${projectName}-${options.format}`;
300
- options.target ??= _chunkU2QMMQDAcjs.DEFAULT_TARGET;
301
- const packageJsonPath = _chunkGHWCUMOGcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
300
+ options.target ??= _chunkEKAZKXNPcjs.DEFAULT_TARGET;
301
+ const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
302
302
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
303
303
  throw new Error("Cannot find package.json configuration");
304
304
  }
305
305
  const packageJsonFile = await _promises2.default.readFile(packageJsonPath, "utf8");
306
306
  const packageJson = JSON.parse(packageJsonFile);
307
- const outExtension = _chunkU2QMMQDAcjs.getOutputExtensionMap.call(void 0, options, packageJson.type);
308
- const env = _chunkU2QMMQDAcjs.getEnv.call(void 0, "esbuild", options);
307
+ const outExtension = _chunkEKAZKXNPcjs.getOutputExtensionMap.call(void 0, options, packageJson.type);
308
+ const env = _chunkEKAZKXNPcjs.getEnv.call(void 0, "esbuild", options);
309
309
  const result = {
310
310
  ...options,
311
311
  config,
@@ -323,20 +323,20 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
323
323
  ".node"
324
324
  ],
325
325
  ...userOptions,
326
- tsconfig: _chunkGHWCUMOGcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
326
+ tsconfig: _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
327
327
  format: options.format || "cjs",
328
- entryPoints: await _chunkU2QMMQDAcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
328
+ entryPoints: await _chunkEKAZKXNPcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
329
329
  "./src/index.ts"
330
330
  ], userOptions.emitOnAll),
331
- outdir: userOptions.outputPath || _chunkGHWCUMOGcjs.joinPaths.call(void 0, "dist", projectRoot),
331
+ outdir: userOptions.outputPath || _chunkXITTOHOGcjs.joinPaths.call(void 0, "dist", projectRoot),
332
332
  plugins: [],
333
333
  name: userOptions.name || projectName,
334
334
  projectConfigurations,
335
335
  projectName,
336
336
  projectGraph,
337
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkGHWCUMOGcjs.joinPaths.call(void 0, projectRoot, "src"),
337
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, "src"),
338
338
  minify: userOptions.minify || !userOptions.debug,
339
- verbose: userOptions.verbose || _chunkMPZUORUAcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
339
+ verbose: userOptions.verbose || _chunkYMPJ3GHZcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
340
340
  includeSrc: userOptions.includeSrc === true,
341
341
  metafile: userOptions.metafile !== false,
342
342
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -350,8 +350,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
350
350
  outExtension,
351
351
  footer: userOptions.footer,
352
352
  banner: {
353
- js: options.banner || _chunkU2QMMQDAcjs.DEFAULT_COMPILED_BANNER,
354
- css: options.banner || _chunkU2QMMQDAcjs.DEFAULT_COMPILED_BANNER
353
+ js: options.banner || _chunkEKAZKXNPcjs.DEFAULT_COMPILED_BANNER,
354
+ css: options.banner || _chunkEKAZKXNPcjs.DEFAULT_COMPILED_BANNER
355
355
  },
356
356
  splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
357
357
  treeShaking: options.format === "esm",
@@ -372,33 +372,33 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
372
372
  }, {})
373
373
  },
374
374
  inject: [
375
- options.format === "cjs" && options.injectShims ? _chunkGHWCUMOGcjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
376
- options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkGHWCUMOGcjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
375
+ options.format === "cjs" && options.injectShims ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
376
+ options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
377
377
  ..._nullishCoalesce(options.inject, () => ( []))
378
378
  ].filter(Boolean)
379
379
  };
380
- result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkU2QMMQDAcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
380
+ result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkEKAZKXNPcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
381
381
  stopwatch();
382
382
  return result;
383
383
  }, "resolveOptions");
384
384
  async function generatePackageJson(context2) {
385
- if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkGHWCUMOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
386
- _chunkMPZUORUAcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
387
- const stopwatch = _chunkMPZUORUAcjs.getStopwatch.call(void 0, "Write package.json file");
388
- const packageJsonPath = _chunkGHWCUMOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
385
+ if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
386
+ _chunkYMPJ3GHZcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
387
+ const stopwatch = _chunkYMPJ3GHZcjs.getStopwatch.call(void 0, "Write package.json file");
388
+ const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
389
389
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
390
390
  throw new Error("Cannot find package.json configuration");
391
391
  }
392
- const packageJsonFile = await _promises2.default.readFile(_chunkGHWCUMOGcjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
392
+ const packageJsonFile = await _promises2.default.readFile(_chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
393
393
  let packageJson = JSON.parse(packageJsonFile);
394
394
  if (!packageJson) {
395
395
  throw new Error("Cannot find package.json configuration file");
396
396
  }
397
- packageJson = await _chunkU2QMMQDAcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
398
- packageJson = await _chunkU2QMMQDAcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
397
+ packageJson = await _chunkEKAZKXNPcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
398
+ packageJson = await _chunkEKAZKXNPcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
399
399
  packageJson.exports ??= {};
400
400
  packageJson.exports["./package.json"] ??= "./package.json";
401
- packageJson.exports["."] ??= _chunkU2QMMQDAcjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
401
+ packageJson.exports["."] ??= _chunkEKAZKXNPcjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
402
402
  let entryPoints = [
403
403
  {
404
404
  in: "./src/index.ts",
@@ -416,7 +416,7 @@ async function generatePackageJson(context2) {
416
416
  const split = entryPoint.out.split(".");
417
417
  split.pop();
418
418
  const entry = split.join(".").replaceAll("\\", "/");
419
- packageJson.exports[`./${entry}`] ??= _chunkU2QMMQDAcjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
419
+ packageJson.exports[`./${entry}`] ??= _chunkEKAZKXNPcjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
420
420
  }
421
421
  }
422
422
  packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
@@ -428,7 +428,7 @@ async function generatePackageJson(context2) {
428
428
  }
429
429
  return ret;
430
430
  }, packageJson.exports);
431
- await _devkit.writeJsonFile.call(void 0, _chunkGHWCUMOGcjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
431
+ await _devkit.writeJsonFile.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
432
432
  stopwatch();
433
433
  }
434
434
  return context2;
@@ -454,8 +454,8 @@ async function generateContext(getOptions) {
454
454
  }
455
455
  _chunkBGYQAVKQcjs.__name.call(void 0, generateContext, "generateContext");
456
456
  async function executeEsBuild(context2) {
457
- _chunkMPZUORUAcjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
458
- const stopwatch = _chunkMPZUORUAcjs.getStopwatch.call(void 0, `${context2.options.name} build`);
457
+ _chunkYMPJ3GHZcjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
458
+ const stopwatch = _chunkYMPJ3GHZcjs.getStopwatch.call(void 0, `${context2.options.name} build`);
459
459
  if (process.env.WATCH === "true") {
460
460
  const ctx = await esbuild.context(context2.options);
461
461
  watch(ctx, context2.options);
@@ -471,9 +471,9 @@ async function executeEsBuild(context2) {
471
471
  _chunkBGYQAVKQcjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
472
472
  async function copyBuildAssets(context2) {
473
473
  if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
474
- _chunkMPZUORUAcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
475
- const stopwatch = _chunkMPZUORUAcjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
476
- await _chunkU2QMMQDAcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
474
+ _chunkYMPJ3GHZcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
475
+ const stopwatch = _chunkYMPJ3GHZcjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
476
+ await _chunkEKAZKXNPcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
477
477
  stopwatch();
478
478
  }
479
479
  return context2;
@@ -482,9 +482,9 @@ _chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
482
482
  async function reportResults(context2) {
483
483
  if (_optionalChain([context2, 'access', _19 => _19.result, 'optionalAccess', _20 => _20.errors, 'access', _21 => _21.length]) === 0) {
484
484
  if (context2.result.warnings.length > 0) {
485
- _chunkMPZUORUAcjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
485
+ _chunkYMPJ3GHZcjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
486
486
  }
487
- _chunkMPZUORUAcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
487
+ _chunkYMPJ3GHZcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
488
488
  }
489
489
  }
490
490
  _chunkBGYQAVKQcjs.__name.call(void 0, reportResults, "reportResults");
@@ -510,7 +510,7 @@ async function dependencyCheck(options) {
510
510
  write: false,
511
511
  outdir: "out",
512
512
  plugins: [
513
- _chunkCNHHELK6cjs.depsCheckPlugin.call(void 0, options.bundle)
513
+ _chunkURNZZJ4Hcjs.depsCheckPlugin.call(void 0, options.bundle)
514
514
  ]
515
515
  });
516
516
  await buildPromise.catch(() => {
@@ -520,17 +520,17 @@ async function dependencyCheck(options) {
520
520
  _chunkBGYQAVKQcjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
521
521
  async function cleanOutputPath(context2) {
522
522
  if (context2.options.clean !== false && context2.options.outdir) {
523
- _chunkMPZUORUAcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
524
- const stopwatch = _chunkMPZUORUAcjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
525
- await _chunkV747733Rcjs.cleanDirectories.call(void 0, context2.options.name, context2.options.outdir, context2.options.config);
523
+ _chunkYMPJ3GHZcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
524
+ const stopwatch = _chunkYMPJ3GHZcjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
525
+ await _chunk7B5IS3JUcjs.cleanDirectories.call(void 0, context2.options.name, context2.options.outdir, context2.options.config);
526
526
  stopwatch();
527
527
  }
528
528
  return context2;
529
529
  }
530
530
  _chunkBGYQAVKQcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
531
531
  async function build2(options) {
532
- _chunkMPZUORUAcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
533
- const stopwatch = _chunkMPZUORUAcjs.getStopwatch.call(void 0, "ESBuild pipeline");
532
+ _chunkYMPJ3GHZcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
533
+ const stopwatch = _chunkYMPJ3GHZcjs.getStopwatch.call(void 0, "ESBuild pipeline");
534
534
  try {
535
535
  const opts = Array.isArray(options) ? options : [
536
536
  options
@@ -540,9 +540,9 @@ async function build2(options) {
540
540
  }
541
541
  void transduce.async(opts, dependencyCheck);
542
542
  await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
543
- _chunkMPZUORUAcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
543
+ _chunkYMPJ3GHZcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
544
544
  } catch (error) {
545
- _chunkMPZUORUAcjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
545
+ _chunkYMPJ3GHZcjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
546
546
  throw error;
547
547
  } finally {
548
548
  stopwatch();
@@ -570,9 +570,9 @@ var watch = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (context2, opt
570
570
  return context2.rebuild();
571
571
  });
572
572
  if (rebuildResult instanceof Error) {
573
- _chunkMPZUORUAcjs.writeError.call(void 0, rebuildResult.message);
573
+ _chunkYMPJ3GHZcjs.writeError.call(void 0, rebuildResult.message);
574
574
  }
575
- _chunkMPZUORUAcjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
575
+ _chunkYMPJ3GHZcjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
576
576
  }, 10);
577
577
  changeWatcher.on("change", fastRebuild);
578
578
  return void 0;
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 _chunkV747733Rcjs = require('./chunk-V747733R.cjs');
5
- require('./chunk-MPZUORUA.cjs');
6
- require('./chunk-GHWCUMOG.cjs');
4
+ var _chunk7B5IS3JUcjs = require('./chunk-7B5IS3JU.cjs');
5
+ require('./chunk-YMPJ3GHZ.cjs');
6
+ require('./chunk-XITTOHOG.cjs');
7
7
  require('./chunk-BGYQAVKQ.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.clean = _chunkV747733Rcjs.clean; exports.cleanDirectories = _chunkV747733Rcjs.cleanDirectories;
11
+ exports.clean = _chunk7B5IS3JUcjs.clean; exports.cleanDirectories = _chunk7B5IS3JUcjs.cleanDirectories;
package/dist/clean.d.cts CHANGED
@@ -40,15 +40,15 @@ declare const StormConfigSchema: z.ZodObject<{
40
40
  build: z.ZodDefault<z.ZodString>;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  build: string;
43
+ config?: string | undefined;
43
44
  cache?: string | undefined;
44
45
  data?: string | undefined;
45
- config?: string | undefined;
46
46
  temp?: string | undefined;
47
47
  log?: string | undefined;
48
48
  }, {
49
+ config?: string | undefined;
49
50
  cache?: string | undefined;
50
51
  data?: string | undefined;
51
- config?: string | undefined;
52
52
  temp?: string | undefined;
53
53
  log?: string | undefined;
54
54
  build?: string | undefined;
@@ -794,6 +794,8 @@ declare const StormConfigSchema: z.ZodObject<{
794
794
  }>]>>]>]>;
795
795
  extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
796
796
  }, "strip", z.ZodTypeAny, {
797
+ logLevel: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all";
798
+ env: "development" | "staging" | "production";
797
799
  organization: string;
798
800
  license: string;
799
801
  homepage: string;
@@ -805,22 +807,20 @@ declare const StormConfigSchema: z.ZodObject<{
805
807
  name: string;
806
808
  email: string;
807
809
  };
808
- env: "development" | "staging" | "production";
809
810
  workspaceRoot: string;
810
811
  externalPackagePatterns: string[];
811
812
  skipCache: boolean;
812
813
  directories: {
813
814
  build: string;
815
+ config?: string | undefined;
814
816
  cache?: string | undefined;
815
817
  data?: string | undefined;
816
- config?: string | undefined;
817
818
  temp?: string | undefined;
818
819
  log?: string | undefined;
819
820
  };
820
821
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
821
822
  timezone: string;
822
823
  locale: string;
823
- logLevel: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all";
824
824
  registry: {
825
825
  npm?: string | undefined;
826
826
  github?: string | undefined;
@@ -977,9 +977,9 @@ declare const StormConfigSchema: z.ZodObject<{
977
977
  };
978
978
  }>;
979
979
  extensions: Record<string, any>;
980
+ name?: string | undefined;
980
981
  $schema?: string | null | undefined;
981
982
  extends?: string | string[] | undefined;
982
- name?: string | undefined;
983
983
  namespace?: string | undefined;
984
984
  repository?: string | undefined;
985
985
  preid?: string | undefined;
@@ -989,9 +989,9 @@ declare const StormConfigSchema: z.ZodObject<{
989
989
  email?: string | undefined;
990
990
  };
991
991
  directories: {
992
+ config?: string | undefined;
992
993
  cache?: string | undefined;
993
994
  data?: string | undefined;
994
- config?: string | undefined;
995
995
  temp?: string | undefined;
996
996
  log?: string | undefined;
997
997
  build?: string | undefined;
@@ -1143,9 +1143,11 @@ declare const StormConfigSchema: z.ZodObject<{
1143
1143
  background?: string | undefined;
1144
1144
  };
1145
1145
  }>;
1146
+ logLevel?: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all" | undefined;
1147
+ name?: string | undefined;
1148
+ env?: "development" | "staging" | "production" | undefined;
1146
1149
  $schema?: string | null | undefined;
1147
1150
  extends?: string | string[] | undefined;
1148
- name?: string | undefined;
1149
1151
  namespace?: string | undefined;
1150
1152
  organization?: string | undefined;
1151
1153
  repository?: string | undefined;
@@ -1156,14 +1158,12 @@ declare const StormConfigSchema: z.ZodObject<{
1156
1158
  branch?: string | undefined;
1157
1159
  preid?: string | undefined;
1158
1160
  owner?: string | undefined;
1159
- env?: "development" | "staging" | "production" | undefined;
1160
1161
  workspaceRoot?: string | undefined;
1161
1162
  externalPackagePatterns?: string[] | undefined;
1162
1163
  skipCache?: boolean | undefined;
1163
1164
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
1164
1165
  timezone?: string | undefined;
1165
1166
  locale?: string | undefined;
1166
- logLevel?: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
1167
1167
  registry?: {
1168
1168
  npm?: string | undefined;
1169
1169
  github?: string | undefined;
package/dist/clean.d.ts CHANGED
@@ -40,15 +40,15 @@ declare const StormConfigSchema: z.ZodObject<{
40
40
  build: z.ZodDefault<z.ZodString>;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  build: string;
43
+ config?: string | undefined;
43
44
  cache?: string | undefined;
44
45
  data?: string | undefined;
45
- config?: string | undefined;
46
46
  temp?: string | undefined;
47
47
  log?: string | undefined;
48
48
  }, {
49
+ config?: string | undefined;
49
50
  cache?: string | undefined;
50
51
  data?: string | undefined;
51
- config?: string | undefined;
52
52
  temp?: string | undefined;
53
53
  log?: string | undefined;
54
54
  build?: string | undefined;
@@ -794,6 +794,8 @@ declare const StormConfigSchema: z.ZodObject<{
794
794
  }>]>>]>]>;
795
795
  extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
796
796
  }, "strip", z.ZodTypeAny, {
797
+ logLevel: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all";
798
+ env: "development" | "staging" | "production";
797
799
  organization: string;
798
800
  license: string;
799
801
  homepage: string;
@@ -805,22 +807,20 @@ declare const StormConfigSchema: z.ZodObject<{
805
807
  name: string;
806
808
  email: string;
807
809
  };
808
- env: "development" | "staging" | "production";
809
810
  workspaceRoot: string;
810
811
  externalPackagePatterns: string[];
811
812
  skipCache: boolean;
812
813
  directories: {
813
814
  build: string;
815
+ config?: string | undefined;
814
816
  cache?: string | undefined;
815
817
  data?: string | undefined;
816
- config?: string | undefined;
817
818
  temp?: string | undefined;
818
819
  log?: string | undefined;
819
820
  };
820
821
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
821
822
  timezone: string;
822
823
  locale: string;
823
- logLevel: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all";
824
824
  registry: {
825
825
  npm?: string | undefined;
826
826
  github?: string | undefined;
@@ -977,9 +977,9 @@ declare const StormConfigSchema: z.ZodObject<{
977
977
  };
978
978
  }>;
979
979
  extensions: Record<string, any>;
980
+ name?: string | undefined;
980
981
  $schema?: string | null | undefined;
981
982
  extends?: string | string[] | undefined;
982
- name?: string | undefined;
983
983
  namespace?: string | undefined;
984
984
  repository?: string | undefined;
985
985
  preid?: string | undefined;
@@ -989,9 +989,9 @@ declare const StormConfigSchema: z.ZodObject<{
989
989
  email?: string | undefined;
990
990
  };
991
991
  directories: {
992
+ config?: string | undefined;
992
993
  cache?: string | undefined;
993
994
  data?: string | undefined;
994
- config?: string | undefined;
995
995
  temp?: string | undefined;
996
996
  log?: string | undefined;
997
997
  build?: string | undefined;
@@ -1143,9 +1143,11 @@ declare const StormConfigSchema: z.ZodObject<{
1143
1143
  background?: string | undefined;
1144
1144
  };
1145
1145
  }>;
1146
+ logLevel?: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all" | undefined;
1147
+ name?: string | undefined;
1148
+ env?: "development" | "staging" | "production" | undefined;
1146
1149
  $schema?: string | null | undefined;
1147
1150
  extends?: string | string[] | undefined;
1148
- name?: string | undefined;
1149
1151
  namespace?: string | undefined;
1150
1152
  organization?: string | undefined;
1151
1153
  repository?: string | undefined;
@@ -1156,14 +1158,12 @@ declare const StormConfigSchema: z.ZodObject<{
1156
1158
  branch?: string | undefined;
1157
1159
  preid?: string | undefined;
1158
1160
  owner?: string | undefined;
1159
- env?: "development" | "staging" | "production" | undefined;
1160
1161
  workspaceRoot?: string | undefined;
1161
1162
  externalPackagePatterns?: string[] | undefined;
1162
1163
  skipCache?: boolean | undefined;
1163
1164
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
1164
1165
  timezone?: string | undefined;
1165
1166
  locale?: string | undefined;
1166
- logLevel?: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
1167
1167
  registry?: {
1168
1168
  npm?: string | undefined;
1169
1169
  github?: string | undefined;
package/dist/clean.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-JYZKDIZJ.js";
5
- import "./chunk-B2PY326H.js";
6
- import "./chunk-P4V2LVOO.js";
4
+ } from "./chunk-RAOTNBZB.js";
5
+ import "./chunk-GUU57L7S.js";
6
+ import "./chunk-YMTDVMD6.js";
7
7
  import "./chunk-3GQAWCBQ.js";
8
8
  export {
9
9
  clean,
package/dist/config.cjs CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkU2QMMQDAcjs = require('./chunk-U2QMMQDA.cjs');
5
+ var _chunkEKAZKXNPcjs = require('./chunk-EKAZKXNP.cjs');
6
6
  require('./chunk-S6M44SSZ.cjs');
7
7
  require('./chunk-WRBUO7H6.cjs');
8
- require('./chunk-AP5TC7E5.cjs');
9
- require('./chunk-5UODOOQA.cjs');
10
- require('./chunk-YHAEJIC5.cjs');
11
- require('./chunk-MPZUORUA.cjs');
12
- require('./chunk-GHWCUMOG.cjs');
8
+ require('./chunk-TVEZYOW4.cjs');
9
+ require('./chunk-SSEYS7LI.cjs');
10
+ require('./chunk-W7IOYOPN.cjs');
11
+ require('./chunk-YMPJ3GHZ.cjs');
12
+ require('./chunk-XITTOHOG.cjs');
13
13
  require('./chunk-CGFDQ5AJ.cjs');
14
14
  require('./chunk-EZGTDCYM.cjs');
15
15
  require('./chunk-BGYQAVKQ.cjs');
@@ -17,4 +17,4 @@ require('./chunk-BGYQAVKQ.cjs');
17
17
 
18
18
 
19
19
 
20
- exports.DEFAULT_BUILD_OPTIONS = _chunkU2QMMQDAcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkU2QMMQDAcjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunkU2QMMQDAcjs.getOutputExtensionMap;
20
+ exports.DEFAULT_BUILD_OPTIONS = _chunkEKAZKXNPcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkEKAZKXNPcjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunkEKAZKXNPcjs.getOutputExtensionMap;
package/dist/config.js CHANGED
@@ -2,14 +2,14 @@ import {
2
2
  DEFAULT_BUILD_OPTIONS,
3
3
  getDefaultBuildPlugins,
4
4
  getOutputExtensionMap
5
- } from "./chunk-2STSOOUQ.js";
5
+ } from "./chunk-NZA22OTO.js";
6
6
  import "./chunk-T5272PC2.js";
7
7
  import "./chunk-LYDEMC26.js";
8
- import "./chunk-5A3PLYYB.js";
9
- import "./chunk-XOY3T2ZQ.js";
10
- import "./chunk-RIVOXICH.js";
11
- import "./chunk-B2PY326H.js";
12
- import "./chunk-P4V2LVOO.js";
8
+ import "./chunk-HETBF2XF.js";
9
+ import "./chunk-Q3LOGZKI.js";
10
+ import "./chunk-2TSSKHLN.js";
11
+ import "./chunk-GUU57L7S.js";
12
+ import "./chunk-YMTDVMD6.js";
13
13
  import "./chunk-YNQ45EAM.js";
14
14
  import "./chunk-GWG4HOQ6.js";
15
15
  import "./chunk-3GQAWCBQ.js";
package/dist/index.cjs CHANGED
@@ -7,25 +7,25 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkZQYP5TTVcjs = require('./chunk-ZQYP5TTV.cjs');
10
+ var _chunkZMQZFCEUcjs = require('./chunk-ZMQZFCEU.cjs');
11
11
 
12
12
 
13
13
 
14
- var _chunkV747733Rcjs = require('./chunk-V747733R.cjs');
14
+ var _chunk7B5IS3JUcjs = require('./chunk-7B5IS3JU.cjs');
15
15
 
16
16
 
17
17
 
18
18
 
19
- var _chunkU2QMMQDAcjs = require('./chunk-U2QMMQDA.cjs');
19
+ var _chunkEKAZKXNPcjs = require('./chunk-EKAZKXNP.cjs');
20
20
  require('./chunk-S6M44SSZ.cjs');
21
21
  require('./chunk-WRBUO7H6.cjs');
22
- require('./chunk-AP5TC7E5.cjs');
23
- require('./chunk-5UODOOQA.cjs');
24
- require('./chunk-YHAEJIC5.cjs');
22
+ require('./chunk-TVEZYOW4.cjs');
23
+ require('./chunk-SSEYS7LI.cjs');
24
+ require('./chunk-W7IOYOPN.cjs');
25
25
  require('./chunk-SFZRYJZ2.cjs');
26
- require('./chunk-CNHHELK6.cjs');
27
- require('./chunk-MPZUORUA.cjs');
28
- require('./chunk-GHWCUMOG.cjs');
26
+ require('./chunk-URNZZJ4H.cjs');
27
+ require('./chunk-YMPJ3GHZ.cjs');
28
+ require('./chunk-XITTOHOG.cjs');
29
29
  require('./chunk-CGFDQ5AJ.cjs');
30
30
  require('./chunk-EZGTDCYM.cjs');
31
31
  require('./chunk-BGYQAVKQ.cjs');
@@ -43,4 +43,4 @@ require('./chunk-BGYQAVKQ.cjs');
43
43
 
44
44
 
45
45
 
46
- exports.DEFAULT_BUILD_OPTIONS = _chunkU2QMMQDAcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkZQYP5TTVcjs.Filter; exports.Mapper = _chunkZQYP5TTVcjs.Mapper; exports.build = _chunkZQYP5TTVcjs.build; exports.clean = _chunkV747733Rcjs.clean; exports.cleanDirectories = _chunkV747733Rcjs.cleanDirectories; exports.cleanOutputPath = _chunkZQYP5TTVcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkU2QMMQDAcjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunkU2QMMQDAcjs.getOutputExtensionMap; exports.handle = _chunkZQYP5TTVcjs.handle; exports.pipe = _chunkZQYP5TTVcjs.pipe; exports.skip = _chunkZQYP5TTVcjs.skip; exports.transduce = _chunkZQYP5TTVcjs.transduce;
46
+ exports.DEFAULT_BUILD_OPTIONS = _chunkEKAZKXNPcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkZMQZFCEUcjs.Filter; exports.Mapper = _chunkZMQZFCEUcjs.Mapper; exports.build = _chunkZMQZFCEUcjs.build; exports.clean = _chunk7B5IS3JUcjs.clean; exports.cleanDirectories = _chunk7B5IS3JUcjs.cleanDirectories; exports.cleanOutputPath = _chunkZMQZFCEUcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkEKAZKXNPcjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunkEKAZKXNPcjs.getOutputExtensionMap; exports.handle = _chunkZMQZFCEUcjs.handle; exports.pipe = _chunkZMQZFCEUcjs.pipe; exports.skip = _chunkZMQZFCEUcjs.skip; exports.transduce = _chunkZMQZFCEUcjs.transduce;
package/dist/index.js CHANGED
@@ -7,25 +7,25 @@ import {
7
7
  pipe,
8
8
  skip,
9
9
  transduce
10
- } from "./chunk-HXF5CHDH.js";
10
+ } from "./chunk-WRQFX4AD.js";
11
11
  import {
12
12
  clean,
13
13
  cleanDirectories
14
- } from "./chunk-JYZKDIZJ.js";
14
+ } from "./chunk-RAOTNBZB.js";
15
15
  import {
16
16
  DEFAULT_BUILD_OPTIONS,
17
17
  getDefaultBuildPlugins,
18
18
  getOutputExtensionMap
19
- } from "./chunk-2STSOOUQ.js";
19
+ } from "./chunk-NZA22OTO.js";
20
20
  import "./chunk-T5272PC2.js";
21
21
  import "./chunk-LYDEMC26.js";
22
- import "./chunk-5A3PLYYB.js";
23
- import "./chunk-XOY3T2ZQ.js";
24
- import "./chunk-RIVOXICH.js";
22
+ import "./chunk-HETBF2XF.js";
23
+ import "./chunk-Q3LOGZKI.js";
24
+ import "./chunk-2TSSKHLN.js";
25
25
  import "./chunk-GGNOJ77I.js";
26
- import "./chunk-4Q76YH6E.js";
27
- import "./chunk-B2PY326H.js";
28
- import "./chunk-P4V2LVOO.js";
26
+ import "./chunk-7BNTMCVO.js";
27
+ import "./chunk-GUU57L7S.js";
28
+ import "./chunk-YMTDVMD6.js";
29
29
  import "./chunk-YNQ45EAM.js";
30
30
  import "./chunk-GWG4HOQ6.js";
31
31
  import "./chunk-3GQAWCBQ.js";
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkCNHHELK6cjs = require('../chunk-CNHHELK6.cjs');
4
- require('../chunk-MPZUORUA.cjs');
5
- require('../chunk-GHWCUMOG.cjs');
3
+ var _chunkURNZZJ4Hcjs = require('../chunk-URNZZJ4H.cjs');
4
+ require('../chunk-YMPJ3GHZ.cjs');
5
+ require('../chunk-XITTOHOG.cjs');
6
6
  require('../chunk-BGYQAVKQ.cjs');
7
7
 
8
8
 
9
- exports.depsCheckPlugin = _chunkCNHHELK6cjs.depsCheckPlugin;
9
+ exports.depsCheckPlugin = _chunkURNZZJ4Hcjs.depsCheckPlugin;