@storm-software/git-tools 2.112.2 → 2.112.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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-2.112.0-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-2.112.2-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 -->
@@ -37521,6 +37521,15 @@ var errorConfigSchema = z.object({
37521
37521
  "A URL to a page that looks up the workspace's error messages given a specific error code"
37522
37522
  )
37523
37523
  }).describe("The workspace's error config used during the error process");
37524
+ var organizationConfigSchema = z.object({
37525
+ name: z.string().trim().describe("The name of the organization"),
37526
+ description: z.string().trim().optional().describe("A description of the organization"),
37527
+ logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
37528
+ icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
37529
+ url: z.string().trim().url().optional().describe(
37530
+ "A URL to a page that provides more information about the organization"
37531
+ )
37532
+ }).describe("The workspace's organization details");
37524
37533
  var stormWorkspaceConfigSchema = z.object({
37525
37534
  $schema: z.string().trim().default(
37526
37535
  "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
@@ -37532,7 +37541,9 @@ var stormWorkspaceConfigSchema = z.object({
37532
37541
  "The name of the service/package/scope using this configuration"
37533
37542
  ),
37534
37543
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
37535
- organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
37544
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
37545
+ "The organization of the workspace. This can be a string or an object containing the organization's details"
37546
+ ),
37536
37547
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
37537
37548
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
37538
37549
  homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
@@ -38984,7 +38995,13 @@ var getConfigEnv = () => {
38984
38995
  medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
38985
38996
  github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
38986
38997
  },
38987
- organization: process.env[`${prefix}ORGANIZATION`] || void 0,
38998
+ 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`] ? {
38999
+ name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
39000
+ description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
39001
+ url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
39002
+ logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
39003
+ icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
39004
+ } : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
38988
39005
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
38989
39006
  license: process.env[`${prefix}LICENSE`] || void 0,
38990
39007
  homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
@@ -39192,7 +39209,33 @@ var setConfigEnv = (config) => {
39192
39209
  }
39193
39210
  }
39194
39211
  if (config.organization) {
39195
- process.env[`${prefix}ORGANIZATION`] = config.organization;
39212
+ if (typeof config.organization === "string") {
39213
+ process.env[`${prefix}ORG`] = config.organization;
39214
+ process.env[`${prefix}ORG_NAME`] = config.organization;
39215
+ process.env[`${prefix}ORGANIZATION`] = config.organization;
39216
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
39217
+ } else {
39218
+ process.env[`${prefix}ORG`] = config.organization.name;
39219
+ process.env[`${prefix}ORG_NAME`] = config.organization.name;
39220
+ process.env[`${prefix}ORGANIZATION`] = config.organization.name;
39221
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
39222
+ if (config.organization.url) {
39223
+ process.env[`${prefix}ORG_URL`] = config.organization.url;
39224
+ process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
39225
+ }
39226
+ if (config.organization.description) {
39227
+ process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
39228
+ process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
39229
+ }
39230
+ if (config.organization.logo) {
39231
+ process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
39232
+ process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
39233
+ }
39234
+ if (config.organization.icon) {
39235
+ process.env[`${prefix}ORG_ICON`] = config.organization.icon;
39236
+ process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
39237
+ }
39238
+ }
39196
39239
  }
39197
39240
  if (config.packageManager) {
39198
39241
  process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
@@ -37585,6 +37585,15 @@ var errorConfigSchema = z.object({
37585
37585
  "A URL to a page that looks up the workspace's error messages given a specific error code"
37586
37586
  )
37587
37587
  }).describe("The workspace's error config used during the error process");
37588
+ var organizationConfigSchema = z.object({
37589
+ name: z.string().trim().describe("The name of the organization"),
37590
+ description: z.string().trim().optional().describe("A description of the organization"),
37591
+ logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
37592
+ icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
37593
+ url: z.string().trim().url().optional().describe(
37594
+ "A URL to a page that provides more information about the organization"
37595
+ )
37596
+ }).describe("The workspace's organization details");
37588
37597
  var stormWorkspaceConfigSchema = z.object({
37589
37598
  $schema: z.string().trim().default(
37590
37599
  "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
@@ -37596,7 +37605,9 @@ var stormWorkspaceConfigSchema = z.object({
37596
37605
  "The name of the service/package/scope using this configuration"
37597
37606
  ),
37598
37607
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
37599
- organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
37608
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
37609
+ "The organization of the workspace. This can be a string or an object containing the organization's details"
37610
+ ),
37600
37611
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
37601
37612
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
37602
37613
  homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
@@ -39045,7 +39056,13 @@ var getConfigEnv = () => {
39045
39056
  medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
39046
39057
  github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
39047
39058
  },
39048
- organization: process.env[`${prefix}ORGANIZATION`] || void 0,
39059
+ 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`] ? {
39060
+ name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
39061
+ description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
39062
+ url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
39063
+ logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
39064
+ icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
39065
+ } : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
39049
39066
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
39050
39067
  license: process.env[`${prefix}LICENSE`] || void 0,
39051
39068
  homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
@@ -39253,7 +39270,33 @@ var setConfigEnv = (config) => {
39253
39270
  }
39254
39271
  }
39255
39272
  if (config.organization) {
39256
- process.env[`${prefix}ORGANIZATION`] = config.organization;
39273
+ if (typeof config.organization === "string") {
39274
+ process.env[`${prefix}ORG`] = config.organization;
39275
+ process.env[`${prefix}ORG_NAME`] = config.organization;
39276
+ process.env[`${prefix}ORGANIZATION`] = config.organization;
39277
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
39278
+ } else {
39279
+ process.env[`${prefix}ORG`] = config.organization.name;
39280
+ process.env[`${prefix}ORG_NAME`] = config.organization.name;
39281
+ process.env[`${prefix}ORGANIZATION`] = config.organization.name;
39282
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
39283
+ if (config.organization.url) {
39284
+ process.env[`${prefix}ORG_URL`] = config.organization.url;
39285
+ process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
39286
+ }
39287
+ if (config.organization.description) {
39288
+ process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
39289
+ process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
39290
+ }
39291
+ if (config.organization.logo) {
39292
+ process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
39293
+ process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
39294
+ }
39295
+ if (config.organization.icon) {
39296
+ process.env[`${prefix}ORG_ICON`] = config.organization.icon;
39297
+ process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
39298
+ }
39299
+ }
39257
39300
  }
39258
39301
  if (config.packageManager) {
39259
39302
  process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;