@storm-software/git-tools 1.31.2 → 1.32.1
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 +10 -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 +3 -2
- package/src/release/nx-release.ts +6 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,76 +1,28 @@
|
|
|
1
|
-
## 1.31.2 (2024-01-26)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### 🩹 Fixes
|
|
5
|
-
|
|
6
|
-
- **git-tools:** Added code to set providence on publish process ([06439ff3](https://github.com/storm-software/storm-ops/commit/06439ff3))
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### ❤️ Thank You
|
|
10
|
-
|
|
11
|
-
- Patrick Sullivan
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
1
|
|
|
60
2
|
|
|
3
|
+
## 1.32.0 (2024-01-27)
|
|
61
4
|
|
|
62
5
|
|
|
6
|
+
### 🚀 Features
|
|
63
7
|
|
|
8
|
+
- **config-tools:** Added the `preid` config option and removed `preMajor` ([0d8756dc](https://github.com/storm-software/storm-ops/commit/0d8756dc))
|
|
64
9
|
|
|
65
10
|
|
|
11
|
+
### ❤️ Thank You
|
|
66
12
|
|
|
13
|
+
- Patrick Sullivan
|
|
67
14
|
|
|
15
|
+
## 1.31.2 (2024-01-26)
|
|
68
16
|
|
|
69
17
|
|
|
18
|
+
### 🩹 Fixes
|
|
70
19
|
|
|
20
|
+
- **git-tools:** Added code to set providence on publish process ([06439ff3](https://github.com/storm-software/storm-ops/commit/06439ff3))
|
|
71
21
|
|
|
72
22
|
|
|
23
|
+
### ❤️ Thank You
|
|
73
24
|
|
|
25
|
+
- Patrick Sullivan
|
|
74
26
|
|
|
75
27
|
|
|
76
28
|
|
|
@@ -98,16 +50,6 @@
|
|
|
98
50
|
|
|
99
51
|
- Patrick Sullivan
|
|
100
52
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
53
|
## 1.29.0 (2024-01-21)
|
|
112
54
|
|
|
113
55
|
|
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.1",
|
|
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
|
}
|
|
@@ -83,7 +83,7 @@ const stormChangelogRenderer: ChangelogRenderer = async ({
|
|
|
83
83
|
`${await createVersionTitle(
|
|
84
84
|
releaseVersion,
|
|
85
85
|
changelogRenderOptions
|
|
86
|
-
)}
|
|
86
|
+
)}${entryWhenNoChanges}`,
|
|
87
87
|
""
|
|
88
88
|
);
|
|
89
89
|
}
|
|
@@ -152,7 +152,7 @@ const stormChangelogRenderer: ChangelogRenderer = async ({
|
|
|
152
152
|
changelogRenderOptions,
|
|
153
153
|
project,
|
|
154
154
|
projectGraph.nodes[project].data
|
|
155
|
-
)}
|
|
155
|
+
)}${entryWhenNoChanges}`,
|
|
156
156
|
""
|
|
157
157
|
);
|
|
158
158
|
}
|
|
@@ -243,6 +243,7 @@ const stormChangelogRenderer: ChangelogRenderer = async ({
|
|
|
243
243
|
break;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
+
|
|
246
247
|
// Look up any other emails against the ungh.cc API
|
|
247
248
|
const { data } = await axios
|
|
248
249
|
.get<any, { data?: { user?: { username: string } } }>(
|
|
@@ -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 latest workspace packages`,
|
|
75
73
|
workspaceChangelog: nxReleaseConfig.projectsRelationship === "fixed"
|
|
76
74
|
});
|
|
77
75
|
|