@storm-software/unbuild 0.38.7 → 0.38.8

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 _chunkWGGER7UIcjs = require('./chunk-WGGER7UI.cjs');
3
+ var _chunkVDERNXXYcjs = require('./chunk-VDERNXXY.cjs');
4
4
 
5
5
 
6
- var _chunkOOFPXPRCcjs = require('./chunk-OOFPXPRC.cjs');
6
+ var _chunkAHQIGTFCcjs = require('./chunk-AHQIGTFC.cjs');
7
7
 
8
8
 
9
- var _chunkX25DCA4Tcjs = require('./chunk-X25DCA4T.cjs');
9
+ var _chunkXM5UE2GXcjs = require('./chunk-XM5UE2GX.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunkVPCO2H3Gcjs = require('./chunk-VPCO2H3G.cjs');
13
+ var _chunkCYX4LFNQcjs = require('./chunk-CYX4LFNQ.cjs');
14
14
 
15
15
 
16
16
 
@@ -33,7 +33,7 @@ var _chunkVPCO2H3Gcjs = require('./chunk-VPCO2H3G.cjs');
33
33
 
34
34
 
35
35
 
36
- var _chunkK5SEKFQAcjs = require('./chunk-K5SEKFQA.cjs');
36
+ var _chunkWSXJ22NQcjs = require('./chunk-WSXJ22NQ.cjs');
37
37
 
38
38
 
39
39
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
@@ -86,8 +86,8 @@ var copyAssets = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (co
86
86
  output: "src/"
87
87
  });
88
88
  }
89
- _chunkK5SEKFQAcjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
90
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkK5SEKFQAcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
89
+ _chunkWSXJ22NQcjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
90
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkWSXJ22NQcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
91
91
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
92
92
  projectDir: projectRoot,
93
93
  rootDir: config.workspaceRoot,
@@ -96,12 +96,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
96
96
  });
97
97
  await assetHandler.processAllAssetsOnce();
98
98
  if (includeSrc === true) {
99
- _chunkK5SEKFQAcjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkK5SEKFQAcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
99
+ _chunkWSXJ22NQcjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkWSXJ22NQcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
100
100
  const files = await _glob.glob.call(void 0, [
101
- _chunkK5SEKFQAcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
102
- _chunkK5SEKFQAcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
103
- _chunkK5SEKFQAcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
104
- _chunkK5SEKFQAcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
101
+ _chunkWSXJ22NQcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
102
+ _chunkWSXJ22NQcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
103
+ _chunkWSXJ22NQcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
104
+ _chunkWSXJ22NQcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
105
105
  ]);
106
106
  await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
107
107
 
@@ -124,7 +124,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
124
124
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _ => _.node, 'access', _2 => _2.data, 'optionalAccess', _3 => _3.root]) !== projectRoot && _optionalChain([dep, 'access', _4 => _4.node, 'access', _5 => _5.data, 'optionalAccess', _6 => _6.root]) !== workspaceRoot)) {
125
125
  const projectNode = project.node;
126
126
  if (projectNode.data.root) {
127
- const projectPackageJsonPath = _chunkK5SEKFQAcjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
127
+ const projectPackageJsonPath = _chunkWSXJ22NQcjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
128
128
  if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
129
129
  const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
130
130
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
@@ -135,8 +135,8 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
135
135
  }
136
136
  }
137
137
  if (localPackages.length > 0) {
138
- _chunkK5SEKFQAcjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
139
- const projectJsonFile = await _promises.readFile.call(void 0, _chunkK5SEKFQAcjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
138
+ _chunkWSXJ22NQcjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
139
+ const projectJsonFile = await _promises.readFile.call(void 0, _chunkWSXJ22NQcjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
140
140
  const projectJson = JSON.parse(projectJsonFile);
141
141
  const projectName2 = projectJson.name;
142
142
  const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
@@ -145,7 +145,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
145
145
  }
146
146
  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) => {
147
147
  if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
148
- const depPackageJsonPath = _chunkK5SEKFQAcjs.joinPaths.call(void 0, workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
148
+ const depPackageJsonPath = _chunkWSXJ22NQcjs.joinPaths.call(void 0, workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
149
149
  if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
150
150
  const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
151
151
  const depPackageJson = JSON.parse(depPackageJsonContent);
@@ -169,13 +169,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
169
169
  return ret;
170
170
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
171
171
  } else {
172
- _chunkK5SEKFQAcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
172
+ _chunkWSXJ22NQcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
173
173
  }
174
174
  return packageJson;
175
175
  }, "addPackageDependencies");
176
176
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
177
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkK5SEKFQAcjs.findWorkspaceRoot.call(void 0, );
178
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkK5SEKFQAcjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
177
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkWSXJ22NQcjs.findWorkspaceRoot.call(void 0, );
178
+ const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkWSXJ22NQcjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
179
179
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
180
180
  packageJson.type ??= "module";
181
181
  packageJson.sideEffects ??= false;
@@ -184,7 +184,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.cal
184
184
  if (distSrc.startsWith("/")) {
185
185
  distSrc = distSrc.substring(1);
186
186
  }
187
- packageJson.source ??= `${_chunkK5SEKFQAcjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
187
+ packageJson.source ??= `${_chunkWSXJ22NQcjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
188
188
  }
189
189
  packageJson.files ??= [
190
190
  "dist/**/*"
@@ -215,7 +215,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.cal
215
215
  ];
216
216
  }
217
217
  packageJson.repository ??= workspacePackageJson.repository;
218
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkK5SEKFQAcjs.joinPaths.call(void 0, "packages", projectName);
218
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkWSXJ22NQcjs.joinPaths.call(void 0, "packages", projectName);
219
219
  return packageJson;
220
220
  }, "addWorkspacePackageJsonFields");
221
221
 
@@ -223,7 +223,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.cal
223
223
  var _c12 = require('c12');
224
224
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
225
225
  var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
226
- const workspacePath = filePath || _chunkK5SEKFQAcjs.findWorkspaceRoot.call(void 0, filePath);
226
+ const workspacePath = filePath || _chunkWSXJ22NQcjs.findWorkspaceRoot.call(void 0, filePath);
227
227
  const configs = await Promise.all([
228
228
  _c12.loadConfig.call(void 0, {
229
229
  cwd: workspacePath,
@@ -232,7 +232,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
232
232
  envName: _optionalChain([fileName, 'optionalAccess', _24 => _24.toUpperCase, 'call', _25 => _25()]),
233
233
  jitiOptions: {
234
234
  debug: false,
235
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkK5SEKFQAcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
235
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkWSXJ22NQcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
236
236
  },
237
237
  ...options
238
238
  }),
@@ -243,7 +243,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
243
243
  envName: _optionalChain([fileName, 'optionalAccess', _26 => _26.toUpperCase, 'call', _27 => _27()]),
244
244
  jitiOptions: {
245
245
  debug: false,
246
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkK5SEKFQAcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
246
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkWSXJ22NQcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
247
247
  },
248
248
  configFile: fileName,
249
249
  ...options
@@ -252,12 +252,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
252
252
  return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
253
253
  }, "getConfigFileByName");
254
254
  var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
255
- const workspacePath = filePath ? filePath : _chunkK5SEKFQAcjs.findWorkspaceRoot.call(void 0, filePath);
255
+ const workspacePath = filePath ? filePath : _chunkWSXJ22NQcjs.findWorkspaceRoot.call(void 0, filePath);
256
256
  const result = await getConfigFileByName("storm-workspace", workspacePath);
257
257
  let config = result.config;
258
258
  const configFile = result.configFile;
259
259
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
260
- _chunkK5SEKFQAcjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
260
+ _chunkWSXJ22NQcjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
261
261
  logLevel: "all"
262
262
  });
263
263
  }
@@ -266,7 +266,7 @@ var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
266
266
  for (const result2 of results) {
267
267
  if (_optionalChain([result2, 'optionalAccess', _28 => _28.config]) && _optionalChain([result2, 'optionalAccess', _29 => _29.configFile]) && Object.keys(result2.config).length > 0) {
268
268
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
269
- _chunkK5SEKFQAcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
269
+ _chunkWSXJ22NQcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
270
270
  logLevel: "all"
271
271
  });
272
272
  }
@@ -328,15 +328,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
328
328
  contact: process.env[`${prefix}CONTACT`] || void 0,
329
329
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
330
330
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
331
- configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkK5SEKFQAcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
332
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkK5SEKFQAcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
331
+ configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkWSXJ22NQcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
332
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkWSXJ22NQcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
333
333
  directories: {
334
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkK5SEKFQAcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
335
- data: process.env[`${prefix}DATA_DIR`] ? _chunkK5SEKFQAcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
336
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkK5SEKFQAcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
337
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkK5SEKFQAcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
338
- log: process.env[`${prefix}LOG_DIR`] ? _chunkK5SEKFQAcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
339
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkK5SEKFQAcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
334
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunkWSXJ22NQcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
335
+ data: process.env[`${prefix}DATA_DIR`] ? _chunkWSXJ22NQcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
336
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunkWSXJ22NQcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
337
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunkWSXJ22NQcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
338
+ log: process.env[`${prefix}LOG_DIR`] ? _chunkWSXJ22NQcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
339
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunkWSXJ22NQcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
340
340
  },
341
341
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
342
342
  mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -359,24 +359,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
359
359
  cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
360
360
  container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
361
361
  },
362
- 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`])) ? _chunkK5SEKFQAcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
362
+ 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`])) ? _chunkWSXJ22NQcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
363
363
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
364
364
  };
365
- const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkK5SEKFQAcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
365
+ const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkWSXJ22NQcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
366
366
  config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
367
367
  ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
368
368
  return ret;
369
369
  }, {}) : getThemeColorConfigEnv(prefix);
370
- if (config.docs === _chunkK5SEKFQAcjs.STORM_DEFAULT_DOCS) {
371
- if (config.homepage === _chunkK5SEKFQAcjs.STORM_DEFAULT_HOMEPAGE) {
372
- config.docs = `${_chunkK5SEKFQAcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
370
+ if (config.docs === _chunkWSXJ22NQcjs.STORM_DEFAULT_DOCS) {
371
+ if (config.homepage === _chunkWSXJ22NQcjs.STORM_DEFAULT_HOMEPAGE) {
372
+ config.docs = `${_chunkWSXJ22NQcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
373
373
  } else {
374
374
  config.docs = `${config.homepage}/docs`;
375
375
  }
376
376
  }
377
- if (config.licensing === _chunkK5SEKFQAcjs.STORM_DEFAULT_LICENSING) {
378
- if (config.homepage === _chunkK5SEKFQAcjs.STORM_DEFAULT_HOMEPAGE) {
379
- config.licensing = `${_chunkK5SEKFQAcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
377
+ if (config.licensing === _chunkWSXJ22NQcjs.STORM_DEFAULT_LICENSING) {
378
+ if (config.homepage === _chunkWSXJ22NQcjs.STORM_DEFAULT_HOMEPAGE) {
379
+ config.licensing = `${_chunkWSXJ22NQcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
380
380
  } else {
381
381
  config.licensing = `${config.homepage}/docs`;
382
382
  }
@@ -542,31 +542,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
542
542
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
543
543
  }
544
544
  if (config.configFile) {
545
- process.env[`${prefix}CONFIG_FILE`] = _chunkK5SEKFQAcjs.correctPaths.call(void 0, config.configFile);
545
+ process.env[`${prefix}CONFIG_FILE`] = _chunkWSXJ22NQcjs.correctPaths.call(void 0, config.configFile);
546
546
  }
547
547
  if (config.workspaceRoot) {
548
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkK5SEKFQAcjs.correctPaths.call(void 0, config.workspaceRoot);
549
- process.env.NX_WORKSPACE_ROOT = _chunkK5SEKFQAcjs.correctPaths.call(void 0, config.workspaceRoot);
550
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkK5SEKFQAcjs.correctPaths.call(void 0, config.workspaceRoot);
548
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunkWSXJ22NQcjs.correctPaths.call(void 0, config.workspaceRoot);
549
+ process.env.NX_WORKSPACE_ROOT = _chunkWSXJ22NQcjs.correctPaths.call(void 0, config.workspaceRoot);
550
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunkWSXJ22NQcjs.correctPaths.call(void 0, config.workspaceRoot);
551
551
  }
552
552
  if (config.directories) {
553
553
  if (!config.skipCache && config.directories.cache) {
554
- process.env[`${prefix}CACHE_DIR`] = _chunkK5SEKFQAcjs.correctPaths.call(void 0, config.directories.cache);
554
+ process.env[`${prefix}CACHE_DIR`] = _chunkWSXJ22NQcjs.correctPaths.call(void 0, config.directories.cache);
555
555
  }
556
556
  if (config.directories.data) {
557
- process.env[`${prefix}DATA_DIR`] = _chunkK5SEKFQAcjs.correctPaths.call(void 0, config.directories.data);
557
+ process.env[`${prefix}DATA_DIR`] = _chunkWSXJ22NQcjs.correctPaths.call(void 0, config.directories.data);
558
558
  }
559
559
  if (config.directories.config) {
560
- process.env[`${prefix}CONFIG_DIR`] = _chunkK5SEKFQAcjs.correctPaths.call(void 0, config.directories.config);
560
+ process.env[`${prefix}CONFIG_DIR`] = _chunkWSXJ22NQcjs.correctPaths.call(void 0, config.directories.config);
561
561
  }
562
562
  if (config.directories.temp) {
563
- process.env[`${prefix}TEMP_DIR`] = _chunkK5SEKFQAcjs.correctPaths.call(void 0, config.directories.temp);
563
+ process.env[`${prefix}TEMP_DIR`] = _chunkWSXJ22NQcjs.correctPaths.call(void 0, config.directories.temp);
564
564
  }
565
565
  if (config.directories.log) {
566
- process.env[`${prefix}LOG_DIR`] = _chunkK5SEKFQAcjs.correctPaths.call(void 0, config.directories.log);
566
+ process.env[`${prefix}LOG_DIR`] = _chunkWSXJ22NQcjs.correctPaths.call(void 0, config.directories.log);
567
567
  }
568
568
  if (config.directories.build) {
569
- process.env[`${prefix}BUILD_DIR`] = _chunkK5SEKFQAcjs.correctPaths.call(void 0, config.directories.build);
569
+ process.env[`${prefix}BUILD_DIR`] = _chunkWSXJ22NQcjs.correctPaths.call(void 0, config.directories.build);
570
570
  }
571
571
  }
572
572
  if (config.skipCache !== void 0) {
@@ -620,8 +620,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
620
620
  if (config.logLevel) {
621
621
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
622
622
  process.env.LOG_LEVEL = String(config.logLevel);
623
- process.env.NX_VERBOSE_LOGGING = String(_chunkK5SEKFQAcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkK5SEKFQAcjs.LogLevel.DEBUG ? true : false);
624
- process.env.RUST_BACKTRACE = _chunkK5SEKFQAcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkK5SEKFQAcjs.LogLevel.DEBUG ? "full" : "none";
623
+ process.env.NX_VERBOSE_LOGGING = String(_chunkWSXJ22NQcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkWSXJ22NQcjs.LogLevel.DEBUG ? true : false);
624
+ process.env.RUST_BACKTRACE = _chunkWSXJ22NQcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkWSXJ22NQcjs.LogLevel.DEBUG ? "full" : "none";
625
625
  }
626
626
  if (config.skipConfigLogging !== void 0) {
627
627
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
@@ -734,22 +734,22 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(v
734
734
  // ../config-tools/src/create-storm-config.ts
735
735
  var _extension_cache = /* @__PURE__ */ new WeakMap();
736
736
  var _static_cache = void 0;
737
- var createStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
737
+ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
738
738
  let result;
739
739
  if (!_optionalChain([_static_cache, 'optionalAccess', _52 => _52.data]) || !_optionalChain([_static_cache, 'optionalAccess', _53 => _53.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
740
740
  let _workspaceRoot = workspaceRoot;
741
741
  if (!_workspaceRoot) {
742
- _workspaceRoot = _chunkK5SEKFQAcjs.findWorkspaceRoot.call(void 0, );
742
+ _workspaceRoot = _chunkWSXJ22NQcjs.findWorkspaceRoot.call(void 0, );
743
743
  }
744
744
  const configEnv = getConfigEnv();
745
- const defaultConfig = await _chunkK5SEKFQAcjs.getDefaultConfig.call(void 0, _workspaceRoot);
745
+ const defaultConfig = await _chunkWSXJ22NQcjs.getDefaultConfig.call(void 0, _workspaceRoot);
746
746
  const configFile = await getConfigFile(_workspaceRoot);
747
747
  if (!configFile && !skipLogs) {
748
- _chunkK5SEKFQAcjs.writeWarning.call(void 0, "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
748
+ _chunkWSXJ22NQcjs.writeWarning.call(void 0, "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
749
749
  logLevel: "all"
750
750
  });
751
751
  }
752
- result = await _chunkK5SEKFQAcjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
752
+ result = await _chunkWSXJ22NQcjs.stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
753
753
  result.workspaceRoot ??= _workspaceRoot;
754
754
  } else {
755
755
  result = _static_cache.data;
@@ -765,7 +765,7 @@ var createStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, as
765
765
  data: result
766
766
  };
767
767
  return result;
768
- }, "createStormConfig");
768
+ }, "createStormWorkspaceConfig");
769
769
  var createConfigExtension = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (extensionName, schema) => {
770
770
  const extension_cache_key = {
771
771
  extensionName
@@ -780,19 +780,19 @@ var createConfigExtension = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0
780
780
  _extension_cache.set(extension_cache_key, extension);
781
781
  return extension;
782
782
  }, "createConfigExtension");
783
- var loadStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
784
- const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
783
+ var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
784
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
785
785
  setConfigEnv(config);
786
786
  if (!skipLogs && !config.skipConfigLogging) {
787
- _chunkK5SEKFQAcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
788
- ${_chunkK5SEKFQAcjs.formatLogMessage.call(void 0, config)}`, config);
787
+ _chunkWSXJ22NQcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
788
+ ${_chunkWSXJ22NQcjs.formatLogMessage.call(void 0, config)}`, config);
789
789
  }
790
790
  return config;
791
- }, "loadStormConfig");
791
+ }, "loadStormWorkspaceConfig");
792
792
 
793
793
  // ../config-tools/src/get-config.ts
794
794
  var getConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (workspaceRoot, skipLogs = false) => {
795
- return loadStormConfig(workspaceRoot, skipLogs);
795
+ return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
796
796
  }, "getConfig");
797
797
 
798
798
  // ../build-tools/src/utilities/get-entry-points.ts
@@ -814,24 +814,24 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
814
814
  var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
815
815
  var _unbuild = require('unbuild');
816
816
  async function resolveOptions(options, config) {
817
- _chunkK5SEKFQAcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
818
- const stopwatch = _chunkK5SEKFQAcjs.getStopwatch.call(void 0, "Build options resolution");
817
+ _chunkWSXJ22NQcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
818
+ const stopwatch = _chunkWSXJ22NQcjs.getStopwatch.call(void 0, "Build options resolution");
819
819
  if (options.configPath) {
820
- const configFile = await _chunkVPCO2H3Gcjs.loadConfig.call(void 0, options.configPath);
820
+ const configFile = await _chunkCYX4LFNQcjs.loadConfig.call(void 0, options.configPath);
821
821
  if (configFile) {
822
822
  options = _defu2.default.call(void 0, options, configFile);
823
823
  }
824
824
  }
825
- const outputPath = options.outputPath || _chunkK5SEKFQAcjs.joinPaths.call(void 0, "dist", options.projectRoot);
825
+ const outputPath = options.outputPath || _chunkWSXJ22NQcjs.joinPaths.call(void 0, "dist", options.projectRoot);
826
826
  const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
827
- const projectJsonPath = _chunkK5SEKFQAcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot, "project.json");
827
+ const projectJsonPath = _chunkWSXJ22NQcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot, "project.json");
828
828
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
829
829
  throw new Error("Cannot find project.json configuration");
830
830
  }
831
831
  const projectJsonContent = await _promises.readFile.call(void 0, projectJsonPath, "utf8");
832
832
  const projectJson = JSON.parse(projectJsonContent);
833
833
  const projectName = projectJson.name;
834
- const packageJsonPath = _chunkK5SEKFQAcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot, "package.json");
834
+ const packageJsonPath = _chunkWSXJ22NQcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot, "package.json");
835
835
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
836
836
  throw new Error("Cannot find package.json configuration");
837
837
  }
@@ -839,17 +839,17 @@ async function resolveOptions(options, config) {
839
839
  const packageJson = JSON.parse(packageJsonContent);
840
840
  let tsconfig = options.tsconfig;
841
841
  if (!tsconfig) {
842
- tsconfig = _chunkK5SEKFQAcjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json");
842
+ tsconfig = _chunkWSXJ22NQcjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json");
843
843
  }
844
844
  if (!tsconfig.startsWith(config.workspaceRoot)) {
845
- tsconfig = _chunkK5SEKFQAcjs.joinPaths.call(void 0, config.workspaceRoot, tsconfig);
845
+ tsconfig = _chunkWSXJ22NQcjs.joinPaths.call(void 0, config.workspaceRoot, tsconfig);
846
846
  }
847
847
  if (!_fs.existsSync.call(void 0, tsconfig)) {
848
848
  throw new Error("Cannot find tsconfig.json configuration");
849
849
  }
850
850
  let sourceRoot = projectJson.sourceRoot;
851
851
  if (!sourceRoot) {
852
- sourceRoot = _chunkK5SEKFQAcjs.joinPaths.call(void 0, options.projectRoot, "src");
852
+ sourceRoot = _chunkWSXJ22NQcjs.joinPaths.call(void 0, options.projectRoot, "src");
853
853
  }
854
854
  if (!_fs.existsSync.call(void 0, sourceRoot)) {
855
855
  throw new Error("Cannot find sourceRoot directory");
@@ -884,7 +884,7 @@ async function resolveOptions(options, config) {
884
884
  while (entryPath.startsWith("/")) {
885
885
  entryPath = entryPath.substring(1);
886
886
  }
887
- const outDir = _chunkK5SEKFQAcjs.joinPaths.call(void 0, _path.relative.call(void 0, _chunkK5SEKFQAcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
887
+ const outDir = _chunkWSXJ22NQcjs.joinPaths.call(void 0, _path.relative.call(void 0, _chunkWSXJ22NQcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
888
888
  ret.push({
889
889
  name: `${name}-esm`,
890
890
  builder: "mkdist",
@@ -958,7 +958,7 @@ async function resolveOptions(options, config) {
958
958
  treeShaking: options.treeShaking !== false,
959
959
  platform: options.platform || "neutral",
960
960
  color: true,
961
- logLevel: config.logLevel === _chunkK5SEKFQAcjs.LogLevelLabel.FATAL ? _chunkK5SEKFQAcjs.LogLevelLabel.ERROR : _chunkK5SEKFQAcjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
961
+ logLevel: config.logLevel === _chunkWSXJ22NQcjs.LogLevelLabel.FATAL ? _chunkWSXJ22NQcjs.LogLevelLabel.ERROR : _chunkWSXJ22NQcjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
962
962
  }
963
963
  }
964
964
  };
@@ -975,7 +975,7 @@ async function resolveOptions(options, config) {
975
975
  if (options.rollup) {
976
976
  let rollup = {};
977
977
  if (typeof options.rollup === "string") {
978
- const rollupFile = await _chunkVPCO2H3Gcjs.loadConfig.call(void 0, options.rollup);
978
+ const rollupFile = await _chunkCYX4LFNQcjs.loadConfig.call(void 0, options.rollup);
979
979
  if (rollupFile) {
980
980
  rollup = rollupFile;
981
981
  }
@@ -987,14 +987,14 @@ async function resolveOptions(options, config) {
987
987
  resolvedOptions.hooks = {
988
988
  "rollup:options": /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (ctx, opts) => {
989
989
  if (options.plugins && options.plugins.length > 0) {
990
- _chunkK5SEKFQAcjs.writeDebug.call(void 0, ` \u{1F9E9} Found ${options.plugins.length} plugins in provided build options`, config);
990
+ _chunkWSXJ22NQcjs.writeDebug.call(void 0, ` \u{1F9E9} Found ${options.plugins.length} plugins in provided build options`, config);
991
991
  opts.plugins = options.plugins;
992
992
  } else {
993
- _chunkK5SEKFQAcjs.writeDebug.call(void 0, ` \u{1F9E9} No plugins found in provided build options, using default plugins`, config);
993
+ _chunkWSXJ22NQcjs.writeDebug.call(void 0, ` \u{1F9E9} No plugins found in provided build options, using default plugins`, config);
994
994
  opts.plugins = await Promise.all([
995
- _chunkOOFPXPRCcjs.analyzePlugin.call(void 0, resolvedOptions),
996
- _chunkVPCO2H3Gcjs.tscPlugin.call(void 0, resolvedOptions),
997
- _chunkX25DCA4Tcjs.onErrorPlugin.call(void 0, resolvedOptions)
995
+ _chunkAHQIGTFCcjs.analyzePlugin.call(void 0, resolvedOptions),
996
+ _chunkCYX4LFNQcjs.tscPlugin.call(void 0, resolvedOptions),
997
+ _chunkXM5UE2GXcjs.onErrorPlugin.call(void 0, resolvedOptions)
998
998
  ]);
999
999
  }
1000
1000
  }, "rollup:options"),
@@ -1047,14 +1047,14 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
1047
1047
  };
1048
1048
  }, "addPackageJsonExport");
1049
1049
  async function generatePackageJson(options) {
1050
- if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkK5SEKFQAcjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1051
- _chunkK5SEKFQAcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1052
- const stopwatch = _chunkK5SEKFQAcjs.getStopwatch.call(void 0, "Write package.json file");
1053
- const packageJsonPath = _chunkK5SEKFQAcjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1050
+ if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkWSXJ22NQcjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1051
+ _chunkWSXJ22NQcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1052
+ const stopwatch = _chunkWSXJ22NQcjs.getStopwatch.call(void 0, "Write package.json file");
1053
+ const packageJsonPath = _chunkWSXJ22NQcjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1054
1054
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1055
1055
  throw new Error("Cannot find package.json configuration");
1056
1056
  }
1057
- const packageJsonContent = await _promises.readFile.call(void 0, _chunkK5SEKFQAcjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1057
+ const packageJsonContent = await _promises.readFile.call(void 0, _chunkWSXJ22NQcjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1058
1058
  if (!packageJsonContent) {
1059
1059
  throw new Error("Cannot find package.json configuration file");
1060
1060
  }
@@ -1071,7 +1071,7 @@ async function generatePackageJson(options) {
1071
1071
  while (entryPath.startsWith("/")) {
1072
1072
  entryPath = entryPath.substring(1);
1073
1073
  }
1074
- entryPath = `./${_chunkK5SEKFQAcjs.joinPaths.call(void 0, options.projectRoot, entryPath)}`;
1074
+ entryPath = `./${_chunkWSXJ22NQcjs.joinPaths.call(void 0, options.projectRoot, entryPath)}`;
1075
1075
  if (!ret.includes(entryPath)) {
1076
1076
  ret.push(entryPath);
1077
1077
  }
@@ -1102,23 +1102,23 @@ async function generatePackageJson(options) {
1102
1102
  }, packageJson.exports);
1103
1103
  packageJson.exports["./package.json"] ??= "./package.json";
1104
1104
  packageJson.exports["."] ??= addPackageJsonExport("index", packageJson.type, options.sourceRoot, options.projectRoot);
1105
- await _devkit.writeJsonFile.call(void 0, _chunkK5SEKFQAcjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
1105
+ await _devkit.writeJsonFile.call(void 0, _chunkWSXJ22NQcjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
1106
1106
  stopwatch();
1107
1107
  }
1108
1108
  return options;
1109
1109
  }
1110
1110
  _chunkBGYQAVKQcjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
1111
1111
  async function executeUnbuild(options) {
1112
- _chunkK5SEKFQAcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
1113
- const stopwatch = _chunkK5SEKFQAcjs.getStopwatch.call(void 0, `${options.name} (${options.projectRoot}) build`);
1112
+ _chunkWSXJ22NQcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
1113
+ const stopwatch = _chunkWSXJ22NQcjs.getStopwatch.call(void 0, `${options.name} (${options.projectRoot}) build`);
1114
1114
  try {
1115
1115
  const config = {
1116
1116
  ...options,
1117
1117
  config: null,
1118
- rootDir: _chunkK5SEKFQAcjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot)
1118
+ rootDir: _chunkWSXJ22NQcjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot)
1119
1119
  };
1120
- _chunkK5SEKFQAcjs.writeTrace.call(void 0, `Running with unbuild configuration:
1121
- ${_chunkK5SEKFQAcjs.formatLogMessage.call(void 0, config)}
1120
+ _chunkWSXJ22NQcjs.writeTrace.call(void 0, `Running with unbuild configuration:
1121
+ ${_chunkWSXJ22NQcjs.formatLogMessage.call(void 0, config)}
1122
1122
  `, options.config);
1123
1123
  await _unbuild.build.call(void 0, options.projectRoot, false, config);
1124
1124
  } finally {
@@ -1128,8 +1128,8 @@ ${_chunkK5SEKFQAcjs.formatLogMessage.call(void 0, config)}
1128
1128
  }
1129
1129
  _chunkBGYQAVKQcjs.__name.call(void 0, executeUnbuild, "executeUnbuild");
1130
1130
  async function copyBuildAssets(options) {
1131
- _chunkK5SEKFQAcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`, options.config);
1132
- const stopwatch = _chunkK5SEKFQAcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1131
+ _chunkWSXJ22NQcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`, options.config);
1132
+ const stopwatch = _chunkWSXJ22NQcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1133
1133
  await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outDir, options.projectRoot, options.sourceRoot, options.generatePackageJson, options.includeSrc);
1134
1134
  stopwatch();
1135
1135
  return options;
@@ -1137,9 +1137,9 @@ async function copyBuildAssets(options) {
1137
1137
  _chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1138
1138
  async function cleanOutputPath(options) {
1139
1139
  if (options.clean !== false && options.outDir) {
1140
- _chunkK5SEKFQAcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outDir}`, options.config);
1141
- const stopwatch = _chunkK5SEKFQAcjs.getStopwatch.call(void 0, `${options.name} output clean`);
1142
- await _chunkWGGER7UIcjs.cleanDirectories.call(void 0, options.name, options.outDir, options.config);
1140
+ _chunkWSXJ22NQcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outDir}`, options.config);
1141
+ const stopwatch = _chunkWSXJ22NQcjs.getStopwatch.call(void 0, `${options.name} output clean`);
1142
+ await _chunkVDERNXXYcjs.cleanDirectories.call(void 0, options.name, options.outDir, options.config);
1143
1143
  stopwatch();
1144
1144
  }
1145
1145
  return options;
@@ -1155,18 +1155,18 @@ async function build(options) {
1155
1155
  throw new Error("Cannot find workspace root");
1156
1156
  }
1157
1157
  const config = await getConfig(workspaceRoot.dir);
1158
- _chunkK5SEKFQAcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm Unbuild pipeline`, config);
1159
- const stopwatch = _chunkK5SEKFQAcjs.getStopwatch.call(void 0, "Unbuild pipeline");
1158
+ _chunkWSXJ22NQcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm Unbuild pipeline`, config);
1159
+ const stopwatch = _chunkWSXJ22NQcjs.getStopwatch.call(void 0, "Unbuild pipeline");
1160
1160
  try {
1161
- options.projectRoot = _chunkK5SEKFQAcjs.correctPaths.call(void 0, projectRoot);
1161
+ options.projectRoot = _chunkWSXJ22NQcjs.correctPaths.call(void 0, projectRoot);
1162
1162
  const resolvedOptions = await resolveOptions(options, config);
1163
1163
  await cleanOutputPath(resolvedOptions);
1164
1164
  await generatePackageJson(resolvedOptions);
1165
1165
  await executeUnbuild(resolvedOptions);
1166
1166
  await copyBuildAssets(resolvedOptions);
1167
- _chunkK5SEKFQAcjs.writeSuccess.call(void 0, ` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, config);
1167
+ _chunkWSXJ22NQcjs.writeSuccess.call(void 0, ` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, config);
1168
1168
  } catch (error) {
1169
- _chunkK5SEKFQAcjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.", config);
1169
+ _chunkWSXJ22NQcjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.", config);
1170
1170
  throw error;
1171
1171
  } finally {
1172
1172
  stopwatch();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeInfo
3
- } from "./chunk-EJVOWVIQ.js";
3
+ } from "./chunk-3FANH6ED.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-3GQAWCBQ.js";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkK5SEKFQAcjs = require('./chunk-K5SEKFQA.cjs');
4
+ var _chunkWSXJ22NQcjs = require('./chunk-WSXJ22NQ.cjs');
5
5
 
6
6
 
7
7
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
@@ -9,8 +9,8 @@ var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
9
9
  // src/clean.ts
10
10
  var _promises = require('fs/promises');
11
11
  async function clean(name = "Unbuild", directory, config) {
12
- _chunkK5SEKFQAcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
- const stopwatch = _chunkK5SEKFQAcjs.getStopwatch.call(void 0, `${name} output clean`);
12
+ _chunkWSXJ22NQcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
+ const stopwatch = _chunkWSXJ22NQcjs.getStopwatch.call(void 0, `${name} output clean`);
14
14
  await cleanDirectories(name, directory, config);
15
15
  stopwatch();
16
16
  }
@@ -339,7 +339,7 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
339
339
  log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
340
340
  build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
341
341
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
342
- var StormConfigSchema = _zod2.default.object({
342
+ var stormWorkspaceConfigSchema = _zod2.default.object({
343
343
  $schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
344
344
  extends: ExtendsSchema.optional(),
345
345
  name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
@@ -758,4 +758,4 @@ var _isFunction = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (value)
758
758
 
759
759
 
760
760
 
761
- exports.LogLevel = LogLevel; exports.LogLevelLabel = LogLevelLabel; exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.StormConfigSchema = StormConfigSchema; exports.COLOR_KEYS = COLOR_KEYS; exports.correctPaths = correctPaths; exports.joinPaths = joinPaths; exports.findWorkspaceRoot = findWorkspaceRoot; exports.getDefaultConfig = getDefaultConfig; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage;
761
+ exports.LogLevel = LogLevel; exports.LogLevelLabel = LogLevelLabel; exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.stormWorkspaceConfigSchema = stormWorkspaceConfigSchema; exports.COLOR_KEYS = COLOR_KEYS; exports.correctPaths = correctPaths; exports.joinPaths = joinPaths; exports.findWorkspaceRoot = findWorkspaceRoot; exports.getDefaultConfig = getDefaultConfig; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-EJVOWVIQ.js";
3
+ } from "./chunk-3FANH6ED.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-3GQAWCBQ.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-EJVOWVIQ.js";
4
+ } from "./chunk-3FANH6ED.js";
5
5
  import {
6
6
  __name
7
7
  } from "./chunk-3GQAWCBQ.js";