@releasekit/version 0.2.0-next.1 → 0.2.0-next.2

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.
@@ -964,10 +964,11 @@ var CONVENTIONAL_COMMIT_REGEX = /^(\w+)(?:\(([^)]+)\))?(!)?: (.+)(?:\n\n([\s\S]*
964
964
  var BREAKING_CHANGE_REGEX = /BREAKING CHANGE: ([\s\S]+?)(?:\n\n|$)/;
965
965
  function extractChangelogEntriesFromCommits(projectDir, revisionRange) {
966
966
  try {
967
- const output = execSync("git", ["log", revisionRange, "--pretty=format:%B---COMMIT_DELIMITER---", "--no-merges"], {
968
- cwd: projectDir,
969
- encoding: "utf8"
970
- }).toString();
967
+ const output = execSync(
968
+ "git",
969
+ ["log", revisionRange, "--pretty=format:%B---COMMIT_DELIMITER---", "--no-merges", "--", "."],
970
+ { cwd: projectDir, encoding: "utf8" }
971
+ ).toString();
971
972
  const commits = output.split("---COMMIT_DELIMITER---").filter((commit) => commit.trim() !== "");
972
973
  return commits.map((commit) => parseCommitMessage(commit)).filter((entry) => entry !== null);
973
974
  } catch (error) {
package/dist/cli.cjs CHANGED
@@ -391,10 +391,11 @@ var CONVENTIONAL_COMMIT_REGEX = /^(\w+)(?:\(([^)]+)\))?(!)?: (.+)(?:\n\n([\s\S]*
391
391
  var BREAKING_CHANGE_REGEX = /BREAKING CHANGE: ([\s\S]+?)(?:\n\n|$)/;
392
392
  function extractChangelogEntriesFromCommits(projectDir, revisionRange) {
393
393
  try {
394
- const output = execSync("git", ["log", revisionRange, "--pretty=format:%B---COMMIT_DELIMITER---", "--no-merges"], {
395
- cwd: projectDir,
396
- encoding: "utf8"
397
- }).toString();
394
+ const output = execSync(
395
+ "git",
396
+ ["log", revisionRange, "--pretty=format:%B---COMMIT_DELIMITER---", "--no-merges", "--", "."],
397
+ { cwd: projectDir, encoding: "utf8" }
398
+ ).toString();
398
399
  const commits = output.split("---COMMIT_DELIMITER---").filter((commit) => commit.trim() !== "");
399
400
  return commits.map((commit) => parseCommitMessage(commit)).filter((entry) => entry !== null);
400
401
  } catch (error) {
package/dist/cli.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  loadConfig,
6
6
  log,
7
7
  printJsonOutput
8
- } from "./chunk-3JG7UWIT.js";
8
+ } from "./chunk-OQ5Z3KXR.js";
9
9
  import "./chunk-GQLJ7JQY.js";
10
10
 
11
11
  // src/cli.ts
package/dist/index.cjs CHANGED
@@ -1133,10 +1133,11 @@ var CONVENTIONAL_COMMIT_REGEX = /^(\w+)(?:\(([^)]+)\))?(!)?: (.+)(?:\n\n([\s\S]*
1133
1133
  var BREAKING_CHANGE_REGEX = /BREAKING CHANGE: ([\s\S]+?)(?:\n\n|$)/;
1134
1134
  function extractChangelogEntriesFromCommits(projectDir, revisionRange) {
1135
1135
  try {
1136
- const output = execSync("git", ["log", revisionRange, "--pretty=format:%B---COMMIT_DELIMITER---", "--no-merges"], {
1137
- cwd: projectDir,
1138
- encoding: "utf8"
1139
- }).toString();
1136
+ const output = execSync(
1137
+ "git",
1138
+ ["log", revisionRange, "--pretty=format:%B---COMMIT_DELIMITER---", "--no-merges", "--", "."],
1139
+ { cwd: projectDir, encoding: "utf8" }
1140
+ ).toString();
1140
1141
  const commits = output.split("---COMMIT_DELIMITER---").filter((commit) => commit.trim() !== "");
1141
1142
  return commits.map((commit) => parseCommitMessage(commit)).filter((entry) => entry !== null);
1142
1143
  } catch (error) {
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  enableJsonOutput,
11
11
  getJsonData,
12
12
  loadConfig
13
- } from "./chunk-3JG7UWIT.js";
13
+ } from "./chunk-OQ5Z3KXR.js";
14
14
  import {
15
15
  BaseVersionError
16
16
  } from "./chunk-GQLJ7JQY.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@releasekit/version",
3
- "version": "0.2.0-next.1",
3
+ "version": "0.2.0-next.2",
4
4
  "description": "Semantic versioning based on Git history and conventional commits",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",