@storm-software/git-tools 1.31.2 → 1.32.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 +8 -68
- package/bin/post-checkout.ts +2 -2
- package/bin/post-commit.ts +2 -2
- package/bin/post-merge.ts +2 -2
- package/bin/pre-install.ts +3 -0
- package/bin/pre-push.ts +3 -3
- package/bin/prepare.ts +1 -1
- package/package.json +8 -9
- package/project.json +6 -6
- package/src/changelog-renderer/changelog-renderer.ts +1 -0
- package/src/release/nx-release.ts +6 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,76 +1,26 @@
|
|
|
1
|
-
## 1.
|
|
1
|
+
## 1.32.0 (2024-01-27)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### 🚀 Features
|
|
5
5
|
|
|
6
|
-
- **
|
|
6
|
+
- **config-tools:** Added the `preid` config option and removed `preMajor` ([0d8756dc](https://github.com/storm-software/storm-ops/commit/0d8756dc))
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### ❤️ Thank You
|
|
10
10
|
|
|
11
11
|
- Patrick Sullivan
|
|
12
12
|
|
|
13
|
+
## 1.31.2 (2024-01-26)
|
|
13
14
|
|
|
14
15
|
|
|
16
|
+
### 🩹 Fixes
|
|
15
17
|
|
|
18
|
+
- **git-tools:** Added code to set providence on publish process ([06439ff3](https://github.com/storm-software/storm-ops/commit/06439ff3))
|
|
16
19
|
|
|
17
20
|
|
|
21
|
+
### ❤️ Thank You
|
|
18
22
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
23
|
+
- Patrick Sullivan
|
|
74
24
|
|
|
75
25
|
|
|
76
26
|
|
|
@@ -98,16 +48,6 @@
|
|
|
98
48
|
|
|
99
49
|
- Patrick Sullivan
|
|
100
50
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
51
|
## 1.29.0 (2024-01-21)
|
|
112
52
|
|
|
113
53
|
|
package/bin/post-checkout.ts
CHANGED
|
@@ -18,7 +18,7 @@ writeInfo(config, "Running post-checkout hook...");
|
|
|
18
18
|
checkPackageVersion(process.argv?.slice(1));
|
|
19
19
|
|
|
20
20
|
try {
|
|
21
|
-
run("git-lfs version");
|
|
21
|
+
run(config, "git-lfs version");
|
|
22
22
|
} catch (error) {
|
|
23
23
|
writeError(
|
|
24
24
|
config,
|
|
@@ -29,5 +29,5 @@ try {
|
|
|
29
29
|
exitWithError(config);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
run("git lfs post-checkout");
|
|
32
|
+
run(config, "git lfs post-checkout");
|
|
33
33
|
exitWithSuccess(config);
|
package/bin/post-commit.ts
CHANGED
|
@@ -18,7 +18,7 @@ writeInfo(config, "Running post-commit hook...");
|
|
|
18
18
|
checkPackageVersion(process.argv?.slice(1));
|
|
19
19
|
|
|
20
20
|
try {
|
|
21
|
-
run("git-lfs version");
|
|
21
|
+
run(config, "git-lfs version");
|
|
22
22
|
} catch (error) {
|
|
23
23
|
writeError(
|
|
24
24
|
config,
|
|
@@ -29,5 +29,5 @@ try {
|
|
|
29
29
|
exitWithError(config);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
run("git lfs post-commit");
|
|
32
|
+
run(config, "git lfs post-commit");
|
|
33
33
|
exitWithSuccess(config);
|
package/bin/post-merge.ts
CHANGED
|
@@ -18,7 +18,7 @@ writeInfo(config, "Running post-merge hook...");
|
|
|
18
18
|
checkPackageVersion(process.argv?.slice(1));
|
|
19
19
|
|
|
20
20
|
try {
|
|
21
|
-
run("git-lfs version");
|
|
21
|
+
run(config, "git-lfs version");
|
|
22
22
|
} catch (error) {
|
|
23
23
|
writeError(
|
|
24
24
|
config,
|
|
@@ -29,5 +29,5 @@ try {
|
|
|
29
29
|
exitWithError(config);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
run("git lfs post-merge");
|
|
32
|
+
run(config, "git lfs post-merge");
|
|
33
33
|
exitWithSuccess(config);
|
package/bin/pre-install.ts
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
exitWithSuccess,
|
|
5
5
|
handleProcess,
|
|
6
6
|
loadStormConfig,
|
|
7
|
+
run,
|
|
7
8
|
writeInfo
|
|
8
9
|
} from "@storm-software/config-tools";
|
|
9
10
|
|
|
@@ -15,4 +16,6 @@ if (config.ci) {
|
|
|
15
16
|
exitWithSuccess(config);
|
|
16
17
|
}
|
|
17
18
|
|
|
19
|
+
run(config, "npx -y only-allow pnpm");
|
|
20
|
+
|
|
18
21
|
exitWithSuccess(config);
|
package/bin/pre-push.ts
CHANGED
|
@@ -66,10 +66,10 @@ if (errors.length > 0) {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
writeSuccess(config, "✅ Lock file is valid");
|
|
69
|
-
run("git lfs pre-push origin");
|
|
69
|
+
run(config, "git lfs pre-push origin");
|
|
70
70
|
|
|
71
71
|
try {
|
|
72
|
-
run("git-lfs version");
|
|
72
|
+
run(config, "git-lfs version");
|
|
73
73
|
} catch (error) {
|
|
74
74
|
writeError(
|
|
75
75
|
config,
|
|
@@ -80,5 +80,5 @@ try {
|
|
|
80
80
|
exitWithError(config);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
run("git lfs pre-push origin");
|
|
83
|
+
run(config, "git lfs pre-push origin");
|
|
84
84
|
exitWithSuccess(config);
|
package/bin/prepare.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/git-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "⚡ A package containing various git tools used in Storm workspaces.",
|
|
6
6
|
"keywords": [
|
|
@@ -41,15 +41,14 @@
|
|
|
41
41
|
"storm-pre-push": "./bin/pre-push.js"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@commitlint/cli": "18.
|
|
45
|
-
"@commitlint/config-conventional": "18.
|
|
46
|
-
"@commitlint/lint": "18.
|
|
47
|
-
"@commitlint/types": "18.
|
|
44
|
+
"@commitlint/cli": "18.6.0",
|
|
45
|
+
"@commitlint/config-conventional": "18.6.0",
|
|
46
|
+
"@commitlint/lint": "18.6.0",
|
|
47
|
+
"@commitlint/types": "18.6.0",
|
|
48
48
|
"any-shell-escape": "0.1.1",
|
|
49
|
-
"axios": "
|
|
49
|
+
"axios": "1.6.7",
|
|
50
50
|
"chalk": "4.1.0",
|
|
51
51
|
"commander": "11.1.0",
|
|
52
|
-
"conventional-changelog-conventionalcommits": "^7.0.2",
|
|
53
52
|
"deep-map": "2.0.0",
|
|
54
53
|
"doctoc": "2.2.1",
|
|
55
54
|
"es6-weak-map": "2.0.3",
|
|
@@ -57,8 +56,8 @@
|
|
|
57
56
|
"inquirer": "9.2.12",
|
|
58
57
|
"lodash-es": "4.17.21",
|
|
59
58
|
"micromatch": "4.0.5",
|
|
60
|
-
"prettier": "3.
|
|
61
|
-
"remeda": "1.
|
|
59
|
+
"prettier": "3.2.4",
|
|
60
|
+
"remeda": "1.38.0",
|
|
62
61
|
"semver": "7.5.4",
|
|
63
62
|
"word-wrap": "1.2.5"
|
|
64
63
|
},
|
package/project.json
CHANGED
|
@@ -71,32 +71,32 @@
|
|
|
71
71
|
{
|
|
72
72
|
"input": "packages/git-tools",
|
|
73
73
|
"glob": "bin/**/{*,*.*}",
|
|
74
|
-
"output": "
|
|
74
|
+
"output": "/"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"input": "packages/git-tools/src",
|
|
78
78
|
"glob": "lint-staged/**/*.cjs",
|
|
79
|
-
"output": "
|
|
79
|
+
"output": "/"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
"input": "packages/git-tools/src",
|
|
83
83
|
"glob": "lefthook/lefthook.yml",
|
|
84
|
-
"output": "
|
|
84
|
+
"output": "/"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"input": "packages/git-tools/src",
|
|
88
88
|
"glob": "prettier/.prettierignore_staged",
|
|
89
|
-
"output": "
|
|
89
|
+
"output": "/"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
"input": "packages/git-tools/src",
|
|
93
93
|
"glob": "readme/templates/**/*.*",
|
|
94
|
-
"output": "
|
|
94
|
+
"output": "/"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"input": "packages/git-tools/src/commitlint",
|
|
98
98
|
"glob": "commitlint.config.cjs",
|
|
99
|
-
"output": "
|
|
99
|
+
"output": "/"
|
|
100
100
|
}
|
|
101
101
|
]
|
|
102
102
|
}
|
|
@@ -50,8 +50,8 @@ export const runRelease = async (
|
|
|
50
50
|
|
|
51
51
|
const { workspaceVersion, projectsVersionData } = await releaseVersion({
|
|
52
52
|
dryRun: !!options.dryRun,
|
|
53
|
-
verbose:
|
|
54
|
-
preid: config.
|
|
53
|
+
verbose: true,
|
|
54
|
+
preid: config.preid,
|
|
55
55
|
stageChanges: true,
|
|
56
56
|
gitCommit: false
|
|
57
57
|
});
|
|
@@ -62,16 +62,14 @@ export const runRelease = async (
|
|
|
62
62
|
version: nxReleaseConfig.projectsRelationship !== "fixed" ? undefined : workspaceVersion,
|
|
63
63
|
versionData: projectsVersionData,
|
|
64
64
|
dryRun: !!options.dryRun,
|
|
65
|
-
verbose:
|
|
66
|
-
to: options.head,
|
|
67
|
-
from: options.base,
|
|
65
|
+
verbose: true,
|
|
66
|
+
to: options.head ?? process.env.NX_HEAD,
|
|
67
|
+
from: options.base ?? process.env.NX_BASE,
|
|
68
68
|
gitRemote: "origin",
|
|
69
69
|
gitCommit: true,
|
|
70
70
|
gitCommitMessage: `chore(${
|
|
71
71
|
options.project ? options.project : "monorepo"
|
|
72
|
-
}): Release packages
|
|
73
|
-
.map((key) => `${key} v${projectsVersionData[key].newVersion}`)
|
|
74
|
-
.join(", ")}`,
|
|
72
|
+
}): Release workspace packages`,
|
|
75
73
|
workspaceChangelog: nxReleaseConfig.projectsRelationship === "fixed"
|
|
76
74
|
});
|
|
77
75
|
|