@storm-software/git-tools 2.38.0 → 2.38.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 2.38.2 (2024-07-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ - **build-tools:** Resolved issue iterating unbuild entry files ([17703513](https://github.com/storm-software/storm-ops/commit/17703513))
7
+
8
+ ## 2.38.1 (2024-07-31)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ - **build-tools:** Resolve issues with the output path provided to unbuild ([ee9c2353](https://github.com/storm-software/storm-ops/commit/ee9c2353))
14
+
1
15
  ## 2.38.0 (2024-07-31)
2
16
 
3
17
 
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.37.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.38.1-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/bin/git.js CHANGED
@@ -232251,17 +232251,22 @@ var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
232251
232251
  var runCommitLint = async (commitMessageArg) => {
232252
232252
  const config2 = await loadStormConfig();
232253
232253
  let commitMessage;
232254
- if (!commitMessageArg) {
232254
+ if (commitMessageArg && commitMessageArg !== COMMIT_EDITMSG_PATH) {
232255
+ commitMessage = commitMessageArg;
232256
+ } else if (commitMessageArg !== COMMIT_EDITMSG_PATH) {
232257
+ commitMessage = await readCommitMessageFile();
232258
+ }
232259
+ if (!commitMessage) {
232255
232260
  let gitLogCmd = "git log -1 --no-merges";
232256
232261
  const gitRemotes = childProcess2.execSync("git remote -v").toString().trim().split("\n");
232257
232262
  const upstreamRemote = gitRemotes.find(
232258
- (remote) => remote.includes(`${config2.namespace}/${config2.name}.git`)
232263
+ (remote) => remote.includes(`${config2.name}.git`)
232259
232264
  );
232260
232265
  if (upstreamRemote) {
232261
232266
  const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
232262
232267
  if (!upstreamRemoteIdentifier) {
232263
232268
  throw new Error(
232264
- `No upstream remote found for ${config2.namespace}/${config2.name}.git. Skipping comparison.`
232269
+ `No upstream remote found for ${config2.name}.git. Skipping comparison.`
232265
232270
  );
232266
232271
  }
232267
232272
  writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
@@ -232269,23 +232274,13 @@ var runCommitLint = async (commitMessageArg) => {
232269
232274
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
232270
232275
  } else {
232271
232276
  throw new Error(
232272
- `No upstream remote found for ${config2.namespace}/${config2.name}.git. Skipping comparison against upstream main.`
232277
+ `No upstream remote found for ${config2.name}.git. Skipping comparison against upstream main.`
232273
232278
  );
232274
232279
  }
232275
232280
  commitMessage = childProcess2.execSync(gitLogCmd).toString().trim();
232276
232281
  if (!commitMessage) {
232277
232282
  throw new Error("No commits found. Skipping commit message validation.");
232278
232283
  }
232279
- } else if (commitMessageArg !== COMMIT_EDITMSG_PATH) {
232280
- commitMessage = commitMessageArg;
232281
- }
232282
- if (!commitMessage) {
232283
- commitMessage = await readCommitMessageFile();
232284
- if (!commitMessage) {
232285
- throw new Error(
232286
- "No commit message found. Skipping commit message validation."
232287
- );
232288
- }
232289
232284
  }
232290
232285
  const allowedTypes = Object.keys(
232291
232286
  config_default2.prompt.questions.type.enum
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "2.38.0",
3
+ "version": "2.38.2",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing various git tools used in Storm workspaces.",
6
6
  "repository": {
package/src/cli/index.js CHANGED
@@ -228041,17 +228041,22 @@ var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
228041
228041
  var runCommitLint = async (commitMessageArg) => {
228042
228042
  const config2 = await loadStormConfig();
228043
228043
  let commitMessage;
228044
- if (!commitMessageArg) {
228044
+ if (commitMessageArg && commitMessageArg !== COMMIT_EDITMSG_PATH) {
228045
+ commitMessage = commitMessageArg;
228046
+ } else if (commitMessageArg !== COMMIT_EDITMSG_PATH) {
228047
+ commitMessage = await readCommitMessageFile();
228048
+ }
228049
+ if (!commitMessage) {
228045
228050
  let gitLogCmd = "git log -1 --no-merges";
228046
228051
  const gitRemotes = childProcess2.execSync("git remote -v").toString().trim().split("\n");
228047
228052
  const upstreamRemote = gitRemotes.find(
228048
- (remote) => remote.includes(`${config2.namespace}/${config2.name}.git`)
228053
+ (remote) => remote.includes(`${config2.name}.git`)
228049
228054
  );
228050
228055
  if (upstreamRemote) {
228051
228056
  const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
228052
228057
  if (!upstreamRemoteIdentifier) {
228053
228058
  throw new Error(
228054
- `No upstream remote found for ${config2.namespace}/${config2.name}.git. Skipping comparison.`
228059
+ `No upstream remote found for ${config2.name}.git. Skipping comparison.`
228055
228060
  );
228056
228061
  }
228057
228062
  writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
@@ -228059,23 +228064,13 @@ var runCommitLint = async (commitMessageArg) => {
228059
228064
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
228060
228065
  } else {
228061
228066
  throw new Error(
228062
- `No upstream remote found for ${config2.namespace}/${config2.name}.git. Skipping comparison against upstream main.`
228067
+ `No upstream remote found for ${config2.name}.git. Skipping comparison against upstream main.`
228063
228068
  );
228064
228069
  }
228065
228070
  commitMessage = childProcess2.execSync(gitLogCmd).toString().trim();
228066
228071
  if (!commitMessage) {
228067
228072
  throw new Error("No commits found. Skipping commit message validation.");
228068
228073
  }
228069
- } else if (commitMessageArg !== COMMIT_EDITMSG_PATH) {
228070
- commitMessage = commitMessageArg;
228071
- }
228072
- if (!commitMessage) {
228073
- commitMessage = await readCommitMessageFile();
228074
- if (!commitMessage) {
228075
- throw new Error(
228076
- "No commit message found. Skipping commit message validation."
228077
- );
228078
- }
228079
228074
  }
228080
228075
  const allowedTypes = Object.keys(
228081
228076
  config_default2.prompt.questions.type.enum
package/src/index.js CHANGED
@@ -228143,17 +228143,22 @@ var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
228143
228143
  var runCommitLint = async (commitMessageArg) => {
228144
228144
  const config2 = await loadStormConfig();
228145
228145
  let commitMessage;
228146
- if (!commitMessageArg) {
228146
+ if (commitMessageArg && commitMessageArg !== COMMIT_EDITMSG_PATH) {
228147
+ commitMessage = commitMessageArg;
228148
+ } else if (commitMessageArg !== COMMIT_EDITMSG_PATH) {
228149
+ commitMessage = await readCommitMessageFile();
228150
+ }
228151
+ if (!commitMessage) {
228147
228152
  let gitLogCmd = "git log -1 --no-merges";
228148
228153
  const gitRemotes = childProcess2.execSync("git remote -v").toString().trim().split("\n");
228149
228154
  const upstreamRemote = gitRemotes.find(
228150
- (remote) => remote.includes(`${config2.namespace}/${config2.name}.git`)
228155
+ (remote) => remote.includes(`${config2.name}.git`)
228151
228156
  );
228152
228157
  if (upstreamRemote) {
228153
228158
  const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
228154
228159
  if (!upstreamRemoteIdentifier) {
228155
228160
  throw new Error(
228156
- `No upstream remote found for ${config2.namespace}/${config2.name}.git. Skipping comparison.`
228161
+ `No upstream remote found for ${config2.name}.git. Skipping comparison.`
228157
228162
  );
228158
228163
  }
228159
228164
  writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
@@ -228161,23 +228166,13 @@ var runCommitLint = async (commitMessageArg) => {
228161
228166
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
228162
228167
  } else {
228163
228168
  throw new Error(
228164
- `No upstream remote found for ${config2.namespace}/${config2.name}.git. Skipping comparison against upstream main.`
228169
+ `No upstream remote found for ${config2.name}.git. Skipping comparison against upstream main.`
228165
228170
  );
228166
228171
  }
228167
228172
  commitMessage = childProcess2.execSync(gitLogCmd).toString().trim();
228168
228173
  if (!commitMessage) {
228169
228174
  throw new Error("No commits found. Skipping commit message validation.");
228170
228175
  }
228171
- } else if (commitMessageArg !== COMMIT_EDITMSG_PATH) {
228172
- commitMessage = commitMessageArg;
228173
- }
228174
- if (!commitMessage) {
228175
- commitMessage = await readCommitMessageFile();
228176
- if (!commitMessage) {
228177
- throw new Error(
228178
- "No commit message found. Skipping commit message validation."
228179
- );
228180
- }
228181
228176
  }
228182
228177
  const allowedTypes = Object.keys(
228183
228178
  config_default2.prompt.questions.type.enum