File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 3232 "preventMajorBump" : {
3333 "type" : " boolean"
3434 },
35- "releaseTypes " : {
35+ "bumps " : {
3636 "type" : " object" ,
3737 "additionalProperties" : {
3838 "type" : " string" ,
Original file line number Diff line number Diff 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 : "./" ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { minimatch } from "minimatch";
1919import { containsPath } from "./utils/utils.js" ;
2020import 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 ) ;
You can’t perform that action at this time.
0 commit comments