@storm-software/git-tools 1.31.1 → 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 CHANGED
@@ -1,64 +1,26 @@
1
+ ## 1.32.0 (2024-01-27)
1
2
 
2
3
 
4
+ ### 🚀 Features
3
5
 
6
+ - **config-tools:** Added the `preid` config option and removed `preMajor` ([0d8756dc](https://github.com/storm-software/storm-ops/commit/0d8756dc))
4
7
 
5
8
 
9
+ ### ❤️ Thank You
6
10
 
11
+ - Patrick Sullivan
7
12
 
13
+ ## 1.31.2 (2024-01-26)
8
14
 
9
15
 
16
+ ### 🩹 Fixes
10
17
 
18
+ - **git-tools:** Added code to set providence on publish process ([06439ff3](https://github.com/storm-software/storm-ops/commit/06439ff3))
11
19
 
12
20
 
21
+ ### ❤️ Thank You
13
22
 
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
-
60
-
61
-
23
+ - Patrick Sullivan
62
24
 
63
25
 
64
26
 
@@ -86,16 +48,6 @@
86
48
 
87
49
  - Patrick Sullivan
88
50
 
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
51
  ## 1.29.0 (2024-01-21)
100
52
 
101
53
 
@@ -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);
@@ -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);
@@ -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
@@ -6,7 +6,7 @@ const config = await loadStormConfig();
6
6
  handleProcess(config);
7
7
 
8
8
  if (!config.ci) {
9
- run("lefthook install");
9
+ run(config, "lefthook install");
10
10
  }
11
11
 
12
12
  exitWithSuccess(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "1.31.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.2.0",
45
- "@commitlint/config-conventional": "18.1.0",
46
- "@commitlint/lint": "18.1.0",
47
- "@commitlint/types": "18.1.0",
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": ">=1.6.0",
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.0.3",
61
- "remeda": "1.29.0",
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
  }
@@ -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 } } }>(
@@ -47,7 +47,7 @@ pre-commit:
47
47
  glob: "**/*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
48
48
  run: npx biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} && git update-index"
49
49
  readme-gen:
50
- glob: "**/{README.md,package.json}"
50
+ glob: "**/{README.md,package.json,executors.json,generators.json}"
51
51
  run: "npx storm-git readme-gen --templates=\"./docs/readme-templates\" && git update-index"
52
52
  format:
53
53
  glob: "**/*.*"
@@ -31,6 +31,7 @@ export const runRelease = async (
31
31
  process.env.GIT_AUTHOR_EMAIL = `${authorName}@users.noreply.github.com`;
32
32
  process.env.GIT_COMMITTER_NAME = committerName;
33
33
  process.env.GIT_COMMITTER_EMAIL = `${committerName}@users.noreply.github.com`;
34
+ process.env.NPM_CONFIG_PROVENANCE = "true";
34
35
 
35
36
  const projectGraph = await createProjectGraphAsync({ exitOnError: true });
36
37
  const nxJson = readNxJson();
@@ -49,8 +50,8 @@ export const runRelease = async (
49
50
 
50
51
  const { workspaceVersion, projectsVersionData } = await releaseVersion({
51
52
  dryRun: !!options.dryRun,
52
- verbose: !config.ci,
53
- preid: config.preMajor ? "canary" : undefined,
53
+ verbose: true,
54
+ preid: config.preid,
54
55
  stageChanges: true,
55
56
  gitCommit: false
56
57
  });
@@ -61,16 +62,14 @@ export const runRelease = async (
61
62
  version: nxReleaseConfig.projectsRelationship !== "fixed" ? undefined : workspaceVersion,
62
63
  versionData: projectsVersionData,
63
64
  dryRun: !!options.dryRun,
64
- verbose: !config.ci,
65
- to: options.head,
66
- from: options.base,
65
+ verbose: true,
66
+ to: options.head ?? process.env.NX_HEAD,
67
+ from: options.base ?? process.env.NX_BASE,
67
68
  gitRemote: "origin",
68
69
  gitCommit: true,
69
70
  gitCommitMessage: `chore(${
70
71
  options.project ? options.project : "monorepo"
71
- }): Release packages ${Object.keys(projectsVersionData)
72
- .map((key) => `${key} v${projectsVersionData[key].newVersion}`)
73
- .join(", ")}`,
72
+ }): Release workspace packages`,
74
73
  workspaceChangelog: nxReleaseConfig.projectsRelationship === "fixed"
75
74
  });
76
75