@storm-software/git-tools 1.10.17 → 1.10.18

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,10 @@
1
+ ## [1.10.17](https://github.com/storm-software/storm-ops/compare/git-tools-v1.10.16...git-tools-v1.10.17) (2023-11-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **workspace-tools:** Resolved bad reference to path ([622c842](https://github.com/storm-software/storm-ops/commit/622c84247119570a469d2dc802a3317d44a17bb0))
7
+
1
8
  ## [1.10.16](https://github.com/storm-software/storm-ops/compare/git-tools-v1.10.15...git-tools-v1.10.16) (2023-11-30)
2
9
 
3
10
 
@@ -5,6 +5,20 @@ const { execSync } = require("node:child_process");
5
5
  try {
6
6
  console.log("Running Storm post-checkout hook...");
7
7
 
8
+ ["SIGTERM", "SIGINT", "SIGUSR2"].map(type => {
9
+ process.once(type, async () => {
10
+ try {
11
+ console.info(`process.on ${type}`);
12
+ console.info(`shutdown process done, exiting with code 0`);
13
+ process.exit(0);
14
+ } catch (e) {
15
+ console.warn(`shutdown process failed, exiting with code 1`);
16
+ console.error(e);
17
+ process.exit(1);
18
+ }
19
+ });
20
+ });
21
+
8
22
  const changed = execSync(
9
23
  "git diff-tree -r --name-only --no-commit-id $1 $2",
10
24
  "utf8"
@@ -5,6 +5,20 @@ const { execSync } = require("node:child_process");
5
5
  try {
6
6
  console.log("Running Storm post-commit hook...");
7
7
 
8
+ ["SIGTERM", "SIGINT", "SIGUSR2"].map(type => {
9
+ process.once(type, async () => {
10
+ try {
11
+ console.info(`process.on ${type}`);
12
+ console.info(`shutdown process done, exiting with code 0`);
13
+ process.exit(0);
14
+ } catch (e) {
15
+ console.warn(`shutdown process failed, exiting with code 1`);
16
+ console.error(e);
17
+ process.exit(1);
18
+ }
19
+ });
20
+ });
21
+
8
22
  const result = execSync("git-lfs -v", "utf8");
9
23
  if (result && Number.isInteger(Number.parseInt(result)) && Number(result)) {
10
24
  console.error(
@@ -5,6 +5,20 @@ const { execSync } = require("node:child_process");
5
5
  try {
6
6
  console.log("Running Storm post-merge hook...");
7
7
 
8
+ ["SIGTERM", "SIGINT", "SIGUSR2"].map(type => {
9
+ process.once(type, async () => {
10
+ try {
11
+ console.info(`process.on ${type}`);
12
+ console.info(`shutdown process done, exiting with code 0`);
13
+ process.exit(0);
14
+ } catch (e) {
15
+ console.warn(`shutdown process failed, exiting with code 1`);
16
+ console.error(e);
17
+ process.exit(1);
18
+ }
19
+ });
20
+ });
21
+
8
22
  const changed = execSync(
9
23
  "git diff-tree -r --name-only --no-commit-id $1 $2",
10
24
  "utf8"
@@ -5,6 +5,20 @@ const { execSync } = require("node:child_process");
5
5
  try {
6
6
  console.log("Running Storm pre-commit hook...");
7
7
 
8
+ ["SIGTERM", "SIGINT", "SIGUSR2"].map(type => {
9
+ process.once(type, async () => {
10
+ try {
11
+ console.info(`process.on ${type}`);
12
+ console.info(`shutdown process done, exiting with code 0`);
13
+ process.exit(0);
14
+ } catch (e) {
15
+ console.warn(`shutdown process failed, exiting with code 1`);
16
+ console.error(e);
17
+ process.exit(1);
18
+ }
19
+ });
20
+ });
21
+
8
22
  execSync(
9
23
  'pnpm lint-staged --concurrent false --config="@storm-software/git-tools/lint-staged/config.cjs"'
10
24
  );
package/bin/pre-push.cjs CHANGED
@@ -6,6 +6,20 @@ const fs = require("fs");
6
6
  try {
7
7
  console.log("Running Storm pre-push hook...");
8
8
 
9
+ ["SIGTERM", "SIGINT", "SIGUSR2"].map(type => {
10
+ process.once(type, async () => {
11
+ try {
12
+ console.info(`process.on ${type}`);
13
+ console.info(`shutdown process done, exiting with code 0`);
14
+ process.exit(0);
15
+ } catch (e) {
16
+ console.warn(`shutdown process failed, exiting with code 1`);
17
+ console.error(e);
18
+ process.exit(1);
19
+ }
20
+ });
21
+ });
22
+
9
23
  console.log("🔒🔒🔒 Validating lock files 🔒🔒🔒\n");
10
24
 
11
25
  const errors = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "1.10.17",
3
+ "version": "1.10.18",
4
4
  "private": false,
5
5
  "description": "⚡ A package containing various git tools used in Storm workspaces.",
6
6
  "keywords": [