@storm-software/git-tools 1.10.17 → 1.11.0
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/bin/post-checkout.cjs +14 -0
- package/bin/post-commit.cjs +14 -0
- package/bin/post-merge.cjs +14 -0
- package/bin/pre-commit.cjs +14 -0
- package/bin/pre-push.cjs +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.10.18](https://github.com/storm-software/storm-ops/compare/git-tools-v1.10.17...git-tools-v1.10.18) (2023-11-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Update input file path for api-extractor ([7750f15](https://github.com/storm-software/storm-ops/commit/7750f151de20da36ab72c0b7f98df415c833704a))
|
|
7
|
+
|
|
8
|
+
## [1.10.17](https://github.com/storm-software/storm-ops/compare/git-tools-v1.10.16...git-tools-v1.10.17) (2023-11-30)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **workspace-tools:** Resolved bad reference to path ([622c842](https://github.com/storm-software/storm-ops/commit/622c84247119570a469d2dc802a3317d44a17bb0))
|
|
14
|
+
|
|
1
15
|
## [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
16
|
|
|
3
17
|
|
package/bin/post-checkout.cjs
CHANGED
|
@@ -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"
|
package/bin/post-commit.cjs
CHANGED
|
@@ -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(
|
package/bin/post-merge.cjs
CHANGED
|
@@ -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"
|
package/bin/pre-commit.cjs
CHANGED
|
@@ -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 = [];
|