@storm-software/unbuild 0.49.19 → 0.49.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOUDGDVMGcjs = require('./chunk-OUDGDVMG.cjs');
3
+ var _chunkVHYQF3I6cjs = require('./chunk-VHYQF3I6.cjs');
4
4
 
5
5
  // src/plugins/analyze.ts
6
6
  var formatBytes = (bytes) => {
@@ -17,7 +17,7 @@ var analyzePlugin = (options) => {
17
17
  renderChunk(source, chunk) {
18
18
  const sourceBytes = formatBytes(source.length);
19
19
  const fileName = chunk.fileName;
20
- _chunkOUDGDVMGcjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
20
+ _chunkVHYQF3I6cjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
21
21
  }
22
22
  };
23
23
  };
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOUDGDVMGcjs = require('./chunk-OUDGDVMG.cjs');
4
+ var _chunkVHYQF3I6cjs = require('./chunk-VHYQF3I6.cjs');
5
5
 
6
6
  // src/clean.ts
7
7
  var _promises = require('fs/promises');
8
8
  async function clean(name = "Unbuild", directory, config) {
9
- _chunkOUDGDVMGcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
10
- const stopwatch = _chunkOUDGDVMGcjs.getStopwatch.call(void 0, `${name} output clean`);
9
+ _chunkVHYQF3I6cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
10
+ const stopwatch = _chunkVHYQF3I6cjs.getStopwatch.call(void 0, `${name} output clean`);
11
11
  await cleanDirectories(name, directory, config);
12
12
  stopwatch();
13
13
  }
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOUDGDVMGcjs = require('./chunk-OUDGDVMG.cjs');
3
+ var _chunkVHYQF3I6cjs = require('./chunk-VHYQF3I6.cjs');
4
4
 
5
5
  // src/plugins/on-error.ts
6
6
  var onErrorPlugin = (options) => ({
7
7
  name: "storm:on-error",
8
8
  buildEnd(error) {
9
9
  if (error) {
10
- _chunkOUDGDVMGcjs.writeError.call(void 0,
10
+ _chunkVHYQF3I6cjs.writeError.call(void 0,
11
11
  `The following errors occurred during the build:
12
12
  ${error ? error.message : "Unknown build error"}
13
13
 
@@ -18,7 +18,7 @@ ${error ? error.message : "Unknown build error"}
18
18
  }
19
19
  },
20
20
  renderError(error) {
21
- _chunkOUDGDVMGcjs.writeError.call(void 0,
21
+ _chunkVHYQF3I6cjs.writeError.call(void 0,
22
22
  `The following errors occurred during the build:
23
23
  ${error ? error.message : "Unknown build error"}
24
24
 
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkOUDGDVMGcjs = require('./chunk-OUDGDVMG.cjs');
3
+ var _chunkVHYQF3I6cjs = require('./chunk-VHYQF3I6.cjs');
4
4
 
5
5
  // src/plugins/tsc.ts
6
6
 
@@ -45,7 +45,7 @@ async function createTsCompilerOptions(config, tsConfigPath, projectRoot, depend
45
45
  declaration: true,
46
46
  paths: _buildablelibsutils.computeCompilerOptionsPaths.call(void 0, tsConfig, _nullishCoalesce(dependencies, () => ( [])))
47
47
  };
48
- _chunkOUDGDVMGcjs.writeTrace.call(void 0, compilerOptions, config);
48
+ _chunkVHYQF3I6cjs.writeTrace.call(void 0, compilerOptions, config);
49
49
  return compilerOptions;
50
50
  }
51
51
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeTrace
3
- } from "./chunk-KQH54774.js";
3
+ } from "./chunk-2JQ6EMAG.js";
4
4
 
5
5
  // src/plugins/tsc.ts
6
6
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeInfo
3
- } from "./chunk-KQH54774.js";
3
+ } from "./chunk-2JQ6EMAG.js";
4
4
 
5
5
  // src/plugins/analyze.ts
6
6
  var formatBytes = (bytes) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-KQH54774.js";
3
+ } from "./chunk-2JQ6EMAG.js";
4
4
 
5
5
  // src/plugins/on-error.ts
6
6
  var onErrorPlugin = (options) => ({
@@ -1,4 +1,4 @@
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; }// ../config-tools/src/types.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../config-tools/src/types.ts
2
2
  var LogLevel = {
3
3
  SILENT: 0,
4
4
  FATAL: 10,
@@ -225,22 +225,22 @@ If this sounds interesting, and you would like to help us in creating the next g
225
225
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
226
226
 
227
227
  // ../config/src/schema.ts
228
- var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
229
- var DarkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
230
- var LightColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
231
- var BrandColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
232
- var AlternateColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
233
- var AccentColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
234
- var LinkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
235
- var HelpColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
236
- var SuccessColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
237
- var InfoColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
238
- var WarningColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
239
- var DangerColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
240
- var FatalColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
241
- var PositiveColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
242
- var NegativeColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
243
- var DarkThemeColorConfigSchema = _zod2.default.object({
228
+ var _v4 = require('zod/v4'); var z = _interopRequireWildcard(_v4);
229
+ var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
230
+ var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
231
+ var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
232
+ var AlternateColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
233
+ var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
234
+ var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
235
+ var HelpColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
236
+ var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
237
+ var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
238
+ var WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
239
+ var DangerColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
240
+ var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
241
+ var PositiveColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
242
+ var NegativeColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
243
+ var DarkThemeColorConfigSchema = z.object({
244
244
  foreground: LightColorSchema,
245
245
  background: DarkColorSchema,
246
246
  brand: BrandColorSchema,
@@ -256,7 +256,7 @@ var DarkThemeColorConfigSchema = _zod2.default.object({
256
256
  positive: PositiveColorSchema,
257
257
  negative: NegativeColorSchema
258
258
  });
259
- var LightThemeColorConfigSchema = _zod2.default.object({
259
+ var LightThemeColorConfigSchema = z.object({
260
260
  foreground: DarkColorSchema,
261
261
  background: LightColorSchema,
262
262
  brand: BrandColorSchema,
@@ -272,11 +272,11 @@ var LightThemeColorConfigSchema = _zod2.default.object({
272
272
  positive: PositiveColorSchema,
273
273
  negative: NegativeColorSchema
274
274
  });
275
- var MultiThemeColorConfigSchema = _zod2.default.object({
275
+ var MultiThemeColorConfigSchema = z.object({
276
276
  dark: DarkThemeColorConfigSchema,
277
277
  light: LightThemeColorConfigSchema
278
278
  });
279
- var SingleThemeColorConfigSchema = _zod2.default.object({
279
+ var SingleThemeColorConfigSchema = z.object({
280
280
  dark: DarkColorSchema,
281
281
  light: LightColorSchema,
282
282
  brand: BrandColorSchema,
@@ -292,8 +292,8 @@ var SingleThemeColorConfigSchema = _zod2.default.object({
292
292
  positive: PositiveColorSchema,
293
293
  negative: NegativeColorSchema
294
294
  });
295
- var RegistryUrlConfigSchema = _zod2.default.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
296
- var RegistryConfigSchema = _zod2.default.object({
295
+ var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
296
+ var RegistryConfigSchema = z.object({
297
297
  github: RegistryUrlConfigSchema,
298
298
  npm: RegistryUrlConfigSchema,
299
299
  cargo: RegistryUrlConfigSchema,
@@ -303,111 +303,122 @@ var RegistryConfigSchema = _zod2.default.object({
303
303
  var ColorConfigSchema = SingleThemeColorConfigSchema.or(
304
304
  MultiThemeColorConfigSchema
305
305
  ).describe("Colors used for various workspace elements");
306
- var ColorConfigMapSchema = _zod2.default.union([
307
- _zod2.default.object({ base: ColorConfigSchema }),
308
- _zod2.default.record(_zod2.default.string(), ColorConfigSchema)
306
+ var ColorConfigMapSchema = z.union([
307
+ z.object({ base: ColorConfigSchema }),
308
+ z.record(z.string(), ColorConfigSchema)
309
309
  ]);
310
- var ExtendsItemSchema = _zod2.default.string().trim().describe(
310
+ var ExtendsItemSchema = z.string().trim().describe(
311
311
  "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
312
312
  );
313
313
  var ExtendsSchema = ExtendsItemSchema.or(
314
- _zod2.default.array(ExtendsItemSchema)
314
+ z.array(ExtendsItemSchema)
315
315
  ).describe(
316
316
  "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
317
317
  );
318
- var WorkspaceBotConfigSchema = _zod2.default.object({
319
- name: _zod2.default.string().trim().default("stormie-bot").describe(
318
+ var WorkspaceBotConfigSchema = z.object({
319
+ name: z.string().trim().default("stormie-bot").describe(
320
320
  "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
321
321
  ),
322
- email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
322
+ email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
323
323
  }).describe(
324
324
  "The workspace's bot user's config used to automated various operations tasks"
325
325
  );
326
- var WorkspaceReleaseConfigSchema = _zod2.default.object({
327
- banner: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
326
+ var WorkspaceReleaseConfigSchema = z.object({
327
+ banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
328
328
  "A URL to a banner image used to display the workspace's release"
329
329
  ),
330
- header: _zod2.default.string().trim().optional().describe(
330
+ header: z.string().trim().optional().describe(
331
331
  "A header message appended to the start of the workspace's release notes"
332
332
  ),
333
- footer: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
333
+ footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
334
334
  "A footer message appended to the end of the workspace's release notes"
335
335
  )
336
336
  }).describe("The workspace's release config used during the release process");
337
- var WorkspaceAccountConfigSchema = _zod2.default.object({
338
- twitter: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
339
- discord: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
340
- telegram: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
341
- slack: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
342
- medium: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
343
- github: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
337
+ var WorkspaceAccountConfigSchema = z.object({
338
+ twitter: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
339
+ discord: z.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
340
+ telegram: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
341
+ slack: z.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
342
+ medium: z.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
343
+ github: z.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
344
344
  }).describe(
345
345
  "The workspace's account config used to store various social media links"
346
346
  );
347
- var WorkspaceDirectoryConfigSchema = _zod2.default.object({
348
- cache: _zod2.default.string().trim().optional().describe(
347
+ var WorkspaceDirectoryConfigSchema = z.object({
348
+ cache: z.string().trim().optional().describe(
349
349
  "The directory used to store the environment's cached file data"
350
350
  ),
351
- data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
352
- config: _zod2.default.string().trim().optional().describe(
351
+ data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
352
+ config: z.string().trim().optional().describe(
353
353
  "The directory used to store the environment's configuration files"
354
354
  ),
355
- temp: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
356
- log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
357
- build: _zod2.default.string().trim().default("dist").describe(
355
+ temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
356
+ log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
357
+ build: z.string().trim().default("dist").describe(
358
358
  "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
359
359
  )
360
360
  }).describe(
361
361
  "Various directories used by the workspace to store data, cache, and configuration files"
362
362
  );
363
- var errorConfigSchema = _zod2.default.object({
364
- codesFile: _zod2.default.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
365
- url: _zod2.default.string().trim().url().optional().describe(
363
+ var errorConfigSchema = z.object({
364
+ codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
365
+ url: z.string().trim().url().optional().describe(
366
366
  "A URL to a page that looks up the workspace's error messages given a specific error code"
367
367
  )
368
368
  }).describe("The workspace's error config used during the error process");
369
- var stormWorkspaceConfigSchema = _zod2.default.object({
370
- $schema: _zod2.default.string().trim().default(
369
+ var organizationConfigSchema = z.object({
370
+ name: z.string().trim().describe("The name of the organization"),
371
+ description: z.string().trim().optional().describe("A description of the organization"),
372
+ logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
373
+ icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
374
+ url: z.string().trim().url().optional().describe(
375
+ "A URL to a page that provides more information about the organization"
376
+ )
377
+ }).describe("The workspace's organization details");
378
+ var stormWorkspaceConfigSchema = z.object({
379
+ $schema: z.string().trim().default(
371
380
  "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
372
381
  ).optional().nullish().describe(
373
382
  "The URL to the JSON schema file that describes the Storm configuration file"
374
383
  ),
375
384
  extends: ExtendsSchema.optional(),
376
- name: _zod2.default.string().trim().toLowerCase().optional().describe(
385
+ name: z.string().trim().toLowerCase().optional().describe(
377
386
  "The name of the service/package/scope using this configuration"
378
387
  ),
379
- namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
380
- organization: _zod2.default.string().trim().default("storm-software").describe("The organization of the workspace"),
381
- repository: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
382
- license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
383
- homepage: _zod2.default.string().trim().url().optional().describe("The homepage of the workspace"),
384
- docs: _zod2.default.string().trim().url().optional().describe("The documentation site for the workspace"),
385
- portal: _zod2.default.string().trim().url().optional().describe("The development portal site for the workspace"),
386
- licensing: _zod2.default.string().trim().url().optional().describe("The licensing site for the workspace"),
387
- contact: _zod2.default.string().trim().url().optional().describe("The contact site for the workspace"),
388
- support: _zod2.default.string().trim().url().optional().describe(
388
+ namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
389
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
390
+ "The organization of the workspace. This can be a string or an object containing the organization's details"
391
+ ),
392
+ repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
393
+ license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
394
+ homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
395
+ docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
396
+ portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
397
+ licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
398
+ contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
399
+ support: z.string().trim().url().optional().describe(
389
400
  "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
390
401
  ),
391
- branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
392
- preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
393
- owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
402
+ branch: z.string().trim().default("main").describe("The branch of the workspace"),
403
+ preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
404
+ owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
394
405
  bot: WorkspaceBotConfigSchema,
395
406
  release: WorkspaceReleaseConfigSchema,
396
407
  account: WorkspaceAccountConfigSchema,
397
408
  error: errorConfigSchema,
398
- mode: _zod2.default.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
399
- workspaceRoot: _zod2.default.string().trim().describe("The root directory of the workspace"),
400
- externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe(
409
+ mode: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
410
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
411
+ externalPackagePatterns: z.array(z.string()).default([]).describe(
401
412
  "The build will use these package patterns to determine if they should be external to the bundle"
402
413
  ),
403
- skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
414
+ skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
404
415
  directories: WorkspaceDirectoryConfigSchema,
405
- packageManager: _zod2.default.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
416
+ packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
406
417
  "The JavaScript/TypeScript package manager used by the repository"
407
418
  ),
408
- timezone: _zod2.default.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
409
- locale: _zod2.default.string().trim().default("en-US").describe("The default locale of the workspace"),
410
- logLevel: _zod2.default.enum([
419
+ timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
420
+ locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
421
+ logLevel: z.enum([
411
422
  "silent",
412
423
  "fatal",
413
424
  "error",
@@ -420,17 +431,17 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
420
431
  ]).default("info").describe(
421
432
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
422
433
  ),
423
- skipConfigLogging: _zod2.default.boolean().optional().describe(
434
+ skipConfigLogging: z.boolean().optional().describe(
424
435
  "Should the logging of the current Storm Workspace configuration be skipped?"
425
436
  ),
426
437
  registry: RegistryConfigSchema,
427
- configFile: _zod2.default.string().trim().nullable().default(null).describe(
438
+ configFile: z.string().trim().nullable().default(null).describe(
428
439
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
429
440
  ),
430
441
  colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
431
442
  "Storm theme config values used for styling various package elements"
432
443
  ),
433
- extensions: _zod2.default.record(_zod2.default.any()).optional().default({}).describe("Configuration of each used extension")
444
+ extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
434
445
  }).describe(
435
446
  "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
436
447
  );
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  cleanDirectories
3
- } from "./chunk-WK7EB7IK.js";
3
+ } from "./chunk-4FBSNAJ3.js";
4
4
  import {
5
5
  analyzePlugin
6
- } from "./chunk-YXBJUQUO.js";
6
+ } from "./chunk-P463HKRZ.js";
7
7
  import {
8
8
  onErrorPlugin
9
- } from "./chunk-I6UPBZJN.js";
9
+ } from "./chunk-SNFLBCOO.js";
10
10
  import {
11
11
  loadConfig,
12
12
  tscPlugin
13
- } from "./chunk-STWBC7PN.js";
13
+ } from "./chunk-KVRCVCLC.js";
14
14
  import {
15
15
  COLOR_KEYS,
16
16
  LogLevel,
@@ -34,7 +34,7 @@ import {
34
34
  writeSuccess,
35
35
  writeTrace,
36
36
  writeWarning
37
- } from "./chunk-KQH54774.js";
37
+ } from "./chunk-2JQ6EMAG.js";
38
38
 
39
39
  // src/build.ts
40
40
  import {
@@ -402,7 +402,13 @@ var getConfigEnv = () => {
402
402
  medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
403
403
  github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
404
404
  },
405
- organization: process.env[`${prefix}ORGANIZATION`] || void 0,
405
+ organization: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] ? process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] ? {
406
+ name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
407
+ description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
408
+ url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
409
+ logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
410
+ icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
411
+ } : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
406
412
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
407
413
  license: process.env[`${prefix}LICENSE`] || void 0,
408
414
  homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
@@ -609,7 +615,33 @@ var setConfigEnv = (config) => {
609
615
  }
610
616
  }
611
617
  if (config.organization) {
612
- process.env[`${prefix}ORGANIZATION`] = config.organization;
618
+ if (typeof config.organization === "string") {
619
+ process.env[`${prefix}ORG`] = config.organization;
620
+ process.env[`${prefix}ORG_NAME`] = config.organization;
621
+ process.env[`${prefix}ORGANIZATION`] = config.organization;
622
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
623
+ } else {
624
+ process.env[`${prefix}ORG`] = config.organization.name;
625
+ process.env[`${prefix}ORG_NAME`] = config.organization.name;
626
+ process.env[`${prefix}ORGANIZATION`] = config.organization.name;
627
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
628
+ if (config.organization.url) {
629
+ process.env[`${prefix}ORG_URL`] = config.organization.url;
630
+ process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
631
+ }
632
+ if (config.organization.description) {
633
+ process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
634
+ process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
635
+ }
636
+ if (config.organization.logo) {
637
+ process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
638
+ process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
639
+ }
640
+ if (config.organization.icon) {
641
+ process.env[`${prefix}ORG_ICON`] = config.organization.icon;
642
+ process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
643
+ }
644
+ }
613
645
  }
614
646
  if (config.packageManager) {
615
647
  process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
package/dist/clean.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkRDXDA3GHcjs = require('./chunk-RDXDA3GH.cjs');
5
- require('./chunk-OUDGDVMG.cjs');
4
+ var _chunkDAT6NHMFcjs = require('./chunk-DAT6NHMF.cjs');
5
+ require('./chunk-VHYQF3I6.cjs');
6
6
  require('./chunk-OBGZSXTJ.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.clean = _chunkRDXDA3GHcjs.clean; exports.cleanDirectories = _chunkRDXDA3GHcjs.cleanDirectories;
10
+ exports.clean = _chunkDAT6NHMFcjs.clean; exports.cleanDirectories = _chunkDAT6NHMFcjs.cleanDirectories;
package/dist/clean.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-WK7EB7IK.js";
5
- import "./chunk-KQH54774.js";
4
+ } from "./chunk-4FBSNAJ3.js";
5
+ import "./chunk-2JQ6EMAG.js";
6
6
  import "./chunk-3RG5ZIWI.js";
7
7
  export {
8
8
  clean,
package/dist/index.cjs CHANGED
@@ -5,19 +5,19 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkBEYMFCM7cjs = require('./chunk-BEYMFCM7.cjs');
8
+ var _chunk32TZN7CEcjs = require('./chunk-32TZN7CE.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkRDXDA3GHcjs = require('./chunk-RDXDA3GH.cjs');
12
+ var _chunkDAT6NHMFcjs = require('./chunk-DAT6NHMF.cjs');
13
13
  require('./chunk-SFZRYJZ2.cjs');
14
- require('./chunk-ZFT5WRRG.cjs');
15
- require('./chunk-6XVL7IQT.cjs');
14
+ require('./chunk-67LS6ZEK.cjs');
15
+ require('./chunk-F53U4QNB.cjs');
16
16
 
17
17
 
18
18
 
19
- var _chunkSE3LAWDVcjs = require('./chunk-SE3LAWDV.cjs');
20
- require('./chunk-OUDGDVMG.cjs');
19
+ var _chunkFPQJTGP3cjs = require('./chunk-FPQJTGP3.cjs');
20
+ require('./chunk-VHYQF3I6.cjs');
21
21
  require('./chunk-OBGZSXTJ.cjs');
22
22
 
23
23
 
@@ -30,4 +30,4 @@ require('./chunk-OBGZSXTJ.cjs');
30
30
 
31
31
 
32
32
 
33
- exports.build = _chunkBEYMFCM7cjs.build; exports.clean = _chunkRDXDA3GHcjs.clean; exports.cleanDirectories = _chunkRDXDA3GHcjs.cleanDirectories; exports.cleanOutputPath = _chunkBEYMFCM7cjs.cleanOutputPath; exports.copyBuildAssets = _chunkBEYMFCM7cjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkSE3LAWDVcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkBEYMFCM7cjs.executeUnbuild; exports.generatePackageJson = _chunkBEYMFCM7cjs.generatePackageJson; exports.loadConfig = _chunkSE3LAWDVcjs.loadConfig; exports.resolveOptions = _chunkBEYMFCM7cjs.resolveOptions;
33
+ exports.build = _chunk32TZN7CEcjs.build; exports.clean = _chunkDAT6NHMFcjs.clean; exports.cleanDirectories = _chunkDAT6NHMFcjs.cleanDirectories; exports.cleanOutputPath = _chunk32TZN7CEcjs.cleanOutputPath; exports.copyBuildAssets = _chunk32TZN7CEcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkFPQJTGP3cjs.createTsCompilerOptions; exports.executeUnbuild = _chunk32TZN7CEcjs.executeUnbuild; exports.generatePackageJson = _chunk32TZN7CEcjs.generatePackageJson; exports.loadConfig = _chunkFPQJTGP3cjs.loadConfig; exports.resolveOptions = _chunk32TZN7CEcjs.resolveOptions;
package/dist/index.js CHANGED
@@ -5,19 +5,19 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-ZUJYZNHE.js";
8
+ } from "./chunk-XYNUJ3M6.js";
9
9
  import {
10
10
  clean,
11
11
  cleanDirectories
12
- } from "./chunk-WK7EB7IK.js";
12
+ } from "./chunk-4FBSNAJ3.js";
13
13
  import "./chunk-GGNOJ77I.js";
14
- import "./chunk-YXBJUQUO.js";
15
- import "./chunk-I6UPBZJN.js";
14
+ import "./chunk-P463HKRZ.js";
15
+ import "./chunk-SNFLBCOO.js";
16
16
  import {
17
17
  createTsCompilerOptions,
18
18
  loadConfig
19
- } from "./chunk-STWBC7PN.js";
20
- import "./chunk-KQH54774.js";
19
+ } from "./chunk-KVRCVCLC.js";
20
+ import "./chunk-2JQ6EMAG.js";
21
21
  import "./chunk-3RG5ZIWI.js";
22
22
  export {
23
23
  build,
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZFT5WRRGcjs = require('../chunk-ZFT5WRRG.cjs');
4
- require('../chunk-OUDGDVMG.cjs');
3
+ var _chunk67LS6ZEKcjs = require('../chunk-67LS6ZEK.cjs');
4
+ require('../chunk-VHYQF3I6.cjs');
5
5
  require('../chunk-OBGZSXTJ.cjs');
6
6
 
7
7
 
8
- exports.analyzePlugin = _chunkZFT5WRRGcjs.analyzePlugin;
8
+ exports.analyzePlugin = _chunk67LS6ZEKcjs.analyzePlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  analyzePlugin
3
- } from "../chunk-YXBJUQUO.js";
4
- import "../chunk-KQH54774.js";
3
+ } from "../chunk-P463HKRZ.js";
4
+ import "../chunk-2JQ6EMAG.js";
5
5
  import "../chunk-3RG5ZIWI.js";
6
6
  export {
7
7
  analyzePlugin
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk6XVL7IQTcjs = require('../chunk-6XVL7IQT.cjs');
4
- require('../chunk-OUDGDVMG.cjs');
3
+ var _chunkF53U4QNBcjs = require('../chunk-F53U4QNB.cjs');
4
+ require('../chunk-VHYQF3I6.cjs');
5
5
  require('../chunk-OBGZSXTJ.cjs');
6
6
 
7
7
 
8
- exports.onErrorPlugin = _chunk6XVL7IQTcjs.onErrorPlugin;
8
+ exports.onErrorPlugin = _chunkF53U4QNBcjs.onErrorPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  onErrorPlugin
3
- } from "../chunk-I6UPBZJN.js";
4
- import "../chunk-KQH54774.js";
3
+ } from "../chunk-SNFLBCOO.js";
4
+ import "../chunk-2JQ6EMAG.js";
5
5
  import "../chunk-3RG5ZIWI.js";
6
6
  export {
7
7
  onErrorPlugin
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSE3LAWDVcjs = require('../chunk-SE3LAWDV.cjs');
4
- require('../chunk-OUDGDVMG.cjs');
3
+ var _chunkFPQJTGP3cjs = require('../chunk-FPQJTGP3.cjs');
4
+ require('../chunk-VHYQF3I6.cjs');
5
5
  require('../chunk-OBGZSXTJ.cjs');
6
6
 
7
7
 
8
- exports.tscPlugin = _chunkSE3LAWDVcjs.tscPlugin;
8
+ exports.tscPlugin = _chunkFPQJTGP3cjs.tscPlugin;