@storm-software/unbuild 0.49.19 → 0.49.21

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.
@@ -1,16 +1,16 @@
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 _chunkRDXDA3GHcjs = require('./chunk-RDXDA3GH.cjs');
3
+ var _chunkDAT6NHMFcjs = require('./chunk-DAT6NHMF.cjs');
4
4
 
5
5
 
6
- var _chunkZFT5WRRGcjs = require('./chunk-ZFT5WRRG.cjs');
6
+ var _chunk67LS6ZEKcjs = require('./chunk-67LS6ZEK.cjs');
7
7
 
8
8
 
9
- var _chunk6XVL7IQTcjs = require('./chunk-6XVL7IQT.cjs');
9
+ var _chunkF53U4QNBcjs = require('./chunk-F53U4QNB.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunkSE3LAWDVcjs = require('./chunk-SE3LAWDV.cjs');
13
+ var _chunkFPQJTGP3cjs = require('./chunk-FPQJTGP3.cjs');
14
14
 
15
15
 
16
16
 
@@ -34,7 +34,7 @@ var _chunkSE3LAWDVcjs = require('./chunk-SE3LAWDV.cjs');
34
34
 
35
35
 
36
36
 
37
- var _chunkOUDGDVMGcjs = require('./chunk-OUDGDVMG.cjs');
37
+ var _chunkVHYQF3I6cjs = require('./chunk-VHYQF3I6.cjs');
38
38
 
39
39
  // src/build.ts
40
40
 
@@ -88,9 +88,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
88
88
  output: "src/"
89
89
  });
90
90
  }
91
- _chunkOUDGDVMGcjs.writeTrace.call(void 0,
91
+ _chunkVHYQF3I6cjs.writeTrace.call(void 0,
92
92
  `\u{1F4DD} Copying the following assets to the output directory:
93
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkOUDGDVMGcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
93
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkVHYQF3I6cjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
94
94
  config
95
95
  );
96
96
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
@@ -101,18 +101,18 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
101
101
  });
102
102
  await assetHandler.processAllAssetsOnce();
103
103
  if (includeSrc === true) {
104
- _chunkOUDGDVMGcjs.writeDebug.call(void 0,
105
- `\u{1F4DD} Adding banner and writing source files: ${_chunkOUDGDVMGcjs.joinPaths.call(void 0,
104
+ _chunkVHYQF3I6cjs.writeDebug.call(void 0,
105
+ `\u{1F4DD} Adding banner and writing source files: ${_chunkVHYQF3I6cjs.joinPaths.call(void 0,
106
106
  outputPath,
107
107
  "src"
108
108
  )}`,
109
109
  config
110
110
  );
111
111
  const files = await _glob.glob.call(void 0, [
112
- _chunkOUDGDVMGcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
113
- _chunkOUDGDVMGcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
114
- _chunkOUDGDVMGcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
115
- _chunkOUDGDVMGcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
112
+ _chunkVHYQF3I6cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
113
+ _chunkVHYQF3I6cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
114
+ _chunkVHYQF3I6cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
115
+ _chunkVHYQF3I6cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
116
116
  ]);
117
117
  await Promise.allSettled(
118
118
  files.map(
@@ -167,7 +167,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
167
167
  )) {
168
168
  const projectNode = project.node;
169
169
  if (projectNode.data.root) {
170
- const projectPackageJsonPath = _chunkOUDGDVMGcjs.joinPaths.call(void 0,
170
+ const projectPackageJsonPath = _chunkVHYQF3I6cjs.joinPaths.call(void 0,
171
171
  workspaceRoot,
172
172
  projectNode.data.root,
173
173
  "package.json"
@@ -185,11 +185,11 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
185
185
  }
186
186
  }
187
187
  if (localPackages.length > 0) {
188
- _chunkOUDGDVMGcjs.writeTrace.call(void 0,
188
+ _chunkVHYQF3I6cjs.writeTrace.call(void 0,
189
189
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
190
190
  );
191
191
  const projectJsonFile = await _promises.readFile.call(void 0,
192
- _chunkOUDGDVMGcjs.joinPaths.call(void 0, projectRoot, "project.json"),
192
+ _chunkVHYQF3I6cjs.joinPaths.call(void 0, projectRoot, "project.json"),
193
193
  "utf8"
194
194
  );
195
195
  const projectJson = JSON.parse(projectJsonFile);
@@ -202,7 +202,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
202
202
  }
203
203
  const implicitDependencies = _optionalChain([projectConfigurations, 'access', _9 => _9.projects, 'optionalAccess', _10 => _10[projectName2], 'access', _11 => _11.implicitDependencies, 'optionalAccess', _12 => _12.reduce, 'call', _13 => _13((ret, dep) => {
204
204
  if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
205
- const depPackageJsonPath = _chunkOUDGDVMGcjs.joinPaths.call(void 0,
205
+ const depPackageJsonPath = _chunkVHYQF3I6cjs.joinPaths.call(void 0,
206
206
  workspaceRoot,
207
207
  projectConfigurations.projects[dep].root,
208
208
  "package.json"
@@ -233,14 +233,14 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
233
233
  return ret;
234
234
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
235
235
  } else {
236
- _chunkOUDGDVMGcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
236
+ _chunkVHYQF3I6cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
237
237
  }
238
238
  return packageJson;
239
239
  };
240
240
  var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
241
- const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkOUDGDVMGcjs.findWorkspaceRoot.call(void 0, );
241
+ const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkVHYQF3I6cjs.findWorkspaceRoot.call(void 0, );
242
242
  const workspacePackageJsonContent = await _promises.readFile.call(void 0,
243
- _chunkOUDGDVMGcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
243
+ _chunkVHYQF3I6cjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
244
244
  "utf8"
245
245
  );
246
246
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
@@ -251,7 +251,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
251
251
  if (distSrc.startsWith("/")) {
252
252
  distSrc = distSrc.substring(1);
253
253
  }
254
- packageJson.source ??= `${_chunkOUDGDVMGcjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
254
+ packageJson.source ??= `${_chunkVHYQF3I6cjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
255
255
  }
256
256
  packageJson.files ??= ["dist/**/*"];
257
257
  if (includeSrc === true && !packageJson.files.includes("src")) {
@@ -276,7 +276,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
276
276
  packageJson.contributors = [packageJson.author];
277
277
  }
278
278
  packageJson.repository ??= workspacePackageJson.repository;
279
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkOUDGDVMGcjs.joinPaths.call(void 0, "packages", projectName);
279
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkVHYQF3I6cjs.joinPaths.call(void 0, "packages", projectName);
280
280
  return packageJson;
281
281
  };
282
282
 
@@ -284,7 +284,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
284
284
  var _c12 = require('c12');
285
285
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
286
286
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
287
- const workspacePath = filePath || _chunkOUDGDVMGcjs.findWorkspaceRoot.call(void 0, filePath);
287
+ const workspacePath = filePath || _chunkVHYQF3I6cjs.findWorkspaceRoot.call(void 0, filePath);
288
288
  const configs = await Promise.all([
289
289
  _c12.loadConfig.call(void 0, {
290
290
  cwd: workspacePath,
@@ -293,7 +293,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
293
293
  envName: _optionalChain([fileName, 'optionalAccess', _24 => _24.toUpperCase, 'call', _25 => _25()]),
294
294
  jitiOptions: {
295
295
  debug: false,
296
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkOUDGDVMGcjs.joinPaths.call(void 0,
296
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkVHYQF3I6cjs.joinPaths.call(void 0,
297
297
  process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
298
298
  "jiti"
299
299
  )
@@ -307,7 +307,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
307
307
  envName: _optionalChain([fileName, 'optionalAccess', _26 => _26.toUpperCase, 'call', _27 => _27()]),
308
308
  jitiOptions: {
309
309
  debug: false,
310
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkOUDGDVMGcjs.joinPaths.call(void 0,
310
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkVHYQF3I6cjs.joinPaths.call(void 0,
311
311
  process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
312
312
  "jiti"
313
313
  )
@@ -319,12 +319,12 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
319
319
  return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
320
320
  };
321
321
  var getConfigFile = async (filePath, additionalFileNames = []) => {
322
- const workspacePath = filePath ? filePath : _chunkOUDGDVMGcjs.findWorkspaceRoot.call(void 0, filePath);
322
+ const workspacePath = filePath ? filePath : _chunkVHYQF3I6cjs.findWorkspaceRoot.call(void 0, filePath);
323
323
  const result = await getConfigFileByName("storm-workspace", workspacePath);
324
324
  let config = result.config;
325
325
  const configFile = result.configFile;
326
326
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
327
- _chunkOUDGDVMGcjs.writeTrace.call(void 0,
327
+ _chunkVHYQF3I6cjs.writeTrace.call(void 0,
328
328
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
329
329
  {
330
330
  logLevel: "all"
@@ -340,7 +340,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
340
340
  for (const result2 of results) {
341
341
  if (_optionalChain([result2, 'optionalAccess', _28 => _28.config]) && _optionalChain([result2, 'optionalAccess', _29 => _29.configFile]) && Object.keys(result2.config).length > 0) {
342
342
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
343
- _chunkOUDGDVMGcjs.writeTrace.call(void 0,
343
+ _chunkVHYQF3I6cjs.writeTrace.call(void 0,
344
344
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
345
345
  {
346
346
  logLevel: "all"
@@ -402,7 +402,13 @@ var getConfigEnv = () => {
402
402
  medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
403
403
  github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
404
404
  },
405
- organization: process.env[`${prefix}ORGANIZATION`] || void 0,
405
+ organization: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] ? process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] ? {
406
+ name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
407
+ description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
408
+ url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
409
+ logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
410
+ icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
411
+ } : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
406
412
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
407
413
  license: process.env[`${prefix}LICENSE`] || void 0,
408
414
  homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
@@ -413,15 +419,15 @@ var getConfigEnv = () => {
413
419
  support: process.env[`${prefix}SUPPORT`] || void 0,
414
420
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
415
421
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
416
- configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkOUDGDVMGcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
417
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkOUDGDVMGcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
422
+ configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkVHYQF3I6cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
423
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkVHYQF3I6cjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
418
424
  directories: {
419
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkOUDGDVMGcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkOUDGDVMGcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
420
- data: process.env[`${prefix}DATA_DIR`] ? _chunkOUDGDVMGcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkOUDGDVMGcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
421
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkOUDGDVMGcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkOUDGDVMGcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
422
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkOUDGDVMGcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkOUDGDVMGcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
423
- log: process.env[`${prefix}LOG_DIR`] ? _chunkOUDGDVMGcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkOUDGDVMGcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
424
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkOUDGDVMGcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkOUDGDVMGcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
425
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunkVHYQF3I6cjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkVHYQF3I6cjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
426
+ data: process.env[`${prefix}DATA_DIR`] ? _chunkVHYQF3I6cjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkVHYQF3I6cjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
427
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunkVHYQF3I6cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkVHYQF3I6cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
428
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunkVHYQF3I6cjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkVHYQF3I6cjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
429
+ log: process.env[`${prefix}LOG_DIR`] ? _chunkVHYQF3I6cjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkVHYQF3I6cjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
430
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunkVHYQF3I6cjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkVHYQF3I6cjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
425
431
  },
426
432
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
427
433
  mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -446,13 +452,13 @@ var getConfigEnv = () => {
446
452
  },
447
453
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
448
454
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
449
- ) ? _chunkOUDGDVMGcjs.getLogLevelLabel.call(void 0,
455
+ ) ? _chunkVHYQF3I6cjs.getLogLevelLabel.call(void 0,
450
456
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
451
457
  ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
452
458
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
453
459
  };
454
460
  const themeNames = Object.keys(process.env).filter(
455
- (envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkOUDGDVMGcjs.COLOR_KEYS.every(
461
+ (envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkVHYQF3I6cjs.COLOR_KEYS.every(
456
462
  (colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
457
463
  )
458
464
  );
@@ -463,16 +469,16 @@ var getConfigEnv = () => {
463
469
  },
464
470
  {}
465
471
  ) : getThemeColorConfigEnv(prefix);
466
- if (config.docs === _chunkOUDGDVMGcjs.STORM_DEFAULT_DOCS) {
467
- if (config.homepage === _chunkOUDGDVMGcjs.STORM_DEFAULT_HOMEPAGE) {
468
- config.docs = `${_chunkOUDGDVMGcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
472
+ if (config.docs === _chunkVHYQF3I6cjs.STORM_DEFAULT_DOCS) {
473
+ if (config.homepage === _chunkVHYQF3I6cjs.STORM_DEFAULT_HOMEPAGE) {
474
+ config.docs = `${_chunkVHYQF3I6cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
469
475
  } else {
470
476
  config.docs = `${config.homepage}/docs`;
471
477
  }
472
478
  }
473
- if (config.licensing === _chunkOUDGDVMGcjs.STORM_DEFAULT_LICENSING) {
474
- if (config.homepage === _chunkOUDGDVMGcjs.STORM_DEFAULT_HOMEPAGE) {
475
- config.licensing = `${_chunkOUDGDVMGcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
479
+ if (config.licensing === _chunkVHYQF3I6cjs.STORM_DEFAULT_LICENSING) {
480
+ if (config.homepage === _chunkVHYQF3I6cjs.STORM_DEFAULT_HOMEPAGE) {
481
+ config.licensing = `${_chunkVHYQF3I6cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
476
482
  } else {
477
483
  config.licensing = `${config.homepage}/docs`;
478
484
  }
@@ -609,7 +615,33 @@ var setConfigEnv = (config) => {
609
615
  }
610
616
  }
611
617
  if (config.organization) {
612
- process.env[`${prefix}ORGANIZATION`] = config.organization;
618
+ if (typeof config.organization === "string") {
619
+ process.env[`${prefix}ORG`] = config.organization;
620
+ process.env[`${prefix}ORG_NAME`] = config.organization;
621
+ process.env[`${prefix}ORGANIZATION`] = config.organization;
622
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
623
+ } else {
624
+ process.env[`${prefix}ORG`] = config.organization.name;
625
+ process.env[`${prefix}ORG_NAME`] = config.organization.name;
626
+ process.env[`${prefix}ORGANIZATION`] = config.organization.name;
627
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
628
+ if (config.organization.url) {
629
+ process.env[`${prefix}ORG_URL`] = config.organization.url;
630
+ process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
631
+ }
632
+ if (config.organization.description) {
633
+ process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
634
+ process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
635
+ }
636
+ if (config.organization.logo) {
637
+ process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
638
+ process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
639
+ }
640
+ if (config.organization.icon) {
641
+ process.env[`${prefix}ORG_ICON`] = config.organization.icon;
642
+ process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
643
+ }
644
+ }
613
645
  }
614
646
  if (config.packageManager) {
615
647
  process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
@@ -647,40 +679,40 @@ var setConfigEnv = (config) => {
647
679
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
648
680
  }
649
681
  if (config.configFile) {
650
- process.env[`${prefix}CONFIG_FILE`] = _chunkOUDGDVMGcjs.correctPaths.call(void 0, config.configFile);
682
+ process.env[`${prefix}CONFIG_FILE`] = _chunkVHYQF3I6cjs.correctPaths.call(void 0, config.configFile);
651
683
  }
652
684
  if (config.workspaceRoot) {
653
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkOUDGDVMGcjs.correctPaths.call(void 0, config.workspaceRoot);
654
- process.env.NX_WORKSPACE_ROOT = _chunkOUDGDVMGcjs.correctPaths.call(void 0, config.workspaceRoot);
655
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkOUDGDVMGcjs.correctPaths.call(void 0, config.workspaceRoot);
685
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunkVHYQF3I6cjs.correctPaths.call(void 0, config.workspaceRoot);
686
+ process.env.NX_WORKSPACE_ROOT = _chunkVHYQF3I6cjs.correctPaths.call(void 0, config.workspaceRoot);
687
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunkVHYQF3I6cjs.correctPaths.call(void 0, config.workspaceRoot);
656
688
  }
657
689
  if (config.directories) {
658
690
  if (!config.skipCache && config.directories.cache) {
659
- process.env[`${prefix}CACHE_DIR`] = _chunkOUDGDVMGcjs.correctPaths.call(void 0,
691
+ process.env[`${prefix}CACHE_DIR`] = _chunkVHYQF3I6cjs.correctPaths.call(void 0,
660
692
  config.directories.cache
661
693
  );
662
694
  process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
663
695
  }
664
696
  if (config.directories.data) {
665
- process.env[`${prefix}DATA_DIR`] = _chunkOUDGDVMGcjs.correctPaths.call(void 0, config.directories.data);
697
+ process.env[`${prefix}DATA_DIR`] = _chunkVHYQF3I6cjs.correctPaths.call(void 0, config.directories.data);
666
698
  process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
667
699
  }
668
700
  if (config.directories.config) {
669
- process.env[`${prefix}CONFIG_DIR`] = _chunkOUDGDVMGcjs.correctPaths.call(void 0,
701
+ process.env[`${prefix}CONFIG_DIR`] = _chunkVHYQF3I6cjs.correctPaths.call(void 0,
670
702
  config.directories.config
671
703
  );
672
704
  process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
673
705
  }
674
706
  if (config.directories.temp) {
675
- process.env[`${prefix}TEMP_DIR`] = _chunkOUDGDVMGcjs.correctPaths.call(void 0, config.directories.temp);
707
+ process.env[`${prefix}TEMP_DIR`] = _chunkVHYQF3I6cjs.correctPaths.call(void 0, config.directories.temp);
676
708
  process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
677
709
  }
678
710
  if (config.directories.log) {
679
- process.env[`${prefix}LOG_DIR`] = _chunkOUDGDVMGcjs.correctPaths.call(void 0, config.directories.log);
711
+ process.env[`${prefix}LOG_DIR`] = _chunkVHYQF3I6cjs.correctPaths.call(void 0, config.directories.log);
680
712
  process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
681
713
  }
682
714
  if (config.directories.build) {
683
- process.env[`${prefix}BUILD_DIR`] = _chunkOUDGDVMGcjs.correctPaths.call(void 0,
715
+ process.env[`${prefix}BUILD_DIR`] = _chunkVHYQF3I6cjs.correctPaths.call(void 0,
684
716
  config.directories.build
685
717
  );
686
718
  process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
@@ -747,9 +779,9 @@ var setConfigEnv = (config) => {
747
779
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
748
780
  process.env.LOG_LEVEL = String(config.logLevel);
749
781
  process.env.NX_VERBOSE_LOGGING = String(
750
- _chunkOUDGDVMGcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkOUDGDVMGcjs.LogLevel.DEBUG ? true : false
782
+ _chunkVHYQF3I6cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkVHYQF3I6cjs.LogLevel.DEBUG ? true : false
751
783
  );
752
- process.env.RUST_BACKTRACE = _chunkOUDGDVMGcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkOUDGDVMGcjs.LogLevel.DEBUG ? "full" : "none";
784
+ process.env.RUST_BACKTRACE = _chunkVHYQF3I6cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkVHYQF3I6cjs.LogLevel.DEBUG ? "full" : "none";
753
785
  }
754
786
  if (config.skipConfigLogging !== void 0) {
755
787
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
@@ -869,13 +901,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
869
901
  if (!_optionalChain([_static_cache, 'optionalAccess', _52 => _52.data]) || !_optionalChain([_static_cache, 'optionalAccess', _53 => _53.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
870
902
  let _workspaceRoot = workspaceRoot;
871
903
  if (!_workspaceRoot) {
872
- _workspaceRoot = _chunkOUDGDVMGcjs.findWorkspaceRoot.call(void 0, );
904
+ _workspaceRoot = _chunkVHYQF3I6cjs.findWorkspaceRoot.call(void 0, );
873
905
  }
874
906
  const configEnv = getConfigEnv();
875
907
  const configFile = await getConfigFile(_workspaceRoot);
876
908
  if (!configFile) {
877
909
  if (!skipLogs) {
878
- _chunkOUDGDVMGcjs.writeWarning.call(void 0,
910
+ _chunkVHYQF3I6cjs.writeWarning.call(void 0,
879
911
  "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
880
912
  { logLevel: "all" }
881
913
  );
@@ -884,9 +916,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
884
916
  return void 0;
885
917
  }
886
918
  }
887
- const defaultConfig = await _chunkOUDGDVMGcjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
888
- result = _chunkOUDGDVMGcjs.applyDefaultConfig.call(void 0,
889
- await _chunkOUDGDVMGcjs.stormWorkspaceConfigSchema.parseAsync(
919
+ const defaultConfig = await _chunkVHYQF3I6cjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
920
+ result = _chunkVHYQF3I6cjs.applyDefaultConfig.call(void 0,
921
+ await _chunkVHYQF3I6cjs.stormWorkspaceConfigSchema.parseAsync(
890
922
  _defu2.default.call(void 0, configEnv, configFile, defaultConfig)
891
923
  )
892
924
  );
@@ -928,9 +960,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
928
960
  );
929
961
  setConfigEnv(config);
930
962
  if (!skipLogs && !config.skipConfigLogging) {
931
- _chunkOUDGDVMGcjs.writeTrace.call(void 0,
963
+ _chunkVHYQF3I6cjs.writeTrace.call(void 0,
932
964
  `\u2699\uFE0F Using Storm Workspace configuration:
933
- ${_chunkOUDGDVMGcjs.formatLogMessage.call(void 0, config)}`,
965
+ ${_chunkVHYQF3I6cjs.formatLogMessage.call(void 0, config)}`,
934
966
  config
935
967
  );
936
968
  }
@@ -966,15 +998,15 @@ var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
966
998
 
967
999
  var _unbuild = require('unbuild');
968
1000
  async function resolveOptions(options, config) {
969
- _chunkOUDGDVMGcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
970
- const stopwatch = _chunkOUDGDVMGcjs.getStopwatch.call(void 0, "Build options resolution");
1001
+ _chunkVHYQF3I6cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1002
+ const stopwatch = _chunkVHYQF3I6cjs.getStopwatch.call(void 0, "Build options resolution");
971
1003
  if (options.configPath) {
972
- const configFile = await _chunkSE3LAWDVcjs.loadConfig.call(void 0, options.configPath);
1004
+ const configFile = await _chunkFPQJTGP3cjs.loadConfig.call(void 0, options.configPath);
973
1005
  if (configFile) {
974
1006
  options = _defu2.default.call(void 0, options, configFile);
975
1007
  }
976
1008
  }
977
- const outputPath = options.outputPath || _chunkOUDGDVMGcjs.joinPaths.call(void 0, "dist", options.projectRoot);
1009
+ const outputPath = options.outputPath || _chunkVHYQF3I6cjs.joinPaths.call(void 0, "dist", options.projectRoot);
978
1010
  let projectGraph;
979
1011
  try {
980
1012
  projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
@@ -987,7 +1019,7 @@ async function resolveOptions(options, config) {
987
1019
  "The build process failed because the project graph is not available. Please run the build command again."
988
1020
  );
989
1021
  }
990
- const projectJsonPath = _chunkOUDGDVMGcjs.joinPaths.call(void 0,
1022
+ const projectJsonPath = _chunkVHYQF3I6cjs.joinPaths.call(void 0,
991
1023
  config.workspaceRoot,
992
1024
  options.projectRoot,
993
1025
  "project.json"
@@ -998,7 +1030,7 @@ async function resolveOptions(options, config) {
998
1030
  const projectJsonContent = await _promises.readFile.call(void 0, projectJsonPath, "utf8");
999
1031
  const projectJson = JSON.parse(projectJsonContent);
1000
1032
  const projectName = projectJson.name;
1001
- const packageJsonPath = _chunkOUDGDVMGcjs.joinPaths.call(void 0,
1033
+ const packageJsonPath = _chunkVHYQF3I6cjs.joinPaths.call(void 0,
1002
1034
  config.workspaceRoot,
1003
1035
  options.projectRoot,
1004
1036
  "package.json"
@@ -1010,17 +1042,17 @@ async function resolveOptions(options, config) {
1010
1042
  const packageJson = JSON.parse(packageJsonContent);
1011
1043
  let tsconfig = options.tsconfig;
1012
1044
  if (!tsconfig) {
1013
- tsconfig = _chunkOUDGDVMGcjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json");
1045
+ tsconfig = _chunkVHYQF3I6cjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json");
1014
1046
  }
1015
1047
  if (!tsconfig.startsWith(config.workspaceRoot)) {
1016
- tsconfig = _chunkOUDGDVMGcjs.joinPaths.call(void 0, config.workspaceRoot, tsconfig);
1048
+ tsconfig = _chunkVHYQF3I6cjs.joinPaths.call(void 0, config.workspaceRoot, tsconfig);
1017
1049
  }
1018
1050
  if (!_fs.existsSync.call(void 0, tsconfig)) {
1019
1051
  throw new Error("Cannot find tsconfig.json configuration");
1020
1052
  }
1021
1053
  let sourceRoot = projectJson.sourceRoot;
1022
1054
  if (!sourceRoot) {
1023
- sourceRoot = _chunkOUDGDVMGcjs.joinPaths.call(void 0, options.projectRoot, "src");
1055
+ sourceRoot = _chunkVHYQF3I6cjs.joinPaths.call(void 0, options.projectRoot, "src");
1024
1056
  }
1025
1057
  if (!_fs.existsSync.call(void 0, sourceRoot)) {
1026
1058
  throw new Error("Cannot find sourceRoot directory");
@@ -1069,9 +1101,9 @@ async function resolveOptions(options, config) {
1069
1101
  while (entryPath.startsWith("/")) {
1070
1102
  entryPath = entryPath.substring(1);
1071
1103
  }
1072
- const outDir = _chunkOUDGDVMGcjs.joinPaths.call(void 0,
1104
+ const outDir = _chunkVHYQF3I6cjs.joinPaths.call(void 0,
1073
1105
  _path.relative.call(void 0,
1074
- _chunkOUDGDVMGcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot),
1106
+ _chunkVHYQF3I6cjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot),
1075
1107
  config.workspaceRoot
1076
1108
  ),
1077
1109
  outputPath,
@@ -1150,7 +1182,7 @@ async function resolveOptions(options, config) {
1150
1182
  treeShaking: options.treeShaking !== false,
1151
1183
  platform: options.platform || "neutral",
1152
1184
  color: true,
1153
- logLevel: config.logLevel === _chunkOUDGDVMGcjs.LogLevelLabel.FATAL ? _chunkOUDGDVMGcjs.LogLevelLabel.ERROR : _chunkOUDGDVMGcjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
1185
+ logLevel: config.logLevel === _chunkVHYQF3I6cjs.LogLevelLabel.FATAL ? _chunkVHYQF3I6cjs.LogLevelLabel.ERROR : _chunkVHYQF3I6cjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
1154
1186
  }
1155
1187
  }
1156
1188
  };
@@ -1171,7 +1203,7 @@ async function resolveOptions(options, config) {
1171
1203
  if (options.rollup) {
1172
1204
  let rollup = {};
1173
1205
  if (typeof options.rollup === "string") {
1174
- const rollupFile = await _chunkSE3LAWDVcjs.loadConfig.call(void 0, options.rollup);
1206
+ const rollupFile = await _chunkFPQJTGP3cjs.loadConfig.call(void 0, options.rollup);
1175
1207
  if (rollupFile) {
1176
1208
  rollup = rollupFile;
1177
1209
  }
@@ -1183,20 +1215,20 @@ async function resolveOptions(options, config) {
1183
1215
  resolvedOptions.hooks = {
1184
1216
  "rollup:options": async (ctx, opts) => {
1185
1217
  if (options.plugins && options.plugins.length > 0) {
1186
- _chunkOUDGDVMGcjs.writeDebug.call(void 0,
1218
+ _chunkVHYQF3I6cjs.writeDebug.call(void 0,
1187
1219
  ` \u{1F9E9} Found ${options.plugins.length} plugins in provided build options`,
1188
1220
  config
1189
1221
  );
1190
1222
  opts.plugins = options.plugins;
1191
1223
  } else {
1192
- _chunkOUDGDVMGcjs.writeDebug.call(void 0,
1224
+ _chunkVHYQF3I6cjs.writeDebug.call(void 0,
1193
1225
  ` \u{1F9E9} No plugins found in provided build options, using default plugins`,
1194
1226
  config
1195
1227
  );
1196
1228
  opts.plugins = await Promise.all([
1197
- _chunkZFT5WRRGcjs.analyzePlugin.call(void 0, resolvedOptions),
1198
- _chunkSE3LAWDVcjs.tscPlugin.call(void 0, resolvedOptions),
1199
- _chunk6XVL7IQTcjs.onErrorPlugin.call(void 0, resolvedOptions)
1229
+ _chunk67LS6ZEKcjs.analyzePlugin.call(void 0, resolvedOptions),
1230
+ _chunkFPQJTGP3cjs.tscPlugin.call(void 0, resolvedOptions),
1231
+ _chunkF53U4QNBcjs.onErrorPlugin.call(void 0, resolvedOptions)
1200
1232
  ]);
1201
1233
  }
1202
1234
  },
@@ -1250,15 +1282,15 @@ var addPackageJsonExport = (file, type = "module", sourceRoot, projectRoot) => {
1250
1282
  };
1251
1283
  };
1252
1284
  async function generatePackageJson(options) {
1253
- if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkOUDGDVMGcjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1254
- _chunkOUDGDVMGcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1255
- const stopwatch = _chunkOUDGDVMGcjs.getStopwatch.call(void 0, "Write package.json file");
1256
- const packageJsonPath = _chunkOUDGDVMGcjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1285
+ if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkVHYQF3I6cjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1286
+ _chunkVHYQF3I6cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1287
+ const stopwatch = _chunkVHYQF3I6cjs.getStopwatch.call(void 0, "Write package.json file");
1288
+ const packageJsonPath = _chunkVHYQF3I6cjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1257
1289
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1258
1290
  throw new Error("Cannot find package.json configuration");
1259
1291
  }
1260
1292
  const packageJsonContent = await _promises.readFile.call(void 0,
1261
- _chunkOUDGDVMGcjs.joinPaths.call(void 0,
1293
+ _chunkVHYQF3I6cjs.joinPaths.call(void 0,
1262
1294
  options.config.workspaceRoot,
1263
1295
  options.projectRoot,
1264
1296
  "package.json"
@@ -1294,7 +1326,7 @@ async function generatePackageJson(options) {
1294
1326
  while (entryPath.startsWith("/")) {
1295
1327
  entryPath = entryPath.substring(1);
1296
1328
  }
1297
- entryPath = `./${_chunkOUDGDVMGcjs.joinPaths.call(void 0, options.projectRoot, entryPath)}`;
1329
+ entryPath = `./${_chunkVHYQF3I6cjs.joinPaths.call(void 0, options.projectRoot, entryPath)}`;
1298
1330
  if (!ret.includes(entryPath)) {
1299
1331
  ret.push(entryPath);
1300
1332
  }
@@ -1344,28 +1376,28 @@ async function generatePackageJson(options) {
1344
1376
  options.sourceRoot,
1345
1377
  options.projectRoot
1346
1378
  );
1347
- await _devkit.writeJsonFile.call(void 0, _chunkOUDGDVMGcjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
1379
+ await _devkit.writeJsonFile.call(void 0, _chunkVHYQF3I6cjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
1348
1380
  stopwatch();
1349
1381
  }
1350
1382
  return options;
1351
1383
  }
1352
1384
  async function executeUnbuild(options) {
1353
- _chunkOUDGDVMGcjs.writeDebug.call(void 0,
1385
+ _chunkVHYQF3I6cjs.writeDebug.call(void 0,
1354
1386
  ` \u{1F680} Running ${options.name} (${options.projectRoot}) build`,
1355
1387
  options.config
1356
1388
  );
1357
- const stopwatch = _chunkOUDGDVMGcjs.getStopwatch.call(void 0,
1389
+ const stopwatch = _chunkVHYQF3I6cjs.getStopwatch.call(void 0,
1358
1390
  `${options.name} (${options.projectRoot}) build`
1359
1391
  );
1360
1392
  try {
1361
1393
  const config = {
1362
1394
  ...options,
1363
1395
  config: null,
1364
- rootDir: _chunkOUDGDVMGcjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot)
1396
+ rootDir: _chunkVHYQF3I6cjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot)
1365
1397
  };
1366
- _chunkOUDGDVMGcjs.writeTrace.call(void 0,
1398
+ _chunkVHYQF3I6cjs.writeTrace.call(void 0,
1367
1399
  `Running with unbuild configuration:
1368
- ${_chunkOUDGDVMGcjs.formatLogMessage.call(void 0, { ...config, env: "<Hidden>" })}
1400
+ ${_chunkVHYQF3I6cjs.formatLogMessage.call(void 0, { ...config, env: "<Hidden>" })}
1369
1401
  `,
1370
1402
  options.config
1371
1403
  );
@@ -1376,11 +1408,11 @@ ${_chunkOUDGDVMGcjs.formatLogMessage.call(void 0, { ...config, env: "<Hidden>" }
1376
1408
  return options;
1377
1409
  }
1378
1410
  async function copyBuildAssets(options) {
1379
- _chunkOUDGDVMGcjs.writeDebug.call(void 0,
1411
+ _chunkVHYQF3I6cjs.writeDebug.call(void 0,
1380
1412
  ` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
1381
1413
  options.config
1382
1414
  );
1383
- const stopwatch = _chunkOUDGDVMGcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1415
+ const stopwatch = _chunkVHYQF3I6cjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1384
1416
  await copyAssets(
1385
1417
  options.config,
1386
1418
  _nullishCoalesce(options.assets, () => ( [])),
@@ -1395,12 +1427,12 @@ async function copyBuildAssets(options) {
1395
1427
  }
1396
1428
  async function cleanOutputPath(options) {
1397
1429
  if (options.clean !== false && options.outDir) {
1398
- _chunkOUDGDVMGcjs.writeDebug.call(void 0,
1430
+ _chunkVHYQF3I6cjs.writeDebug.call(void 0,
1399
1431
  ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outDir}`,
1400
1432
  options.config
1401
1433
  );
1402
- const stopwatch = _chunkOUDGDVMGcjs.getStopwatch.call(void 0, `${options.name} output clean`);
1403
- await _chunkRDXDA3GHcjs.cleanDirectories.call(void 0, options.name, options.outDir, options.config);
1434
+ const stopwatch = _chunkVHYQF3I6cjs.getStopwatch.call(void 0, `${options.name} output clean`);
1435
+ await _chunkDAT6NHMFcjs.cleanDirectories.call(void 0, options.name, options.outDir, options.config);
1404
1436
  stopwatch();
1405
1437
  }
1406
1438
  return options;
@@ -1415,10 +1447,10 @@ async function build(options) {
1415
1447
  throw new Error("Cannot find workspace root");
1416
1448
  }
1417
1449
  const config = await getConfig(workspaceRoot.dir);
1418
- _chunkOUDGDVMGcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm Unbuild pipeline`, config);
1419
- const stopwatch = _chunkOUDGDVMGcjs.getStopwatch.call(void 0, "Unbuild pipeline");
1450
+ _chunkVHYQF3I6cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm Unbuild pipeline`, config);
1451
+ const stopwatch = _chunkVHYQF3I6cjs.getStopwatch.call(void 0, "Unbuild pipeline");
1420
1452
  try {
1421
- options.projectRoot = _chunkOUDGDVMGcjs.correctPaths.call(void 0, projectRoot);
1453
+ options.projectRoot = _chunkVHYQF3I6cjs.correctPaths.call(void 0, projectRoot);
1422
1454
  const resolvedOptions = await resolveOptions(options, config);
1423
1455
  await cleanOutputPath(resolvedOptions);
1424
1456
  if (options.buildOnly !== true) {
@@ -1428,12 +1460,12 @@ async function build(options) {
1428
1460
  if (options.buildOnly !== true) {
1429
1461
  await copyBuildAssets(resolvedOptions);
1430
1462
  }
1431
- _chunkOUDGDVMGcjs.writeSuccess.call(void 0,
1463
+ _chunkVHYQF3I6cjs.writeSuccess.call(void 0,
1432
1464
  ` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`,
1433
1465
  config
1434
1466
  );
1435
1467
  } catch (error) {
1436
- _chunkOUDGDVMGcjs.writeFatal.call(void 0,
1468
+ _chunkVHYQF3I6cjs.writeFatal.call(void 0,
1437
1469
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated.",
1438
1470
  config
1439
1471
  );
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-KQH54774.js";
4
+ } from "./chunk-2JQ6EMAG.js";
5
5
 
6
6
  // src/clean.ts
7
7
  import { rm } from "node:fs/promises";