@storm-software/git-tools 1.2.13 → 1.2.15

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.2.14](https://github.com/storm-software/storm-ops/compare/git-tools-v1.2.13...git-tools-v1.2.14) (2023-11-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **git-tools:** Update extension type of scripts used in husky hooks ([1aa3e3b](https://github.com/storm-software/storm-ops/commit/1aa3e3b26d79015bab75f1bbee26974407a19428))
7
+
8
+ ## [1.2.13](https://github.com/storm-software/storm-ops/compare/git-tools-v1.2.12...git-tools-v1.2.13) (2023-11-10)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **workspace-tools:** Resolved issue with node-library generator ([c0f2d26](https://github.com/storm-software/storm-ops/commit/c0f2d26849f0f16ca4e6da30c953152be3113906))
14
+
1
15
  ## [1.2.12](https://github.com/storm-software/storm-ops/compare/git-tools-v1.2.11...git-tools-v1.2.12) (2023-11-10)
2
16
 
3
17
 
@@ -0,0 +1,10 @@
1
+ const { execSync } = require("node:child_process");
2
+
3
+ execSync(
4
+ 'changedFiles="$(git diff-tree -r --name-only --no-commit-id $1 $2)" && node @storm-software/git-tools/scripts/package-version-warning.cjs $changedFiles'
5
+ );
6
+
7
+ execSync(
8
+ "command -v git-lfs >/dev/null 2>&1 || { echo >&2 '\nThis 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.\n'; exit 2; }"
9
+ );
10
+ execSync('git lfs post-checkout "$@"');
@@ -0,0 +1,6 @@
1
+ const { execSync } = require("node:child_process");
2
+
3
+ execSync(
4
+ "command -v git-lfs >/dev/null 2>&1 || { echo >&2 '\nThis 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.\n'; exit 2; }"
5
+ );
6
+ execSync('git lfs post-commit "$@"');
@@ -0,0 +1,10 @@
1
+ const { execSync } = require("node:child_process");
2
+
3
+ execSync(
4
+ 'changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" && @storm-software/git-tools/scripts/package-version-warning.cjs $changedFiles'
5
+ );
6
+
7
+ execSync(
8
+ "command -v git-lfs >/dev/null 2>&1 || { echo >&2 '\nThis 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.\n'; exit 2; }"
9
+ );
10
+ execSync('git lfs post-merge "$@"');
@@ -0,0 +1,6 @@
1
+ const { execSync } = require("node:child_process");
2
+
3
+ execSync(
4
+ 'pnpm lint-staged --concurrent false --config="@storm-software/git-tools/lint-staged/config.cjs"'
5
+ );
6
+ execSync("pnpm test");
@@ -0,0 +1,8 @@
1
+ const { execSync } = require("node:child_process");
2
+
3
+ execSync("node @storm-software/git-tools/scripts/check-lock-file.cjs");
4
+
5
+ execSync(
6
+ "command -v git-lfs >/dev/null 2>&1 || { echo >&2 '\nThis 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.\n'; exit 2; }"
7
+ );
8
+ execSync('git lfs pre-push "$@"');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
4
4
  "private": false,
5
5
  "description": "⚡ A package containing various git tools used in Storm workspaces.",
6
6
  "keywords": [
@@ -31,11 +31,11 @@
31
31
  "type": "module",
32
32
  "bin": {
33
33
  "storm-git": "./bin/cli.js",
34
- "storm-post-checkout": "./hooks/post-checkout",
35
- "storm-post-commit": "./hooks/post-commit",
36
- "storm-post-merge": "./hooks/post-merge",
37
- "storm-pre-commit": "./hooks/pre-commit",
38
- "storm-pre-push": "./hooks/pre-push"
34
+ "storm-post-checkout": "./hooks/post-checkout.cjs",
35
+ "storm-post-commit": "./hooks/post-commit.cjs",
36
+ "storm-post-merge": "./hooks/post-merge.cjs",
37
+ "storm-pre-commit": "./hooks/pre-commit.cjs",
38
+ "storm-pre-push": "./hooks/pre-push.cjs"
39
39
  },
40
40
  "dependencies": {
41
41
  "@commitlint/cli": "18.2.0",
@@ -1,4 +1,4 @@
1
- import fs from "fs";
1
+ const fs = require("fs");
2
2
 
3
3
  console.log("🔒🔒🔒 Validating lock files 🔒🔒🔒\n");
4
4
 
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
-
3
- changedFiles="$(git diff-tree -r --name-only --no-commit-id $1 $2)"
4
- node @storm-software/git-tools/scripts/package-version-warning.js $changedFiles
5
-
6
- command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis 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.\n"; exit 2; }
7
- git lfs post-checkout "$@"
package/hooks/post-commit DELETED
@@ -1,5 +0,0 @@
1
- #!/bin/sh
2
-
3
- command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis 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.\n"; exit 2; }
4
- git lfs post-commit "$@"
5
-
package/hooks/post-merge DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
-
3
- changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
4
- node @storm-software/git-tools/scripts/package-version-warning.js $changedFiles
5
-
6
- command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis 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.\n"; exit 2; }
7
- git lfs post-merge "$@"
package/hooks/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env sh
2
-
3
- pnpm lint-staged --concurrent false --config="@storm-software/git-tools/lint-staged/config.cjs"
4
- pnpm test
package/hooks/pre-push DELETED
@@ -1,6 +0,0 @@
1
- #!/bin/sh
2
-
3
- node @storm-software/git-tools/scripts/check-lock-file.js
4
-
5
- command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis 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.\n"; exit 2; }
6
- git lfs pre-push "$@"
File without changes
File without changes