@storm-software/git-tools 1.18.0 → 1.18.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
+ ## [1.18.1](https://github.com/storm-software/storm-ops/compare/git-tools-v1.18.0...git-tools-v1.18.1) (2023-12-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **git-tools:** Updated command execution in git hooks ([5ec4f55](https://github.com/storm-software/storm-ops/commit/5ec4f556b58025b1d3880c8696a1e065e4fe0d57))
7
+
8
+ # [1.18.0](https://github.com/storm-software/storm-ops/compare/git-tools-v1.17.4...git-tools-v1.18.0) (2023-12-21)
9
+
10
+
11
+ ### Features
12
+
13
+ * **config-tools:** Added the `findWorkspaceRootSync` and `findWorkspaceRootSafeSync` functions ([59e0ee4](https://github.com/storm-software/storm-ops/commit/59e0ee4779a15752fb035d235b929bb3e8ecc974))
14
+
1
15
  ## [1.17.4](https://github.com/storm-software/storm-ops/compare/git-tools-v1.17.3...git-tools-v1.17.4) (2023-12-21)
2
16
 
3
17
 
@@ -21,13 +21,18 @@ try {
21
21
 
22
22
  const changed = execSync(
23
23
  "git diff-tree -r --name-only --no-commit-id $1 $2",
24
- "utf8"
24
+ { encoding: "utf8", env: { ...process.env }, windowsHide: true }
25
25
  );
26
26
  execSync(
27
- `node @storm-software/git-tools/scripts/package-version-warning.cjs ${changed}`
27
+ `node @storm-software/git-tools/scripts/package-version-warning.cjs ${changed}`,
28
+ { encoding: "utf8", env: { ...process.env }, windowsHide: true }
28
29
  );
29
30
 
30
- const result = execSync("git-lfs -v", "utf8");
31
+ const result = execSync("git-lfs -v", {
32
+ encoding: "utf8",
33
+ env: { ...process.env },
34
+ windowsHide: true
35
+ });
31
36
  if (result && Number.isInteger(Number.parseInt(result)) && Number(result)) {
32
37
  console.error(
33
38
  `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.\nError: ${result}`
@@ -35,7 +40,11 @@ try {
35
40
  process.exit(1);
36
41
  }
37
42
 
38
- execSync("git lfs post-checkout origin main");
43
+ execSync("git lfs post-checkout origin main", {
44
+ encoding: "utf8",
45
+ env: { ...process.env },
46
+ windowsHide: true
47
+ });
39
48
  } catch (e) {
40
49
  console.error(e);
41
50
  process.exit(1);
@@ -19,7 +19,11 @@ try {
19
19
  });
20
20
  });
21
21
 
22
- const result = execSync("git-lfs -v", "utf8");
22
+ const result = execSync("git-lfs -v", {
23
+ encoding: "utf8",
24
+ env: { ...process.env },
25
+ windowsHide: true
26
+ });
23
27
  if (result && Number.isInteger(Number.parseInt(result)) && Number(result)) {
24
28
  console.error(
25
29
  `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-commit.\nError: ${result}`
@@ -27,7 +31,11 @@ try {
27
31
  process.exit(1);
28
32
  }
29
33
 
30
- execSync("git lfs post-commit origin main");
34
+ execSync("git lfs post-commit origin main", {
35
+ encoding: "utf8",
36
+ env: { ...process.env },
37
+ windowsHide: true
38
+ });
31
39
  } catch (e) {
32
40
  console.error(e);
33
41
  process.exit(1);
@@ -21,13 +21,18 @@ try {
21
21
 
22
22
  const changed = execSync(
23
23
  "git diff-tree -r --name-only --no-commit-id $1 $2",
24
- "utf8"
24
+ { encoding: "utf8", env: { ...process.env }, windowsHide: true }
25
25
  );
26
26
  execSync(
27
- `node @storm-software/git-tools/scripts/package-version-warning.cjs ${changed}`
27
+ `node @storm-software/git-tools/scripts/package-version-warning.cjs ${changed}`,
28
+ { encoding: "utf8", env: { ...process.env }, windowsHide: true }
28
29
  );
29
30
 
30
- const result = execSync("git-lfs -v", "utf8");
31
+ const result = execSync("git-lfs -v", {
32
+ encoding: "utf8",
33
+ env: { ...process.env },
34
+ windowsHide: true
35
+ });
31
36
  if (result && Number.isInteger(Number.parseInt(result)) && Number(result)) {
32
37
  console.error(
33
38
  `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-merge.\nError: ${result}`
@@ -35,7 +40,11 @@ try {
35
40
  process.exit(1);
36
41
  }
37
42
 
38
- execSync("git lfs post-merge origin main");
43
+ execSync("git lfs post-merge origin main", {
44
+ encoding: "utf8",
45
+ env: { ...process.env },
46
+ windowsHide: true
47
+ });
39
48
  } catch (e) {
40
49
  console.error(e);
41
50
  process.exit(1);
@@ -20,9 +20,14 @@ try {
20
20
  });
21
21
 
22
22
  execSync(
23
- 'pnpm lint-staged --concurrent false --config="@storm-software/git-tools/lint-staged/config.cjs"'
23
+ 'pnpm lint-staged --concurrent false --config="@storm-software/git-tools/lint-staged/config.cjs"',
24
+ { encoding: "utf8", env: { ...process.env }, windowsHide: true }
24
25
  );
25
- execSync("pnpm test");
26
+ execSync("pnpm test", {
27
+ encoding: "utf8",
28
+ env: { ...process.env },
29
+ windowsHide: true
30
+ });
26
31
  } catch (e) {
27
32
  console.error(e);
28
33
  process.exit(1);
package/bin/pre-push.cjs CHANGED
@@ -57,7 +57,11 @@ try {
57
57
 
58
58
  console.log("Lock file is valid 👍");
59
59
 
60
- const result = execSync("git-lfs -v", "utf8");
60
+ const result = execSync("git-lfs -v", {
61
+ encoding: "utf8",
62
+ env: { ...process.env },
63
+ windowsHide: true
64
+ });
61
65
  if (result && Number.isInteger(Number.parseInt(result)) && Number(result)) {
62
66
  console.error(
63
67
  `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.\nError: ${result}`
@@ -65,7 +69,11 @@ try {
65
69
  process.exit(1);
66
70
  }
67
71
 
68
- execSync("git lfs pre-push origin main");
72
+ execSync("git lfs pre-push origin main", {
73
+ encoding: "utf8",
74
+ env: { ...process.env },
75
+ windowsHide: true
76
+ });
69
77
  } catch (e) {
70
78
  console.error(e);
71
79
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "1.18.0",
3
+ "version": "1.18.2",
4
4
  "private": false,
5
5
  "description": "⚡ A package containing various git tools used in Storm workspaces.",
6
6
  "keywords": [