@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 +14 -0
- package/hooks/post-checkout.cjs +10 -0
- package/hooks/post-commit.cjs +6 -0
- package/hooks/post-merge.cjs +10 -0
- package/hooks/pre-commit.cjs +6 -0
- package/hooks/pre-push.cjs +8 -0
- package/package.json +6 -6
- package/scripts/{check-lock-file.js → check-lock-file.cjs} +1 -1
- package/hooks/post-checkout +0 -7
- package/hooks/post-commit +0 -5
- package/hooks/post-merge +0 -7
- package/hooks/pre-commit +0 -4
- package/hooks/pre-push +0 -6
- /package/scripts/{package-version-warning.js → package-version-warning.cjs} +0 -0
- /package/scripts/{pre-install.js → pre-install.cjs} +0 -0
- /package/scripts/{prepare.js → prepare.cjs} +0 -0
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,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.
|
|
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",
|
package/hooks/post-checkout
DELETED
|
@@ -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
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
|
|
File without changes
|