@storm-software/tsdown 0.36.44 → 0.36.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.36.42-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.36.43-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/dist/build.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkKRIY4VZWcjs = require('./chunk-KRIY4VZW.cjs');
5
- require('./chunk-OCC7OKQI.cjs');
4
+ var _chunkGCWQGMYRcjs = require('./chunk-GCWQGMYR.cjs');
5
+ require('./chunk-VQUVTOBM.cjs');
6
6
  require('./chunk-65E5RX7I.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.build = _chunkKRIY4VZWcjs.build; exports.cleanOutputPath = _chunkKRIY4VZWcjs.cleanOutputPath;
10
+ exports.build = _chunkGCWQGMYRcjs.build; exports.cleanOutputPath = _chunkGCWQGMYRcjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-2ZZRHMWO.js";
5
- import "./chunk-CHQ3CQ4X.js";
4
+ } from "./chunk-PE3XRYJ5.js";
5
+ import "./chunk-F23CJDQC.js";
6
6
  import "./chunk-2YE3GBQH.js";
7
7
  export {
8
8
  build,
@@ -111,7 +111,7 @@ var SingleThemeColorConfigSchema = z.object({
111
111
  positive: PositiveColorSchema,
112
112
  negative: NegativeColorSchema
113
113
  });
114
- var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
114
+ var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
115
115
  var RegistryConfigSchema = z.object({
116
116
  github: RegistryUrlConfigSchema,
117
117
  npm: RegistryUrlConfigSchema,
@@ -138,7 +138,7 @@ var WorkspaceBotConfigSchema = z.object({
138
138
  name: z.string().trim().default("stormie-bot").describe(
139
139
  "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
140
140
  ),
141
- email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
141
+ email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
142
142
  }).describe(
143
143
  "The workspace's bot user's config used to automated various operations tasks"
144
144
  );
@@ -181,19 +181,20 @@ var WorkspaceDirectoryConfigSchema = z.object({
181
181
  );
182
182
  var errorConfigSchema = z.object({
183
183
  codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
184
- url: z.string().trim().url().optional().describe(
184
+ url: z.url().optional().describe(
185
185
  "A URL to a page that looks up the workspace's error messages given a specific error code"
186
186
  )
187
187
  }).describe("The workspace's error config used during the error process");
188
188
  var organizationConfigSchema = z.object({
189
189
  name: z.string().trim().describe("The name of the organization"),
190
190
  description: z.string().trim().optional().describe("A description of the organization"),
191
- logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
192
- icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
193
- url: z.string().trim().url().optional().describe(
191
+ logo: z.url().optional().describe("A URL to the organization's logo image"),
192
+ icon: z.url().optional().describe("A URL to the organization's icon image"),
193
+ url: z.url().optional().describe(
194
194
  "A URL to a page that provides more information about the organization"
195
195
  )
196
196
  }).describe("The workspace's organization details");
197
+ var MODE_OPTIONS = ["development", "staging", "production"];
197
198
  var stormWorkspaceConfigSchema = z.object({
198
199
  $schema: z.string().trim().default(
199
200
  "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
@@ -210,12 +211,12 @@ var stormWorkspaceConfigSchema = z.object({
210
211
  ),
211
212
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
212
213
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
213
- homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
214
- docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
215
- portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
216
- licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
217
- contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
218
- support: z.string().trim().url().optional().describe(
214
+ homepage: z.url().optional().describe("The homepage of the workspace"),
215
+ docs: z.url().optional().describe("The documentation site for the workspace"),
216
+ portal: z.url().optional().describe("The development portal site for the workspace"),
217
+ licensing: z.url().optional().describe("The licensing site for the workspace"),
218
+ contact: z.url().optional().describe("The contact site for the workspace"),
219
+ support: z.url().optional().describe(
219
220
  "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
220
221
  ),
221
222
  branch: z.string().trim().default("main").describe("The branch of the workspace"),
@@ -225,7 +226,7 @@ var stormWorkspaceConfigSchema = z.object({
225
226
  release: WorkspaceReleaseConfigSchema,
226
227
  socials: WorkspaceSocialsConfigSchema,
227
228
  error: errorConfigSchema,
228
- mode: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
229
+ mode: z.enum(MODE_OPTIONS).prefault("production").describe("The current runtime environment mode for the package"),
229
230
  workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
230
231
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
231
232
  directories: WorkspaceDirectoryConfigSchema,
@@ -21,7 +21,7 @@
21
21
 
22
22
 
23
23
 
24
- var _chunkOCC7OKQIcjs = require('./chunk-OCC7OKQI.cjs');
24
+ var _chunkVQUVTOBMcjs = require('./chunk-VQUVTOBM.cjs');
25
25
 
26
26
 
27
27
  var _chunk65E5RX7Icjs = require('./chunk-65E5RX7I.cjs');
@@ -81,9 +81,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
81
81
  output: "src/"
82
82
  });
83
83
  }
84
- _chunkOCC7OKQIcjs.writeTrace.call(void 0,
84
+ _chunkVQUVTOBMcjs.writeTrace.call(void 0,
85
85
  `\u{1F4DD} Copying the following assets to the output directory:
86
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkOCC7OKQIcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
86
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkVQUVTOBMcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
87
87
  config
88
88
  );
89
89
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
@@ -93,20 +93,20 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
93
93
  assets: pendingAssets
94
94
  });
95
95
  await assetHandler.processAllAssetsOnce();
96
- _chunkOCC7OKQIcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
96
+ _chunkVQUVTOBMcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
97
97
  if (includeSrc === true) {
98
- _chunkOCC7OKQIcjs.writeDebug.call(void 0,
99
- `\u{1F4DD} Adding banner and writing source files: ${_chunkOCC7OKQIcjs.joinPaths.call(void 0,
98
+ _chunkVQUVTOBMcjs.writeDebug.call(void 0,
99
+ `\u{1F4DD} Adding banner and writing source files: ${_chunkVQUVTOBMcjs.joinPaths.call(void 0,
100
100
  outputPath,
101
101
  "src"
102
102
  )}`,
103
103
  config
104
104
  );
105
105
  const files = await _glob.glob.call(void 0, [
106
- _chunkOCC7OKQIcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
107
- _chunkOCC7OKQIcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
108
- _chunkOCC7OKQIcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
109
- _chunkOCC7OKQIcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
106
+ _chunkVQUVTOBMcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
107
+ _chunkVQUVTOBMcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
108
+ _chunkVQUVTOBMcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
109
+ _chunkVQUVTOBMcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
110
110
  ]);
111
111
  await Promise.allSettled(
112
112
  files.map(
@@ -161,7 +161,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
161
161
  )) {
162
162
  const projectNode = project.node;
163
163
  if (projectNode.data.root) {
164
- const projectPackageJsonPath = _chunkOCC7OKQIcjs.joinPaths.call(void 0,
164
+ const projectPackageJsonPath = _chunkVQUVTOBMcjs.joinPaths.call(void 0,
165
165
  workspaceRoot,
166
166
  projectNode.data.root,
167
167
  "package.json"
@@ -179,11 +179,11 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
179
179
  }
180
180
  }
181
181
  if (localPackages.length > 0) {
182
- _chunkOCC7OKQIcjs.writeTrace.call(void 0,
182
+ _chunkVQUVTOBMcjs.writeTrace.call(void 0,
183
183
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
184
184
  );
185
185
  const projectJsonFile = await _promises.readFile.call(void 0,
186
- _chunkOCC7OKQIcjs.joinPaths.call(void 0, projectRoot, "project.json"),
186
+ _chunkVQUVTOBMcjs.joinPaths.call(void 0, projectRoot, "project.json"),
187
187
  "utf8"
188
188
  );
189
189
  const projectJson = JSON.parse(projectJsonFile);
@@ -196,7 +196,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
196
196
  }
197
197
  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) => {
198
198
  if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
199
- const depPackageJsonPath = _chunkOCC7OKQIcjs.joinPaths.call(void 0,
199
+ const depPackageJsonPath = _chunkVQUVTOBMcjs.joinPaths.call(void 0,
200
200
  workspaceRoot,
201
201
  projectConfigurations.projects[dep].root,
202
202
  "package.json"
@@ -227,14 +227,14 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
227
227
  return ret;
228
228
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
229
229
  } else {
230
- _chunkOCC7OKQIcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
230
+ _chunkVQUVTOBMcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
231
231
  }
232
232
  return packageJson;
233
233
  };
234
234
  var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
235
- const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkOCC7OKQIcjs.findWorkspaceRoot.call(void 0, );
235
+ const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkVQUVTOBMcjs.findWorkspaceRoot.call(void 0, );
236
236
  const workspacePackageJsonContent = await _promises.readFile.call(void 0,
237
- _chunkOCC7OKQIcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
237
+ _chunkVQUVTOBMcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
238
238
  "utf8"
239
239
  );
240
240
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
@@ -245,7 +245,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
245
245
  if (distSrc.startsWith("/")) {
246
246
  distSrc = distSrc.substring(1);
247
247
  }
248
- packageJson.source ??= `${_chunkOCC7OKQIcjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
248
+ packageJson.source ??= `${_chunkVQUVTOBMcjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
249
249
  }
250
250
  packageJson.files ??= ["dist/**/*"];
251
251
  if (includeSrc === true && !packageJson.files.includes("src")) {
@@ -270,7 +270,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
270
270
  packageJson.contributors = [packageJson.author];
271
271
  }
272
272
  packageJson.repository ??= workspacePackageJson.repository;
273
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkOCC7OKQIcjs.joinPaths.call(void 0, "packages", projectName);
273
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkVQUVTOBMcjs.joinPaths.call(void 0, "packages", projectName);
274
274
  return packageJson;
275
275
  };
276
276
  var addPackageJsonExport = (file, type = "module", sourceRoot) => {
@@ -298,7 +298,7 @@ var addPackageJsonExport = (file, type = "module", sourceRoot) => {
298
298
  var _c12 = require('c12');
299
299
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
300
300
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
301
- const workspacePath = filePath || _chunkOCC7OKQIcjs.findWorkspaceRoot.call(void 0, filePath);
301
+ const workspacePath = filePath || _chunkVQUVTOBMcjs.findWorkspaceRoot.call(void 0, filePath);
302
302
  const configs = await Promise.all([
303
303
  _c12.loadConfig.call(void 0, {
304
304
  cwd: workspacePath,
@@ -307,7 +307,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
307
307
  envName: _optionalChain([fileName, 'optionalAccess', _24 => _24.toUpperCase, 'call', _25 => _25()]),
308
308
  jitiOptions: {
309
309
  debug: false,
310
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkOCC7OKQIcjs.joinPaths.call(void 0,
310
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkVQUVTOBMcjs.joinPaths.call(void 0,
311
311
  process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
312
312
  "jiti"
313
313
  )
@@ -321,7 +321,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
321
321
  envName: _optionalChain([fileName, 'optionalAccess', _26 => _26.toUpperCase, 'call', _27 => _27()]),
322
322
  jitiOptions: {
323
323
  debug: false,
324
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkOCC7OKQIcjs.joinPaths.call(void 0,
324
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkVQUVTOBMcjs.joinPaths.call(void 0,
325
325
  process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
326
326
  "jiti"
327
327
  )
@@ -333,12 +333,12 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
333
333
  return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
334
334
  };
335
335
  var getConfigFile = async (filePath, additionalFileNames = []) => {
336
- const workspacePath = filePath ? filePath : _chunkOCC7OKQIcjs.findWorkspaceRoot.call(void 0, filePath);
336
+ const workspacePath = filePath ? filePath : _chunkVQUVTOBMcjs.findWorkspaceRoot.call(void 0, filePath);
337
337
  const result = await getConfigFileByName("storm-workspace", workspacePath);
338
338
  let config = result.config;
339
339
  const configFile = result.configFile;
340
340
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
341
- _chunkOCC7OKQIcjs.writeTrace.call(void 0,
341
+ _chunkVQUVTOBMcjs.writeTrace.call(void 0,
342
342
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
343
343
  {
344
344
  logLevel: "all"
@@ -354,7 +354,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
354
354
  for (const result2 of results) {
355
355
  if (_optionalChain([result2, 'optionalAccess', _28 => _28.config]) && _optionalChain([result2, 'optionalAccess', _29 => _29.configFile]) && Object.keys(result2.config).length > 0) {
356
356
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
357
- _chunkOCC7OKQIcjs.writeTrace.call(void 0,
357
+ _chunkVQUVTOBMcjs.writeTrace.call(void 0,
358
358
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
359
359
  {
360
360
  logLevel: "all"
@@ -433,15 +433,15 @@ var getConfigEnv = () => {
433
433
  support: process.env[`${prefix}SUPPORT`] || void 0,
434
434
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
435
435
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
436
- configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkOCC7OKQIcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
437
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkOCC7OKQIcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
436
+ configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkVQUVTOBMcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
437
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkVQUVTOBMcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
438
438
  directories: {
439
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkOCC7OKQIcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkOCC7OKQIcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
440
- data: process.env[`${prefix}DATA_DIR`] ? _chunkOCC7OKQIcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkOCC7OKQIcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
441
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkOCC7OKQIcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkOCC7OKQIcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
442
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkOCC7OKQIcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkOCC7OKQIcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
443
- log: process.env[`${prefix}LOG_DIR`] ? _chunkOCC7OKQIcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkOCC7OKQIcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
444
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkOCC7OKQIcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkOCC7OKQIcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
439
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunkVQUVTOBMcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkVQUVTOBMcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
440
+ data: process.env[`${prefix}DATA_DIR`] ? _chunkVQUVTOBMcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkVQUVTOBMcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
441
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunkVQUVTOBMcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkVQUVTOBMcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
442
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunkVQUVTOBMcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkVQUVTOBMcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
443
+ log: process.env[`${prefix}LOG_DIR`] ? _chunkVQUVTOBMcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkVQUVTOBMcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
444
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunkVQUVTOBMcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkVQUVTOBMcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
445
445
  },
446
446
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
447
447
  mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -465,13 +465,13 @@ var getConfigEnv = () => {
465
465
  },
466
466
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
467
467
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
468
- ) ? _chunkOCC7OKQIcjs.getLogLevelLabel.call(void 0,
468
+ ) ? _chunkVQUVTOBMcjs.getLogLevelLabel.call(void 0,
469
469
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
470
470
  ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
471
471
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
472
472
  };
473
473
  const themeNames = Object.keys(process.env).filter(
474
- (envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkOCC7OKQIcjs.COLOR_KEYS.every(
474
+ (envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkVQUVTOBMcjs.COLOR_KEYS.every(
475
475
  (colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
476
476
  )
477
477
  );
@@ -482,16 +482,16 @@ var getConfigEnv = () => {
482
482
  },
483
483
  {}
484
484
  ) : getThemeColorConfigEnv(prefix);
485
- if (config.docs === _chunkOCC7OKQIcjs.STORM_DEFAULT_DOCS) {
486
- if (config.homepage === _chunkOCC7OKQIcjs.STORM_DEFAULT_HOMEPAGE) {
487
- config.docs = `${_chunkOCC7OKQIcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
485
+ if (config.docs === _chunkVQUVTOBMcjs.STORM_DEFAULT_DOCS) {
486
+ if (config.homepage === _chunkVQUVTOBMcjs.STORM_DEFAULT_HOMEPAGE) {
487
+ config.docs = `${_chunkVQUVTOBMcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
488
488
  } else {
489
489
  config.docs = `${config.homepage}/docs`;
490
490
  }
491
491
  }
492
- if (config.licensing === _chunkOCC7OKQIcjs.STORM_DEFAULT_LICENSING) {
493
- if (config.homepage === _chunkOCC7OKQIcjs.STORM_DEFAULT_HOMEPAGE) {
494
- config.licensing = `${_chunkOCC7OKQIcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
492
+ if (config.licensing === _chunkVQUVTOBMcjs.STORM_DEFAULT_LICENSING) {
493
+ if (config.homepage === _chunkVQUVTOBMcjs.STORM_DEFAULT_HOMEPAGE) {
494
+ config.licensing = `${_chunkVQUVTOBMcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
495
495
  } else {
496
496
  config.licensing = `${config.homepage}/docs`;
497
497
  }
@@ -692,40 +692,40 @@ var setConfigEnv = (config) => {
692
692
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
693
693
  }
694
694
  if (config.configFile) {
695
- process.env[`${prefix}CONFIG_FILE`] = _chunkOCC7OKQIcjs.correctPaths.call(void 0, config.configFile);
695
+ process.env[`${prefix}CONFIG_FILE`] = _chunkVQUVTOBMcjs.correctPaths.call(void 0, config.configFile);
696
696
  }
697
697
  if (config.workspaceRoot) {
698
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkOCC7OKQIcjs.correctPaths.call(void 0, config.workspaceRoot);
699
- process.env.NX_WORKSPACE_ROOT = _chunkOCC7OKQIcjs.correctPaths.call(void 0, config.workspaceRoot);
700
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkOCC7OKQIcjs.correctPaths.call(void 0, config.workspaceRoot);
698
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunkVQUVTOBMcjs.correctPaths.call(void 0, config.workspaceRoot);
699
+ process.env.NX_WORKSPACE_ROOT = _chunkVQUVTOBMcjs.correctPaths.call(void 0, config.workspaceRoot);
700
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunkVQUVTOBMcjs.correctPaths.call(void 0, config.workspaceRoot);
701
701
  }
702
702
  if (config.directories) {
703
703
  if (!config.skipCache && config.directories.cache) {
704
- process.env[`${prefix}CACHE_DIR`] = _chunkOCC7OKQIcjs.correctPaths.call(void 0,
704
+ process.env[`${prefix}CACHE_DIR`] = _chunkVQUVTOBMcjs.correctPaths.call(void 0,
705
705
  config.directories.cache
706
706
  );
707
707
  process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
708
708
  }
709
709
  if (config.directories.data) {
710
- process.env[`${prefix}DATA_DIR`] = _chunkOCC7OKQIcjs.correctPaths.call(void 0, config.directories.data);
710
+ process.env[`${prefix}DATA_DIR`] = _chunkVQUVTOBMcjs.correctPaths.call(void 0, config.directories.data);
711
711
  process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
712
712
  }
713
713
  if (config.directories.config) {
714
- process.env[`${prefix}CONFIG_DIR`] = _chunkOCC7OKQIcjs.correctPaths.call(void 0,
714
+ process.env[`${prefix}CONFIG_DIR`] = _chunkVQUVTOBMcjs.correctPaths.call(void 0,
715
715
  config.directories.config
716
716
  );
717
717
  process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
718
718
  }
719
719
  if (config.directories.temp) {
720
- process.env[`${prefix}TEMP_DIR`] = _chunkOCC7OKQIcjs.correctPaths.call(void 0, config.directories.temp);
720
+ process.env[`${prefix}TEMP_DIR`] = _chunkVQUVTOBMcjs.correctPaths.call(void 0, config.directories.temp);
721
721
  process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
722
722
  }
723
723
  if (config.directories.log) {
724
- process.env[`${prefix}LOG_DIR`] = _chunkOCC7OKQIcjs.correctPaths.call(void 0, config.directories.log);
724
+ process.env[`${prefix}LOG_DIR`] = _chunkVQUVTOBMcjs.correctPaths.call(void 0, config.directories.log);
725
725
  process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
726
726
  }
727
727
  if (config.directories.build) {
728
- process.env[`${prefix}BUILD_DIR`] = _chunkOCC7OKQIcjs.correctPaths.call(void 0,
728
+ process.env[`${prefix}BUILD_DIR`] = _chunkVQUVTOBMcjs.correctPaths.call(void 0,
729
729
  config.directories.build
730
730
  );
731
731
  process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
@@ -787,9 +787,9 @@ var setConfigEnv = (config) => {
787
787
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
788
788
  process.env.LOG_LEVEL = String(config.logLevel);
789
789
  process.env.NX_VERBOSE_LOGGING = String(
790
- _chunkOCC7OKQIcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkOCC7OKQIcjs.LogLevel.DEBUG ? true : false
790
+ _chunkVQUVTOBMcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkVQUVTOBMcjs.LogLevel.DEBUG ? true : false
791
791
  );
792
- process.env.RUST_BACKTRACE = _chunkOCC7OKQIcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkOCC7OKQIcjs.LogLevel.DEBUG ? "full" : "none";
792
+ process.env.RUST_BACKTRACE = _chunkVQUVTOBMcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkVQUVTOBMcjs.LogLevel.DEBUG ? "full" : "none";
793
793
  }
794
794
  if (config.skipConfigLogging !== void 0) {
795
795
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
@@ -909,13 +909,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
909
909
  if (!_optionalChain([_static_cache, 'optionalAccess', _52 => _52.data]) || !_optionalChain([_static_cache, 'optionalAccess', _53 => _53.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
910
910
  let _workspaceRoot = workspaceRoot;
911
911
  if (!_workspaceRoot) {
912
- _workspaceRoot = _chunkOCC7OKQIcjs.findWorkspaceRoot.call(void 0, );
912
+ _workspaceRoot = _chunkVQUVTOBMcjs.findWorkspaceRoot.call(void 0, );
913
913
  }
914
914
  const configEnv = getConfigEnv();
915
915
  const configFile = await getConfigFile(_workspaceRoot);
916
916
  if (!configFile) {
917
917
  if (!skipLogs) {
918
- _chunkOCC7OKQIcjs.writeWarning.call(void 0,
918
+ _chunkVQUVTOBMcjs.writeWarning.call(void 0,
919
919
  "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",
920
920
  { logLevel: "all" }
921
921
  );
@@ -924,22 +924,22 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
924
924
  return void 0;
925
925
  }
926
926
  }
927
- const defaultConfig = await _chunkOCC7OKQIcjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
927
+ const defaultConfig = await _chunkVQUVTOBMcjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
928
928
  const configInput = _defu2.default.call(void 0,
929
929
  configEnv,
930
930
  configFile,
931
931
  defaultConfig
932
932
  );
933
933
  try {
934
- result = _chunkOCC7OKQIcjs.applyDefaultConfig.call(void 0,
935
- await _chunkOCC7OKQIcjs.stormWorkspaceConfigSchema.parseAsync(configInput)
934
+ result = _chunkVQUVTOBMcjs.applyDefaultConfig.call(void 0,
935
+ await _chunkVQUVTOBMcjs.stormWorkspaceConfigSchema.parseAsync(configInput)
936
936
  );
937
937
  result.workspaceRoot ??= _workspaceRoot;
938
938
  } catch (error) {
939
939
  throw new Error(
940
940
  `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _54 => _54.message]) ? `: ${error.message}` : ""}
941
941
 
942
- Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkOCC7OKQIcjs.formatLogMessage.call(void 0,
942
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkVQUVTOBMcjs.formatLogMessage.call(void 0,
943
943
  configInput
944
944
  )}`,
945
945
  {
@@ -984,9 +984,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
984
984
  );
985
985
  setConfigEnv(config);
986
986
  if (!skipLogs && !config.skipConfigLogging) {
987
- _chunkOCC7OKQIcjs.writeTrace.call(void 0,
987
+ _chunkVQUVTOBMcjs.writeTrace.call(void 0,
988
988
  `\u2699\uFE0F Using Storm Workspace configuration:
989
- ${_chunkOCC7OKQIcjs.formatLogMessage.call(void 0, config)}`,
989
+ ${_chunkVQUVTOBMcjs.formatLogMessage.call(void 0, config)}`,
990
990
  config
991
991
  );
992
992
  }
@@ -1001,7 +1001,7 @@ var getConfig = (workspaceRoot, skipLogs = false) => {
1001
1001
  // ../build-tools/src/utilities/get-entry-points.ts
1002
1002
 
1003
1003
  var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
1004
- const workspaceRoot = config.workspaceRoot || _chunkOCC7OKQIcjs.findWorkspaceRoot.call(void 0, );
1004
+ const workspaceRoot = config.workspaceRoot || _chunkVQUVTOBMcjs.findWorkspaceRoot.call(void 0, );
1005
1005
  const entryPoints = [];
1006
1006
  if (entry) {
1007
1007
  if (typeof entry === "string") {
@@ -1014,7 +1014,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
1014
1014
  }
1015
1015
  if (emitOnAll) {
1016
1016
  entryPoints.push(
1017
- _chunkOCC7OKQIcjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}")
1017
+ _chunkVQUVTOBMcjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}")
1018
1018
  );
1019
1019
  }
1020
1020
  const results = await Promise.all(
@@ -1027,12 +1027,12 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
1027
1027
  });
1028
1028
  paths.push(
1029
1029
  ...files.reduce((ret, filePath) => {
1030
- const result = _chunkOCC7OKQIcjs.correctPaths.call(void 0,
1031
- _chunkOCC7OKQIcjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkOCC7OKQIcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkOCC7OKQIcjs.correctPaths.call(void 0, projectRoot), "")
1030
+ const result = _chunkVQUVTOBMcjs.correctPaths.call(void 0,
1031
+ _chunkVQUVTOBMcjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkVQUVTOBMcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkVQUVTOBMcjs.correctPaths.call(void 0, projectRoot), "")
1032
1032
  );
1033
1033
  if (result) {
1034
- _chunkOCC7OKQIcjs.writeDebug.call(void 0,
1035
- `Trying to add entry point ${result} at "${_chunkOCC7OKQIcjs.joinPaths.call(void 0,
1034
+ _chunkVQUVTOBMcjs.writeDebug.call(void 0,
1035
+ `Trying to add entry point ${result} at "${_chunkVQUVTOBMcjs.joinPaths.call(void 0,
1036
1036
  filePath.path,
1037
1037
  filePath.name
1038
1038
  )}"`,
@@ -1046,7 +1046,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
1046
1046
  }, [])
1047
1047
  );
1048
1048
  } else {
1049
- _chunkOCC7OKQIcjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
1049
+ _chunkVQUVTOBMcjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
1050
1050
  if (!paths.includes(entryPoint)) {
1051
1051
  paths.push(entryPoint);
1052
1052
  }
@@ -1101,12 +1101,12 @@ var resolveOptions = async (userOptions) => {
1101
1101
  throw new Error("Cannot find Nx workspace root");
1102
1102
  }
1103
1103
  const config = await getConfig(workspaceRoot.dir);
1104
- _chunkOCC7OKQIcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1105
- const stopwatch = _chunkOCC7OKQIcjs.getStopwatch.call(void 0, "Build options resolution");
1104
+ _chunkVQUVTOBMcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1105
+ const stopwatch = _chunkVQUVTOBMcjs.getStopwatch.call(void 0, "Build options resolution");
1106
1106
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1107
1107
  exitOnError: true
1108
1108
  });
1109
- const projectJsonPath = _chunkOCC7OKQIcjs.joinPaths.call(void 0,
1109
+ const projectJsonPath = _chunkVQUVTOBMcjs.joinPaths.call(void 0,
1110
1110
  workspaceRoot.dir,
1111
1111
  projectRoot,
1112
1112
  "project.json"
@@ -1126,7 +1126,7 @@ var resolveOptions = async (userOptions) => {
1126
1126
  const options = _defu2.default.call(void 0, userOptions, _chunk65E5RX7Icjs.DEFAULT_BUILD_OPTIONS);
1127
1127
  options.name ??= `${projectName}-${options.format}`;
1128
1128
  options.target ??= DEFAULT_TARGET;
1129
- const packageJsonPath = _chunkOCC7OKQIcjs.joinPaths.call(void 0,
1129
+ const packageJsonPath = _chunkVQUVTOBMcjs.joinPaths.call(void 0,
1130
1130
  workspaceRoot.dir,
1131
1131
  options.projectRoot,
1132
1132
  "package.json"
@@ -1139,7 +1139,7 @@ var resolveOptions = async (userOptions) => {
1139
1139
  ...options,
1140
1140
  config,
1141
1141
  ...userOptions,
1142
- tsconfig: _chunkOCC7OKQIcjs.joinPaths.call(void 0,
1142
+ tsconfig: _chunkVQUVTOBMcjs.joinPaths.call(void 0,
1143
1143
  projectRoot,
1144
1144
  userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"
1145
1145
  ),
@@ -1151,15 +1151,15 @@ var resolveOptions = async (userOptions) => {
1151
1151
  userOptions.entry || ["./src/index.ts"],
1152
1152
  userOptions.emitOnAll
1153
1153
  ),
1154
- outdir: userOptions.outputPath || _chunkOCC7OKQIcjs.joinPaths.call(void 0, "dist", projectRoot),
1154
+ outdir: userOptions.outputPath || _chunkVQUVTOBMcjs.joinPaths.call(void 0, "dist", projectRoot),
1155
1155
  plugins: [],
1156
1156
  name: userOptions.name || projectName,
1157
1157
  projectConfigurations,
1158
1158
  projectName,
1159
1159
  projectGraph,
1160
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkOCC7OKQIcjs.joinPaths.call(void 0, projectRoot, "src"),
1160
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkVQUVTOBMcjs.joinPaths.call(void 0, projectRoot, "src"),
1161
1161
  minify: userOptions.minify || !userOptions.debug,
1162
- verbose: userOptions.verbose || _chunkOCC7OKQIcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1162
+ verbose: userOptions.verbose || _chunkVQUVTOBMcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1163
1163
  includeSrc: userOptions.includeSrc === true,
1164
1164
  metafile: userOptions.metafile !== false,
1165
1165
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1191,15 +1191,15 @@ var resolveOptions = async (userOptions) => {
1191
1191
  return result;
1192
1192
  };
1193
1193
  async function generatePackageJson(options) {
1194
- if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkOCC7OKQIcjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1195
- _chunkOCC7OKQIcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1196
- const stopwatch = _chunkOCC7OKQIcjs.getStopwatch.call(void 0, "Write package.json file");
1197
- const packageJsonPath = _chunkOCC7OKQIcjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1194
+ if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkVQUVTOBMcjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1195
+ _chunkVQUVTOBMcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1196
+ const stopwatch = _chunkVQUVTOBMcjs.getStopwatch.call(void 0, "Write package.json file");
1197
+ const packageJsonPath = _chunkVQUVTOBMcjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1198
1198
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1199
1199
  throw new Error("Cannot find package.json configuration");
1200
1200
  }
1201
1201
  const packageJsonFile = await _promises2.default.readFile(
1202
- _chunkOCC7OKQIcjs.joinPaths.call(void 0,
1202
+ _chunkVQUVTOBMcjs.joinPaths.call(void 0,
1203
1203
  options.config.workspaceRoot,
1204
1204
  options.projectRoot,
1205
1205
  "package.json"
@@ -1261,14 +1261,14 @@ async function generatePackageJson(options) {
1261
1261
  },
1262
1262
  packageJson.exports
1263
1263
  );
1264
- await _devkit.writeJsonFile.call(void 0, _chunkOCC7OKQIcjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1264
+ await _devkit.writeJsonFile.call(void 0, _chunkVQUVTOBMcjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1265
1265
  stopwatch();
1266
1266
  }
1267
1267
  return options;
1268
1268
  }
1269
1269
  async function executeTSDown(options) {
1270
- _chunkOCC7OKQIcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1271
- const stopwatch = _chunkOCC7OKQIcjs.getStopwatch.call(void 0, `${options.name} build`);
1270
+ _chunkVQUVTOBMcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1271
+ const stopwatch = _chunkVQUVTOBMcjs.getStopwatch.call(void 0, `${options.name} build`);
1272
1272
  await _tsdown.build.call(void 0, {
1273
1273
  ...options,
1274
1274
  entry: options.entryPoints,
@@ -1279,11 +1279,11 @@ async function executeTSDown(options) {
1279
1279
  return options;
1280
1280
  }
1281
1281
  async function copyBuildAssets(options) {
1282
- _chunkOCC7OKQIcjs.writeDebug.call(void 0,
1282
+ _chunkVQUVTOBMcjs.writeDebug.call(void 0,
1283
1283
  ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`,
1284
1284
  options.config
1285
1285
  );
1286
- const stopwatch = _chunkOCC7OKQIcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1286
+ const stopwatch = _chunkVQUVTOBMcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1287
1287
  await copyAssets(
1288
1288
  options.config,
1289
1289
  _nullishCoalesce(options.assets, () => ( [])),
@@ -1297,26 +1297,26 @@ async function copyBuildAssets(options) {
1297
1297
  return options;
1298
1298
  }
1299
1299
  async function reportResults(options) {
1300
- _chunkOCC7OKQIcjs.writeSuccess.call(void 0,
1300
+ _chunkVQUVTOBMcjs.writeSuccess.call(void 0,
1301
1301
  ` \u{1F4E6} The ${options.name} build completed successfully`,
1302
1302
  options.config
1303
1303
  );
1304
1304
  }
1305
1305
  async function cleanOutputPath(options) {
1306
1306
  if (options.clean !== false && options.outdir) {
1307
- _chunkOCC7OKQIcjs.writeDebug.call(void 0,
1307
+ _chunkVQUVTOBMcjs.writeDebug.call(void 0,
1308
1308
  ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`,
1309
1309
  options.config
1310
1310
  );
1311
- const stopwatch = _chunkOCC7OKQIcjs.getStopwatch.call(void 0, `${options.name} output clean`);
1312
- await _chunkOCC7OKQIcjs.cleanDirectories.call(void 0, options.name, options.outdir, options.config);
1311
+ const stopwatch = _chunkVQUVTOBMcjs.getStopwatch.call(void 0, `${options.name} output clean`);
1312
+ await _chunkVQUVTOBMcjs.cleanDirectories.call(void 0, options.name, options.outdir, options.config);
1313
1313
  stopwatch();
1314
1314
  }
1315
1315
  return options;
1316
1316
  }
1317
1317
  async function build(options) {
1318
- _chunkOCC7OKQIcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1319
- const stopwatch = _chunkOCC7OKQIcjs.getStopwatch.call(void 0, "TSDown pipeline");
1318
+ _chunkVQUVTOBMcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1319
+ const stopwatch = _chunkVQUVTOBMcjs.getStopwatch.call(void 0, "TSDown pipeline");
1320
1320
  try {
1321
1321
  const opts = Array.isArray(options) ? options : [options];
1322
1322
  if (opts.length === 0) {
@@ -1336,13 +1336,13 @@ async function build(options) {
1336
1336
  })
1337
1337
  );
1338
1338
  } else {
1339
- _chunkOCC7OKQIcjs.writeWarning.call(void 0,
1339
+ _chunkVQUVTOBMcjs.writeWarning.call(void 0,
1340
1340
  " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
1341
1341
  );
1342
1342
  }
1343
- _chunkOCC7OKQIcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1343
+ _chunkVQUVTOBMcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1344
1344
  } catch (error) {
1345
- _chunkOCC7OKQIcjs.writeFatal.call(void 0,
1345
+ _chunkVQUVTOBMcjs.writeFatal.call(void 0,
1346
1346
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated."
1347
1347
  );
1348
1348
  throw error;
@@ -21,7 +21,7 @@ import {
21
21
  writeSuccess,
22
22
  writeTrace,
23
23
  writeWarning
24
- } from "./chunk-CHQ3CQ4X.js";
24
+ } from "./chunk-F23CJDQC.js";
25
25
  import {
26
26
  DEFAULT_BUILD_OPTIONS
27
27
  } from "./chunk-2YE3GBQH.js";
@@ -111,7 +111,7 @@ var SingleThemeColorConfigSchema = z.object({
111
111
  positive: PositiveColorSchema,
112
112
  negative: NegativeColorSchema
113
113
  });
114
- var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
114
+ var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
115
115
  var RegistryConfigSchema = z.object({
116
116
  github: RegistryUrlConfigSchema,
117
117
  npm: RegistryUrlConfigSchema,
@@ -138,7 +138,7 @@ var WorkspaceBotConfigSchema = z.object({
138
138
  name: z.string().trim().default("stormie-bot").describe(
139
139
  "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
140
140
  ),
141
- email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
141
+ email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
142
142
  }).describe(
143
143
  "The workspace's bot user's config used to automated various operations tasks"
144
144
  );
@@ -181,19 +181,20 @@ var WorkspaceDirectoryConfigSchema = z.object({
181
181
  );
182
182
  var errorConfigSchema = z.object({
183
183
  codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
184
- url: z.string().trim().url().optional().describe(
184
+ url: z.url().optional().describe(
185
185
  "A URL to a page that looks up the workspace's error messages given a specific error code"
186
186
  )
187
187
  }).describe("The workspace's error config used during the error process");
188
188
  var organizationConfigSchema = z.object({
189
189
  name: z.string().trim().describe("The name of the organization"),
190
190
  description: z.string().trim().optional().describe("A description of the organization"),
191
- logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
192
- icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
193
- url: z.string().trim().url().optional().describe(
191
+ logo: z.url().optional().describe("A URL to the organization's logo image"),
192
+ icon: z.url().optional().describe("A URL to the organization's icon image"),
193
+ url: z.url().optional().describe(
194
194
  "A URL to a page that provides more information about the organization"
195
195
  )
196
196
  }).describe("The workspace's organization details");
197
+ var MODE_OPTIONS = ["development", "staging", "production"];
197
198
  var stormWorkspaceConfigSchema = z.object({
198
199
  $schema: z.string().trim().default(
199
200
  "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
@@ -210,12 +211,12 @@ var stormWorkspaceConfigSchema = z.object({
210
211
  ),
211
212
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
212
213
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
213
- homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
214
- docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
215
- portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
216
- licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
217
- contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
218
- support: z.string().trim().url().optional().describe(
214
+ homepage: z.url().optional().describe("The homepage of the workspace"),
215
+ docs: z.url().optional().describe("The documentation site for the workspace"),
216
+ portal: z.url().optional().describe("The development portal site for the workspace"),
217
+ licensing: z.url().optional().describe("The licensing site for the workspace"),
218
+ contact: z.url().optional().describe("The contact site for the workspace"),
219
+ support: z.url().optional().describe(
219
220
  "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
220
221
  ),
221
222
  branch: z.string().trim().default("main").describe("The branch of the workspace"),
@@ -225,7 +226,7 @@ var stormWorkspaceConfigSchema = z.object({
225
226
  release: WorkspaceReleaseConfigSchema,
226
227
  socials: WorkspaceSocialsConfigSchema,
227
228
  error: errorConfigSchema,
228
- mode: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
229
+ mode: z.enum(MODE_OPTIONS).prefault("production").describe("The current runtime environment mode for the package"),
229
230
  workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
230
231
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
231
232
  directories: WorkspaceDirectoryConfigSchema,
package/dist/clean.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOCC7OKQIcjs = require('./chunk-OCC7OKQI.cjs');
4
+ var _chunkVQUVTOBMcjs = require('./chunk-VQUVTOBM.cjs');
5
5
 
6
6
 
7
7
 
8
- exports.clean = _chunkOCC7OKQIcjs.clean; exports.cleanDirectories = _chunkOCC7OKQIcjs.cleanDirectories;
8
+ exports.clean = _chunkVQUVTOBMcjs.clean; exports.cleanDirectories = _chunkVQUVTOBMcjs.cleanDirectories;
package/dist/clean.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-CHQ3CQ4X.js";
4
+ } from "./chunk-F23CJDQC.js";
5
5
  export {
6
6
  clean,
7
7
  cleanDirectories
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkKRIY4VZWcjs = require('./chunk-KRIY4VZW.cjs');
4
+ var _chunkGCWQGMYRcjs = require('./chunk-GCWQGMYR.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkOCC7OKQIcjs = require('./chunk-OCC7OKQI.cjs');
8
+ var _chunkVQUVTOBMcjs = require('./chunk-VQUVTOBM.cjs');
9
9
 
10
10
 
11
11
  var _chunk65E5RX7Icjs = require('./chunk-65E5RX7I.cjs');
@@ -16,4 +16,4 @@ require('./chunk-ZBPRDZS4.cjs');
16
16
 
17
17
 
18
18
 
19
- exports.DEFAULT_BUILD_OPTIONS = _chunk65E5RX7Icjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunkKRIY4VZWcjs.build; exports.clean = _chunkOCC7OKQIcjs.clean; exports.cleanDirectories = _chunkOCC7OKQIcjs.cleanDirectories; exports.cleanOutputPath = _chunkKRIY4VZWcjs.cleanOutputPath;
19
+ exports.DEFAULT_BUILD_OPTIONS = _chunk65E5RX7Icjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunkGCWQGMYRcjs.build; exports.clean = _chunkVQUVTOBMcjs.clean; exports.cleanDirectories = _chunkVQUVTOBMcjs.cleanDirectories; exports.cleanOutputPath = _chunkGCWQGMYRcjs.cleanOutputPath;
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-2ZZRHMWO.js";
4
+ } from "./chunk-PE3XRYJ5.js";
5
5
  import {
6
6
  clean,
7
7
  cleanDirectories
8
- } from "./chunk-CHQ3CQ4X.js";
8
+ } from "./chunk-F23CJDQC.js";
9
9
  import {
10
10
  DEFAULT_BUILD_OPTIONS
11
11
  } from "./chunk-2YE3GBQH.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/tsdown",
3
- "version": "0.36.44",
3
+ "version": "0.36.45",
4
4
  "type": "module",
5
5
  "description": "A package containing `tsdown` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -150,8 +150,8 @@
150
150
  },
151
151
  "dependencies": {
152
152
  "@storm-software/build-tools": "^0.151.22",
153
- "@storm-software/config": "^1.125.8",
154
- "@storm-software/config-tools": "^1.176.9",
153
+ "@storm-software/config": "^1.125.9",
154
+ "@storm-software/config-tools": "^1.176.10",
155
155
  "chokidar": "^4.0.3",
156
156
  "commander": "^12.1.0",
157
157
  "es-toolkit": "^1.39.7",
@@ -174,5 +174,5 @@
174
174
  },
175
175
  "publishConfig": { "access": "public" },
176
176
  "sideEffects": false,
177
- "gitHead": "a8ed9927e278fdcef751286a496cea6a4727208a"
177
+ "gitHead": "ceaae9b6ba69f4bca0927a4d2e3084ee5fc4e71a"
178
178
  }