@storm-software/unbuild 0.19.1 → 0.19.3

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 (39) hide show
  1. package/README.md +1 -1
  2. package/dist/build.js +10 -10
  3. package/dist/build.mjs +9 -9
  4. package/dist/{chunk-3GKJ37E5.mjs → chunk-247QEYBU.mjs} +1 -1
  5. package/dist/{chunk-Z4HA226R.mjs → chunk-ADWQIHP7.mjs} +4 -4
  6. package/dist/chunk-EWSFZCEG.js +31 -0
  7. package/dist/{chunk-MJANEKCB.mjs → chunk-GN7XDZYZ.mjs} +1 -1
  8. package/dist/{chunk-2OYOOP3K.mjs → chunk-I3QGLZCZ.mjs} +1 -1
  9. package/dist/{chunk-JIUEGXNR.js → chunk-IUOPY673.js} +3 -3
  10. package/dist/{chunk-7JQWDZK7.js → chunk-LKV7UO23.js} +3 -3
  11. package/dist/{chunk-5KVMQ5Y2.js → chunk-LQAGEPDN.js} +2 -2
  12. package/dist/{chunk-SUXC6PC6.js → chunk-NITHGLFO.js} +2 -2
  13. package/dist/{chunk-ZCZUHCFF.mjs → chunk-WG6JMMHO.mjs} +1 -1
  14. package/dist/{chunk-YNRMGWNU.mjs → chunk-XFITZSCF.mjs} +5 -5
  15. package/dist/{chunk-QE6INWWB.js → chunk-XVH26RA2.js} +88 -88
  16. package/dist/{clean-DgUPedep.d.ts → clean-BlXMN74D.d.mts} +10 -10
  17. package/dist/{clean-DgUPedep.d.mts → clean-BlXMN74D.d.ts} +10 -10
  18. package/dist/clean.d.mts +1 -1
  19. package/dist/clean.d.ts +1 -1
  20. package/dist/clean.js +3 -3
  21. package/dist/clean.mjs +2 -2
  22. package/dist/config.js +8 -8
  23. package/dist/config.mjs +7 -7
  24. package/dist/index.d.mts +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +11 -11
  27. package/dist/index.mjs +10 -10
  28. package/dist/types.js +1 -1
  29. package/dist/types.mjs +1 -1
  30. package/package.json +1 -1
  31. package/dist/chunk-HT57DNRR.js +0 -31
  32. /package/dist/{chunk-2GNGVITT.js → chunk-4REDJQMU.js} +0 -0
  33. /package/dist/{chunk-WAXGOBY2.mjs → chunk-ERHVDARL.mjs} +0 -0
  34. /package/dist/{chunk-SJ2RVW6N.mjs → chunk-JRCQBO5Q.mjs} +0 -0
  35. /package/dist/{chunk-MV54QOJP.mjs → chunk-KTRDC23G.mjs} +0 -0
  36. /package/dist/{chunk-GGNOJ77I.js → chunk-OULCUN6I.js} +0 -0
  37. /package/dist/{chunk-M2MDALYQ.mjs → chunk-TYJGNL6P.mjs} +0 -0
  38. /package/dist/{chunk-VN5I7Q45.js → chunk-V2LF4EEM.js} +0 -0
  39. /package/dist/{chunk-DI46ZESQ.js → chunk-VNTBD7JR.js} +0 -0
@@ -1,12 +1,12 @@
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(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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 _chunkJIUEGXNRjs = require('./chunk-JIUEGXNR.js');
3
+ var _chunkIUOPY673js = require('./chunk-IUOPY673.js');
4
4
 
5
5
 
6
- var _chunkHT57DNRRjs = require('./chunk-HT57DNRR.js');
6
+ var _chunkEWSFZCEGjs = require('./chunk-EWSFZCEG.js');
7
7
 
8
8
 
9
- var _chunkSUXC6PC6js = require('./chunk-SUXC6PC6.js');
9
+ var _chunkNITHGLFOjs = require('./chunk-NITHGLFO.js');
10
10
 
11
11
 
12
12
 
@@ -29,7 +29,7 @@ var _chunkSUXC6PC6js = require('./chunk-SUXC6PC6.js');
29
29
 
30
30
 
31
31
 
32
- var _chunkDI46ZESQjs = require('./chunk-DI46ZESQ.js');
32
+ var _chunkVNTBD7JRjs = require('./chunk-VNTBD7JR.js');
33
33
 
34
34
 
35
35
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -66,7 +66,7 @@ var _glob = require('glob');
66
66
  var _c12 = require('c12');
67
67
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
68
68
  var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
69
- const workspacePath = filePath || _chunkDI46ZESQjs.findWorkspaceRoot.call(void 0, filePath);
69
+ const workspacePath = filePath || _chunkVNTBD7JRjs.findWorkspaceRoot.call(void 0, filePath);
70
70
  let config = _c12.loadConfig.call(void 0, {
71
71
  cwd: workspacePath,
72
72
  packageJson: true,
@@ -74,7 +74,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
74
74
  envName: _optionalChain([fileName, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]),
75
75
  jitiOptions: {
76
76
  debug: false,
77
- cache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkDI46ZESQjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
77
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkVNTBD7JRjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
78
78
  },
79
79
  ...options
80
80
  });
@@ -86,7 +86,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
86
86
  envName: _optionalChain([fileName, 'optionalAccess', _3 => _3.toUpperCase, 'call', _4 => _4()]),
87
87
  jitiOptions: {
88
88
  debug: false,
89
- cache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkDI46ZESQjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
89
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkVNTBD7JRjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
90
90
  },
91
91
  configFile: fileName,
92
92
  ...options
@@ -95,12 +95,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
95
95
  return config;
96
96
  }, "getConfigFileByName");
97
97
  var getConfigFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
98
- const workspacePath = filePath ? filePath : _chunkDI46ZESQjs.findWorkspaceRoot.call(void 0, filePath);
98
+ const workspacePath = filePath ? filePath : _chunkVNTBD7JRjs.findWorkspaceRoot.call(void 0, filePath);
99
99
  const result = await getConfigFileByName("storm", workspacePath);
100
100
  let config = result.config;
101
101
  const configFile = result.configFile;
102
102
  if (config && configFile && Object.keys(config).length > 0) {
103
- _chunkDI46ZESQjs.writeSystem.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
103
+ _chunkVNTBD7JRjs.writeSystem.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
104
104
  logLevel: "all"
105
105
  });
106
106
  }
@@ -108,7 +108,7 @@ var getConfigFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (
108
108
  const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
109
109
  for (const result2 of results) {
110
110
  if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
111
- _chunkDI46ZESQjs.writeSystem.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
111
+ _chunkVNTBD7JRjs.writeSystem.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
112
112
  logLevel: "all"
113
113
  });
114
114
  config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
@@ -145,15 +145,15 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
145
145
  licensing: process.env[`${prefix}LICENSING`] || void 0,
146
146
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
147
147
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
148
- configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkDI46ZESQjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
149
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkDI46ZESQjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
148
+ configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkVNTBD7JRjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
149
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkVNTBD7JRjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
150
150
  directories: {
151
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkDI46ZESQjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
152
- data: process.env[`${prefix}DATA_DIR`] ? _chunkDI46ZESQjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
153
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkDI46ZESQjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
154
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkDI46ZESQjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
155
- log: process.env[`${prefix}LOG_DIR`] ? _chunkDI46ZESQjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
156
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkDI46ZESQjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
151
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunkVNTBD7JRjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
152
+ data: process.env[`${prefix}DATA_DIR`] ? _chunkVNTBD7JRjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
153
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunkVNTBD7JRjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
154
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunkVNTBD7JRjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
155
+ log: process.env[`${prefix}LOG_DIR`] ? _chunkVNTBD7JRjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
156
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunkVNTBD7JRjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
157
157
  },
158
158
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
159
159
  env: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}ENV`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -176,23 +176,23 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
176
176
  cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
177
177
  container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
178
178
  },
179
- 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`])) ? _chunkDI46ZESQjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
179
+ 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`])) ? _chunkVNTBD7JRjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
180
180
  };
181
- const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkDI46ZESQjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
181
+ const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkVNTBD7JRjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
182
182
  config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
183
183
  ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
184
184
  return ret;
185
185
  }, {}) : getThemeColorConfigEnv(prefix);
186
- if (config.docs === _chunkDI46ZESQjs.STORM_DEFAULT_DOCS) {
187
- if (config.homepage === _chunkDI46ZESQjs.STORM_DEFAULT_HOMEPAGE) {
188
- config.docs = `${_chunkDI46ZESQjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
186
+ if (config.docs === _chunkVNTBD7JRjs.STORM_DEFAULT_DOCS) {
187
+ if (config.homepage === _chunkVNTBD7JRjs.STORM_DEFAULT_HOMEPAGE) {
188
+ config.docs = `${_chunkVNTBD7JRjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
189
189
  } else {
190
190
  config.docs = `${config.homepage}/docs`;
191
191
  }
192
192
  }
193
- if (config.licensing === _chunkDI46ZESQjs.STORM_DEFAULT_LICENSING) {
194
- if (config.homepage === _chunkDI46ZESQjs.STORM_DEFAULT_HOMEPAGE) {
195
- config.licensing = `${_chunkDI46ZESQjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
193
+ if (config.licensing === _chunkVNTBD7JRjs.STORM_DEFAULT_LICENSING) {
194
+ if (config.homepage === _chunkVNTBD7JRjs.STORM_DEFAULT_HOMEPAGE) {
195
+ config.licensing = `${_chunkVNTBD7JRjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
196
196
  } else {
197
197
  config.licensing = `${config.homepage}/docs`;
198
198
  }
@@ -330,31 +330,31 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
330
330
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
331
331
  }
332
332
  if (config.configFile) {
333
- process.env[`${prefix}CONFIG_FILE`] = _chunkDI46ZESQjs.correctPaths.call(void 0, config.configFile);
333
+ process.env[`${prefix}CONFIG_FILE`] = _chunkVNTBD7JRjs.correctPaths.call(void 0, config.configFile);
334
334
  }
335
335
  if (config.workspaceRoot) {
336
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkDI46ZESQjs.correctPaths.call(void 0, config.workspaceRoot);
337
- process.env.NX_WORKSPACE_ROOT = _chunkDI46ZESQjs.correctPaths.call(void 0, config.workspaceRoot);
338
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkDI46ZESQjs.correctPaths.call(void 0, config.workspaceRoot);
336
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunkVNTBD7JRjs.correctPaths.call(void 0, config.workspaceRoot);
337
+ process.env.NX_WORKSPACE_ROOT = _chunkVNTBD7JRjs.correctPaths.call(void 0, config.workspaceRoot);
338
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunkVNTBD7JRjs.correctPaths.call(void 0, config.workspaceRoot);
339
339
  }
340
340
  if (config.directories) {
341
341
  if (!config.skipCache && config.directories.cache) {
342
- process.env[`${prefix}CACHE_DIR`] = _chunkDI46ZESQjs.correctPaths.call(void 0, config.directories.cache);
342
+ process.env[`${prefix}CACHE_DIR`] = _chunkVNTBD7JRjs.correctPaths.call(void 0, config.directories.cache);
343
343
  }
344
344
  if (config.directories.data) {
345
- process.env[`${prefix}DATA_DIR`] = _chunkDI46ZESQjs.correctPaths.call(void 0, config.directories.data);
345
+ process.env[`${prefix}DATA_DIR`] = _chunkVNTBD7JRjs.correctPaths.call(void 0, config.directories.data);
346
346
  }
347
347
  if (config.directories.config) {
348
- process.env[`${prefix}CONFIG_DIR`] = _chunkDI46ZESQjs.correctPaths.call(void 0, config.directories.config);
348
+ process.env[`${prefix}CONFIG_DIR`] = _chunkVNTBD7JRjs.correctPaths.call(void 0, config.directories.config);
349
349
  }
350
350
  if (config.directories.temp) {
351
- process.env[`${prefix}TEMP_DIR`] = _chunkDI46ZESQjs.correctPaths.call(void 0, config.directories.temp);
351
+ process.env[`${prefix}TEMP_DIR`] = _chunkVNTBD7JRjs.correctPaths.call(void 0, config.directories.temp);
352
352
  }
353
353
  if (config.directories.log) {
354
- process.env[`${prefix}LOG_DIR`] = _chunkDI46ZESQjs.correctPaths.call(void 0, config.directories.log);
354
+ process.env[`${prefix}LOG_DIR`] = _chunkVNTBD7JRjs.correctPaths.call(void 0, config.directories.log);
355
355
  }
356
356
  if (config.directories.build) {
357
- process.env[`${prefix}BUILD_DIR`] = _chunkDI46ZESQjs.correctPaths.call(void 0, config.directories.build);
357
+ process.env[`${prefix}BUILD_DIR`] = _chunkVNTBD7JRjs.correctPaths.call(void 0, config.directories.build);
358
358
  }
359
359
  }
360
360
  if (config.skipCache !== void 0) {
@@ -408,8 +408,8 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
408
408
  if (config.logLevel) {
409
409
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
410
410
  process.env.LOG_LEVEL = String(config.logLevel);
411
- process.env.NX_VERBOSE_LOGGING = String(_chunkDI46ZESQjs.getLogLevel.call(void 0, config.logLevel) >= _chunkDI46ZESQjs.LogLevel.DEBUG ? true : false);
412
- process.env.RUST_BACKTRACE = _chunkDI46ZESQjs.getLogLevel.call(void 0, config.logLevel) >= _chunkDI46ZESQjs.LogLevel.DEBUG ? "full" : "none";
411
+ process.env.NX_VERBOSE_LOGGING = String(_chunkVNTBD7JRjs.getLogLevel.call(void 0, config.logLevel) >= _chunkVNTBD7JRjs.LogLevel.DEBUG ? true : false);
412
+ process.env.RUST_BACKTRACE = _chunkVNTBD7JRjs.getLogLevel.call(void 0, config.logLevel) >= _chunkVNTBD7JRjs.LogLevel.DEBUG ? "full" : "none";
413
413
  }
414
414
  process.env[`${prefix}CONFIG`] = JSON.stringify(config);
415
415
  for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
@@ -519,23 +519,23 @@ var _static_cache = void 0;
519
519
  var loadStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot) => {
520
520
  let config = {};
521
521
  if (_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) && _optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) && _static_cache.timestamp >= Date.now() + 3e4) {
522
- _chunkDI46ZESQjs.writeTrace.call(void 0, `Configuration cache hit - ${_static_cache.timestamp}`, _static_cache.data);
522
+ _chunkVNTBD7JRjs.writeTrace.call(void 0, `Configuration cache hit - ${_static_cache.timestamp}`, _static_cache.data);
523
523
  return _static_cache.data;
524
524
  }
525
525
  let _workspaceRoot = workspaceRoot;
526
526
  if (!_workspaceRoot) {
527
- _workspaceRoot = _chunkDI46ZESQjs.findWorkspaceRoot.call(void 0, );
527
+ _workspaceRoot = _chunkVNTBD7JRjs.findWorkspaceRoot.call(void 0, );
528
528
  }
529
529
  const configFile = await getConfigFile(_workspaceRoot);
530
530
  if (!configFile) {
531
- _chunkDI46ZESQjs.writeWarning.call(void 0, "No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
531
+ _chunkVNTBD7JRjs.writeWarning.call(void 0, "No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
532
532
  logLevel: "all"
533
533
  });
534
534
  }
535
- config = _defu2.default.call(void 0, getConfigEnv(), configFile, _chunkDI46ZESQjs.getDefaultConfig.call(void 0, _workspaceRoot));
535
+ config = _defu2.default.call(void 0, getConfigEnv(), configFile, _chunkVNTBD7JRjs.getDefaultConfig.call(void 0, _workspaceRoot));
536
536
  setConfigEnv(config);
537
- _chunkDI46ZESQjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
538
- ${_chunkDI46ZESQjs.formatLogMessage.call(void 0, config)}`, config);
537
+ _chunkVNTBD7JRjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
538
+ ${_chunkVNTBD7JRjs.formatLogMessage.call(void 0, config)}`, config);
539
539
  return config;
540
540
  }, "loadStormConfig");
541
541
 
@@ -546,7 +546,7 @@ var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (w
546
546
  const config = await loadStormConfig();
547
547
  rootDir = config.workspaceRoot;
548
548
  }
549
- const nxJsonPath = _chunkDI46ZESQjs.joinPaths.call(void 0, rootDir, "nx.json");
549
+ const nxJsonPath = _chunkVNTBD7JRjs.joinPaths.call(void 0, rootDir, "nx.json");
550
550
  if (!await _node.hfs.isFile(nxJsonPath)) {
551
551
  throw new Error("Cannot find project.json configuration");
552
552
  }
@@ -594,7 +594,7 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
594
594
  }
595
595
  const buildTarget = _optionalChain([projectsConfigurations, 'access', _39 => _39.projects, 'access', _40 => _40[projectName], 'optionalAccess', _41 => _41.targets, 'optionalAccess', _42 => _42.build]);
596
596
  if (!buildTarget) {
597
- throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkDI46ZESQjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
597
+ throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkVNTBD7JRjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
598
598
  }
599
599
  const result = await _js.copyAssets.call(void 0, {
600
600
  assets,
@@ -609,18 +609,18 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
609
609
  projectsConfigurations,
610
610
  nxJsonConfiguration: nxJson,
611
611
  cwd: config.workspaceRoot,
612
- isVerbose: _chunkDI46ZESQjs.isVerbose.call(void 0, config.logLevel)
612
+ isVerbose: _chunkVNTBD7JRjs.isVerbose.call(void 0, config.logLevel)
613
613
  });
614
614
  if (!result.success) {
615
615
  throw new Error("The Build process failed trying to copy assets");
616
616
  }
617
617
  if (includeSrc === true) {
618
- _chunkDI46ZESQjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkDI46ZESQjs.joinPaths.call(void 0, outputPath, "src")}`, config);
618
+ _chunkVNTBD7JRjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkVNTBD7JRjs.joinPaths.call(void 0, outputPath, "src")}`, config);
619
619
  const files = await _glob.glob.call(void 0, [
620
- _chunkDI46ZESQjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
621
- _chunkDI46ZESQjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
622
- _chunkDI46ZESQjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
623
- _chunkDI46ZESQjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
620
+ _chunkVNTBD7JRjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
621
+ _chunkVNTBD7JRjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
622
+ _chunkVNTBD7JRjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
623
+ _chunkVNTBD7JRjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
624
624
  ]);
625
625
  await Promise.allSettled(files.map(async (file) => _node.hfs.write(file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
626
626
 
@@ -643,7 +643,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
643
643
  if (!_optionalChain([projectConfigurations, 'optionalAccess', _43 => _43.projects, 'optionalAccess', _44 => _44[projectName]])) {
644
644
  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.");
645
645
  }
646
- const projectJsonPath = _chunkDI46ZESQjs.joinPaths.call(void 0, workspaceRoot, projectRoot, "project.json");
646
+ const projectJsonPath = _chunkVNTBD7JRjs.joinPaths.call(void 0, workspaceRoot, projectRoot, "project.json");
647
647
  if (!await _node.hfs.isFile(projectJsonPath)) {
648
648
  throw new Error("Cannot find project.json configuration");
649
649
  }
@@ -655,7 +655,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
655
655
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
656
656
  const projectNode = project.node;
657
657
  if (projectNode.data.root) {
658
- const projectPackageJsonPath = _chunkDI46ZESQjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
658
+ const projectPackageJsonPath = _chunkVNTBD7JRjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
659
659
  if (await _node.hfs.isFile(projectPackageJsonPath)) {
660
660
  const projectPackageJson = await _node.hfs.json(projectPackageJsonPath);
661
661
  if (projectPackageJson.private !== false) {
@@ -665,7 +665,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
665
665
  }
666
666
  }
667
667
  if (localPackages.length > 0) {
668
- _chunkDI46ZESQjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
668
+ _chunkVNTBD7JRjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
669
669
  packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
670
670
  if (!ret[localPackage.name]) {
671
671
  ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
@@ -687,13 +687,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
687
687
  return ret;
688
688
  }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
689
689
  } else {
690
- _chunkDI46ZESQjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
690
+ _chunkVNTBD7JRjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
691
691
  }
692
692
  return packageJson;
693
693
  }, "addPackageDependencies");
694
694
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
695
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkDI46ZESQjs.findWorkspaceRoot.call(void 0, );
696
- const workspacePackageJson = await _node.hfs.json(_chunkDI46ZESQjs.joinPaths.call(void 0, workspaceRoot, "package.json"));
695
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkVNTBD7JRjs.findWorkspaceRoot.call(void 0, );
696
+ const workspacePackageJson = await _node.hfs.json(_chunkVNTBD7JRjs.joinPaths.call(void 0, workspaceRoot, "package.json"));
697
697
  packageJson.type ??= "module";
698
698
  packageJson.sideEffects ??= false;
699
699
  if (includeSrc === true) {
@@ -701,7 +701,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
701
701
  if (distSrc.startsWith("/")) {
702
702
  distSrc = distSrc.substring(1);
703
703
  }
704
- packageJson.source ??= `${_chunkDI46ZESQjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
704
+ packageJson.source ??= `${_chunkVNTBD7JRjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
705
705
  }
706
706
  packageJson.files ??= [
707
707
  "dist/**/*"
@@ -732,7 +732,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
732
732
  ];
733
733
  }
734
734
  packageJson.repository ??= workspacePackageJson.repository;
735
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkDI46ZESQjs.joinPaths.call(void 0, "packages", projectName);
735
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkVNTBD7JRjs.joinPaths.call(void 0, "packages", projectName);
736
736
  return packageJson;
737
737
  }, "addWorkspacePackageJsonFields");
738
738
  var addPackageJsonExport = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
@@ -800,16 +800,16 @@ async function resolveOptions(options) {
800
800
  if (!projectRoot) {
801
801
  throw new Error("Cannot find project root");
802
802
  }
803
- const outputPath = options.outputPath || _chunkDI46ZESQjs.joinPaths.call(void 0, "dist", projectRoot);
803
+ const outputPath = options.outputPath || _chunkVNTBD7JRjs.joinPaths.call(void 0, "dist", projectRoot);
804
804
  const workspaceRoot = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
805
805
  if (!workspaceRoot) {
806
806
  throw new Error("Cannot find workspace root");
807
807
  }
808
808
  const config = await loadStormConfig(workspaceRoot.dir);
809
- _chunkDI46ZESQjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
810
- const stopwatch = _chunkDI46ZESQjs.getStopwatch.call(void 0, "Build options resolution");
809
+ _chunkVNTBD7JRjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
810
+ const stopwatch = _chunkVNTBD7JRjs.getStopwatch.call(void 0, "Build options resolution");
811
811
  if (options.configPath) {
812
- const configFile = await _chunkSUXC6PC6js.loadConfig.call(void 0, options.configPath);
812
+ const configFile = await _chunkNITHGLFOjs.loadConfig.call(void 0, options.configPath);
813
813
  if (configFile) {
814
814
  options = _defu2.default.call(void 0, options, configFile);
815
815
  }
@@ -817,27 +817,27 @@ async function resolveOptions(options) {
817
817
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
818
818
  exitOnError: true
819
819
  });
820
- const projectJsonPath = _chunkDI46ZESQjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot, "project.json");
820
+ const projectJsonPath = _chunkVNTBD7JRjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot, "project.json");
821
821
  if (!await _node.hfs.isFile(projectJsonPath)) {
822
822
  throw new Error("Cannot find project.json configuration");
823
823
  }
824
824
  const projectJson = await _node.hfs.json(projectJsonPath);
825
825
  const projectName = projectJson.name;
826
- const packageJsonPath = _chunkDI46ZESQjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "package.json");
826
+ const packageJsonPath = _chunkVNTBD7JRjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "package.json");
827
827
  if (!await _node.hfs.isFile(packageJsonPath)) {
828
828
  throw new Error("Cannot find package.json configuration");
829
829
  }
830
830
  const packageJson = await _node.hfs.json(packageJsonPath);
831
831
  let tsconfig = options.tsconfig;
832
832
  if (!tsconfig) {
833
- tsconfig = _chunkDI46ZESQjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json");
833
+ tsconfig = _chunkVNTBD7JRjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json");
834
834
  }
835
835
  if (!await _node.hfs.isFile(tsconfig)) {
836
836
  throw new Error("Cannot find tsconfig.json configuration");
837
837
  }
838
838
  let sourceRoot = projectJson.sourceRoot;
839
839
  if (!sourceRoot) {
840
- sourceRoot = _chunkDI46ZESQjs.joinPaths.call(void 0, projectRoot, "src");
840
+ sourceRoot = _chunkVNTBD7JRjs.joinPaths.call(void 0, projectRoot, "src");
841
841
  }
842
842
  if (!await _node.hfs.isDirectory(sourceRoot)) {
843
843
  throw new Error("Cannot find sourceRoot directory");
@@ -865,14 +865,14 @@ async function resolveOptions(options) {
865
865
  {
866
866
  builder: "mkdist",
867
867
  input: `.${sourceRoot.replace(projectRoot, "")}`,
868
- outDir: _chunkDI46ZESQjs.joinPaths.call(void 0, _path.relative.call(void 0, _chunkDI46ZESQjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot), config.workspaceRoot).replaceAll("\\", "/"), outputPath, "dist").replaceAll("\\", "/"),
868
+ outDir: _chunkVNTBD7JRjs.joinPaths.call(void 0, _path.relative.call(void 0, _chunkVNTBD7JRjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot), config.workspaceRoot).replaceAll("\\", "/"), outputPath, "dist").replaceAll("\\", "/"),
869
869
  declaration: options.emitTypes !== false,
870
870
  format: "esm"
871
871
  },
872
872
  {
873
873
  builder: "mkdist",
874
874
  input: `.${sourceRoot.replace(projectRoot, "")}`,
875
- outDir: _chunkDI46ZESQjs.joinPaths.call(void 0, _path.relative.call(void 0, _chunkDI46ZESQjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot), config.workspaceRoot).replaceAll("\\", "/"), outputPath, "dist").replaceAll("\\", "/"),
875
+ outDir: _chunkVNTBD7JRjs.joinPaths.call(void 0, _path.relative.call(void 0, _chunkVNTBD7JRjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot), config.workspaceRoot).replaceAll("\\", "/"), outputPath, "dist").replaceAll("\\", "/"),
876
876
  declaration: options.emitTypes !== false,
877
877
  format: "cjs",
878
878
  ext: "cjs"
@@ -930,7 +930,7 @@ async function resolveOptions(options) {
930
930
  splitting: options.splitting !== false,
931
931
  treeShaking: options.treeShaking !== false,
932
932
  color: true,
933
- logLevel: config.logLevel === _chunkDI46ZESQjs.LogLevelLabel.FATAL ? _chunkDI46ZESQjs.LogLevelLabel.ERROR : _chunkDI46ZESQjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
933
+ logLevel: config.logLevel === _chunkVNTBD7JRjs.LogLevelLabel.FATAL ? _chunkVNTBD7JRjs.LogLevelLabel.ERROR : _chunkVNTBD7JRjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
934
934
  }
935
935
  }
936
936
  };
@@ -947,7 +947,7 @@ async function resolveOptions(options) {
947
947
  if (options.rollup) {
948
948
  let rollup = {};
949
949
  if (typeof options.rollup === "string") {
950
- const rollupFile = await _chunkSUXC6PC6js.loadConfig.call(void 0, options.rollup);
950
+ const rollupFile = await _chunkNITHGLFOjs.loadConfig.call(void 0, options.rollup);
951
951
  if (rollupFile) {
952
952
  rollup = rollupFile;
953
953
  }
@@ -958,7 +958,7 @@ async function resolveOptions(options) {
958
958
  }
959
959
  resolvedOptions.hooks = {
960
960
  "rollup:options": /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (ctx, opts) => {
961
- opts.plugins = await _asyncNullishCoalesce(options.plugins, async () => ( await _chunkHT57DNRRjs.getDefaultBuildPlugins.call(void 0, options, resolvedOptions)));
961
+ opts.plugins = await _asyncNullishCoalesce(options.plugins, async () => ( await _chunkEWSFZCEGjs.getDefaultBuildPlugins.call(void 0, options, resolvedOptions)));
962
962
  }, "rollup:options")
963
963
  };
964
964
  stopwatch();
@@ -966,29 +966,29 @@ async function resolveOptions(options) {
966
966
  }
967
967
  _chunk3GQAWCBQjs.__name.call(void 0, resolveOptions, "resolveOptions");
968
968
  async function generatePackageJson(options) {
969
- if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkDI46ZESQjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
970
- _chunkDI46ZESQjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
971
- const stopwatch = _chunkDI46ZESQjs.getStopwatch.call(void 0, "Write package.json file");
972
- const packageJsonPath = _chunkDI46ZESQjs.joinPaths.call(void 0, options.projectRoot, "project.json");
969
+ if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkVNTBD7JRjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
970
+ _chunkVNTBD7JRjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
971
+ const stopwatch = _chunkVNTBD7JRjs.getStopwatch.call(void 0, "Write package.json file");
972
+ const packageJsonPath = _chunkVNTBD7JRjs.joinPaths.call(void 0, options.projectRoot, "project.json");
973
973
  if (!await _node.hfs.isFile(packageJsonPath)) {
974
974
  throw new Error("Cannot find package.json configuration");
975
975
  }
976
- let packageJson = await _node.hfs.json(_chunkDI46ZESQjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
976
+ let packageJson = await _node.hfs.json(_chunkVNTBD7JRjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
977
977
  if (!packageJson) {
978
978
  throw new Error("Cannot find package.json configuration file");
979
979
  }
980
980
  packageJson = await addPackageDependencies(options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
981
981
  packageJson = await addWorkspacePackageJsonFields(options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
982
982
  packageJson = await addPackageJsonExports(options.sourceRoot, packageJson);
983
- await _devkit.writeJsonFile.call(void 0, _chunkDI46ZESQjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
983
+ await _devkit.writeJsonFile.call(void 0, _chunkVNTBD7JRjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
984
984
  stopwatch();
985
985
  }
986
986
  return options;
987
987
  }
988
988
  _chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
989
989
  async function executeUnbuild(options) {
990
- _chunkDI46ZESQjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
991
- const stopwatch = _chunkDI46ZESQjs.getStopwatch.call(void 0, `${options.name} (${options.projectRoot}) build`);
990
+ _chunkVNTBD7JRjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
991
+ const stopwatch = _chunkVNTBD7JRjs.getStopwatch.call(void 0, `${options.name} (${options.projectRoot}) build`);
992
992
  try {
993
993
  await _unbuild.build.call(void 0, options.projectRoot, false, {
994
994
  ...options,
@@ -1001,8 +1001,8 @@ async function executeUnbuild(options) {
1001
1001
  }
1002
1002
  _chunk3GQAWCBQjs.__name.call(void 0, executeUnbuild, "executeUnbuild");
1003
1003
  async function copyBuildAssets(options) {
1004
- _chunkDI46ZESQjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`, options.config);
1005
- const stopwatch = _chunkDI46ZESQjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1004
+ _chunkVNTBD7JRjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`, options.config);
1005
+ const stopwatch = _chunkVNTBD7JRjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1006
1006
  await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outDir, options.projectRoot, options.projectName, options.sourceRoot, options.generatePackageJson, options.includeSrc);
1007
1007
  stopwatch();
1008
1008
  return options;
@@ -1010,23 +1010,23 @@ async function copyBuildAssets(options) {
1010
1010
  _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1011
1011
  async function cleanOutputPath(options) {
1012
1012
  if (options.clean !== false && options.outDir) {
1013
- await _chunkJIUEGXNRjs.clean.call(void 0, options.name, options.outDir, options.config);
1013
+ await _chunkIUOPY673js.clean.call(void 0, options.name, options.outDir, options.config);
1014
1014
  }
1015
1015
  return options;
1016
1016
  }
1017
1017
  _chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
1018
1018
  async function build(options) {
1019
- _chunkDI46ZESQjs.writeDebug.call(void 0, ` \u26A1 Executing Storm Unbuild pipeline`);
1020
- const stopwatch = _chunkDI46ZESQjs.getStopwatch.call(void 0, "Unbuild pipeline");
1019
+ _chunkVNTBD7JRjs.writeDebug.call(void 0, ` \u26A1 Executing Storm Unbuild pipeline`);
1020
+ const stopwatch = _chunkVNTBD7JRjs.getStopwatch.call(void 0, "Unbuild pipeline");
1021
1021
  try {
1022
1022
  const resolvedOptions = await resolveOptions(options);
1023
1023
  await cleanOutputPath(resolvedOptions);
1024
1024
  await generatePackageJson(resolvedOptions);
1025
1025
  await executeUnbuild(resolvedOptions);
1026
1026
  await copyBuildAssets(resolvedOptions);
1027
- _chunkDI46ZESQjs.writeSuccess.call(void 0, ` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, resolvedOptions.config);
1027
+ _chunkVNTBD7JRjs.writeSuccess.call(void 0, ` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, resolvedOptions.config);
1028
1028
  } catch (error) {
1029
- _chunkDI46ZESQjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1029
+ _chunkVNTBD7JRjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1030
1030
  throw error;
1031
1031
  } finally {
1032
1032
  stopwatch();
@@ -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,7 @@ 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
+ env: "development" | "staging" | "production";
797
798
  organization: string;
798
799
  license: string;
799
800
  homepage: string;
@@ -805,22 +806,21 @@ declare const StormConfigSchema: z.ZodObject<{
805
806
  name: string;
806
807
  email: string;
807
808
  };
808
- env: "development" | "staging" | "production";
809
809
  workspaceRoot: string;
810
810
  externalPackagePatterns: string[];
811
811
  skipCache: boolean;
812
812
  directories: {
813
813
  build: string;
814
+ config?: string | undefined;
814
815
  cache?: string | undefined;
815
816
  data?: string | undefined;
816
- config?: string | undefined;
817
817
  temp?: string | undefined;
818
818
  log?: string | undefined;
819
819
  };
820
820
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
821
821
  timezone: string;
822
822
  locale: string;
823
- logLevel: "silent" | "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "all";
823
+ logLevel: "debug" | "silent" | "fatal" | "error" | "warn" | "info" | "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 | 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,10 @@ declare const StormConfigSchema: z.ZodObject<{
1143
1143
  background?: string | undefined;
1144
1144
  };
1145
1145
  }>;
1146
+ name?: string | undefined;
1147
+ env?: "development" | "staging" | "production" | undefined;
1146
1148
  $schema?: string | null | undefined;
1147
1149
  extends?: string | undefined;
1148
- name?: string | undefined;
1149
1150
  namespace?: string | undefined;
1150
1151
  organization?: string | undefined;
1151
1152
  repository?: string | undefined;
@@ -1156,14 +1157,13 @@ declare const StormConfigSchema: z.ZodObject<{
1156
1157
  branch?: string | undefined;
1157
1158
  preid?: string | undefined;
1158
1159
  owner?: string | undefined;
1159
- env?: "development" | "staging" | "production" | undefined;
1160
1160
  workspaceRoot?: string | undefined;
1161
1161
  externalPackagePatterns?: string[] | undefined;
1162
1162
  skipCache?: boolean | undefined;
1163
1163
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
1164
1164
  timezone?: string | undefined;
1165
1165
  locale?: string | undefined;
1166
- logLevel?: "silent" | "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "all" | undefined;
1166
+ logLevel?: "debug" | "silent" | "fatal" | "error" | "warn" | "info" | "trace" | "all" | undefined;
1167
1167
  registry?: {
1168
1168
  npm?: string | undefined;
1169
1169
  github?: string | undefined;