Skip to content

Commit bc4cb43

Browse files
committed
fix: update "bumps" option
1 parent 2cde280 commit bc4cb43

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ You can specify custom mapping from conventional commit types to the version bum
131131

132132
```jsonc
133133
{
134-
"customTypes": {
134+
"bumps": {
135135
// Commit "addition: some features" will infer a minor bump for affected packages.
136136
"addition": "minor"
137137
}

schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"preventMajorBump": {
3333
"type": "boolean"
3434
},
35-
"releaseTypes": {
35+
"bumps": {
3636
"type": "object",
3737
"additionalProperties": {
3838
"type": "string",

src/lib/options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export interface Options {
106106
* Record of conventional commit type to version bump. By default, all types
107107
* specified by `@commitlint/config-conventional` (based on the Angular convention) are defined.
108108
*/
109-
customTypes?: Record<string, Bump | null> | undefined;
109+
bumps?: Record<string, Bump | null> | undefined;
110110

111111
/**
112112
* A record of manual promotions and their version bump to be incremented for each package.
@@ -148,7 +148,7 @@ export const DEFAULT_OPTIONS = {
148148
fixed: [],
149149
inputs: ["{workspace}/**/*", "{package}/**/*"],
150150
base: undefined,
151-
customTypes: {},
151+
bumps: {},
152152
promotions: {},
153153
preReleases: {},
154154
workspaceRoot: "./",

src/lib/versioning.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { minimatch } from "minimatch";
1919
import { containsPath } from "./utils/utils.js";
2020
import slash from "slash";
2121

22-
const DEFAULT_TYPES: Record<string, Bump | null> = {
22+
const DEFAULT_BUMPS: Record<string, Bump | null> = {
2323
patch: "patch",
2424
minor: "minor",
2525
breaking: "major",
@@ -301,8 +301,8 @@ function inferBumpFromCommits(
301301
let bump: Bump | undefined;
302302

303303
const typeMap = {
304-
...DEFAULT_TYPES,
305-
...option(options, "customTypes"),
304+
...DEFAULT_BUMPS,
305+
...option(options, "bumps"),
306306
};
307307

308308
const workspaceRoot = resolveWorkspaceRoot(workspace);

0 commit comments

Comments
 (0)