---
url: https://relizy.dev/typedoc/interfaces/BumpOptions.md
---
[relizy](../index.md) / BumpOptions

# Interface: BumpOptions

Defined in: [packages/relizy/src/types.ts:611](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L611)

## Extends

* [`BumpConfig`](BumpConfig.md)

## Properties

### canary?

> `optional` **canary?**: `boolean`

Defined in: [packages/relizy/src/types.ts:659](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L659)

Publish a canary release from the current commit

#### Default

```ts
false
```

***

### capZeroMajor?

> `optional` **capZeroMajor?**: `boolean`

Defined in: [packages/relizy/src/types.ts:578](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L578)

Cap commit-detected `major` bumps to `minor` while the current version is
in the `0.x.y` range (semver §4, initial development), so a breaking change
does not graduate a `0.x` package to `1.0.0` automatically.

Set to `false` to opt out: a breaking commit then bumps `0.x.y` straight to
`1.0.0`. This only affects **commit-based** detection; explicit CLI release
types (`--major`, `--premajor`, …) are never capped. Once the package
reaches `1.x`, this option is a no-op.

#### Default

```ts
true
```

#### Inherited from

[`BumpConfig`](BumpConfig.md).[`capZeroMajor`](BumpConfig.md#capzeromajor)

***

### clean?

> `optional` **clean?**: `boolean`

Defined in: [packages/relizy/src/types.ts:538](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L538)

Check if there are any changes to commit before bumping.

#### Default

```ts
true
```

#### Inherited from

[`BumpConfig`](BumpConfig.md).[`clean`](BumpConfig.md#clean)

***

### config?

> `optional` **config?**: [`ResolvedRelizyConfig`](../type-aliases/ResolvedRelizyConfig.md)

Defined in: [packages/relizy/src/types.ts:620](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L620)

Use custom config

***

### configName?

> `optional` **configName?**: `string`

Defined in: [packages/relizy/src/types.ts:635](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L635)

Custom config file name (e.g. `relizy.standalone` for `relizy.standalone.config.ts`), or the path of the
config file: absolute, or relative to the project with its extension (`/configs/relizy.config.ts`)

#### Default

```ts
'relizy'
```

***

### dependencyTypes?

> `optional` **dependencyTypes?**: (`"dependencies"` | `"peerDependencies"` | `"devDependencies"`)\[]

Defined in: [packages/relizy/src/types.ts:548](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L548)

Dependency fields whose internal dependencies bump the package (a patch):
when its published range rejects their new version, or on every bump of
them, see `dependents`.

`peerDependencies` is not included by default: a package is bumped only when
the range of its peer dependency rejects the new version, see `outOfRangePeers`.

#### Default

```ts
['dependencies']
```

#### Inherited from

[`BumpConfig`](BumpConfig.md).[`dependencyTypes`](BumpConfig.md#dependencytypes)

***

### dependents?

> `optional` **dependents?**: `"always"` | `"out-of-range"`

Defined in: [packages/relizy/src/types.ts:561](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L561)

When a package is bumped because of an internal dependency listed in one of
the `dependencyTypes` fields:

* `out-of-range`: only when the range it was published with rejects the new
  version of the dependency (`workspace:*` on every bump, `workspace:^` on a
  major, a minor in `0.x` or a prerelease). A specifier that is not a semver
  range (`catalog:`, `link:`, `npm:`...) counts as out of range. The range
  is read from its `package.json` at its last release, as for `outOfRangePeers`.
* `always`: on every bump of the dependency, e.g. for a package that
  bundles its dependency.

#### Default

```ts
'out-of-range'
```

#### Inherited from

[`BumpConfig`](BumpConfig.md).[`dependents`](BumpConfig.md#dependents)

***

### dryRun?

> `optional` **dryRun?**: `boolean`

Defined in: [packages/relizy/src/types.ts:616](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L616)

Run without side effects

#### Default

```ts
false
```

***

### force?

> `optional` **force?**: `boolean`

Defined in: [packages/relizy/src/types.ts:629](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L629)

Bump all packages even if there are no commits

#### Default

```ts
false
```

***

### groups?

> `optional` **groups?**: `string`\[]

Defined in: [packages/relizy/src/types.ts:668](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L668)

Only process these version groups (`monorepo.groups`), by name.

#### Default

```ts
all groups
```

***

### logLevel?

> `optional` **logLevel?**: [`RelizyLogLevel`](../type-aliases/RelizyLogLevel.md)

Defined in: [packages/relizy/src/types.ts:624](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L624)

Set log level

***

### onConfirm?

> `optional` **onConfirm?**: (`plan`) => `boolean` | `Promise`<`boolean`>

Defined in: [packages/relizy/src/types.ts:654](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L654)

Validates the bump plan instead of the prompt of the terminal, once the versions are computed and
before anything is written: `false` cancels the run as a refused prompt (a `RelizyCancelError`,
nothing written). An error thrown by it fails the run (nothing written, the error as is): throw a
`RelizyCancelError` to cancel instead. Not called with `yes`, nor with `bump.yes: true` in the
config or the profile. For an application asking in its own interface

#### Parameters

##### plan

[`ConfirmPlan`](ConfirmPlan.md)

#### Returns

`boolean` | `Promise`<`boolean`>

***

### onProgress?

> `optional` **onProgress?**: [`RelizyEventListener`](../type-aliases/RelizyEventListener.md)

Defined in: [packages/relizy/src/types.ts:646](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L646)

Called with each event of the run (steps started, done, failed or skipped, progress, links,
logs, the end): the same events as `RELIZY_REPORTER=json`, for a program following the run.
A listener that throws does not stop the run.

***

### outOfRangePeers?

> `optional` **outOfRangePeers?**: `"warn"` | `"error"` | `"bump"`

Defined in: [packages/relizy/src/types.ts:608](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L608)

What to do with a package that is not bumped while the range of one of its
peer dependencies, as published, does not accept the new version of that
dependency: `workspace:*` is published as the exact version, so any new
version is out of its range; `workspace:^` only on a major, or on a
prerelease (npm rejects `6.20.0-beta.0` for `^6.19.1`). Its consumers would
get peer dependency errors (npm) or warnings (pnpm).

The published range is read from the `package.json` of the package at its
last release (its last tag): a peer dependency added since then rejects
nothing (no consumer has it), a range changed since then is checked as it
was published, and a package never released has nothing out of range.

* `bump`: bump the package, so it is released with an up-to-date range: a
  patch, or a major when the dependency makes a breaking change. The packages
  outside of the release (e.g. not in the targeted `--group`) are reported
  with a warning.
* `warn`: only warn before publishing.
* `error`: fail the release before publishing.

Whatever this option, a package released while its peer dependency makes a
breaking change its published range rejects is bumped as for a breaking
commit (`capZeroMajor` applies). In `unified`/`selective` mode, a peer
dependency of another version group gives that bump to the root version.

Independent of `dependencyTypes`, which bumps the dependents on every bump
of their dependencies (or only out of range, see `dependents`).

#### Default

```ts
'bump'
```

#### Inherited from

[`BumpConfig`](BumpConfig.md).[`outOfRangePeers`](BumpConfig.md#outofrangepeers)

***

### preid?

> `optional` **preid?**: `string`

Defined in: [packages/relizy/src/types.ts:529](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L529)

Prerelease identifier (e.g. 'beta', 'alpha')

#### Inherited from

[`BumpConfig`](BumpConfig.md).[`preid`](BumpConfig.md#preid)

***

### privatePackages?

> `optional` **privatePackages?**: [`PrivatePackages`](../type-aliases/PrivatePackages.md)

Defined in: [packages/relizy/src/types.ts:663](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L663)

Override of `monorepo.privatePackages`: `release` bumps the private packages too

***

### profile?

> `optional` **profile?**: `string`

Defined in: [packages/relizy/src/types.ts:640](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L640)

Release profile to apply (`profiles` of the config), as `--profile`: its options
come after the config file and before the options of this run

***

### suffix?

> `optional` **suffix?**: `string`

Defined in: [packages/relizy/src/types.ts:533](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L533)

Custom suffix for prerelease versions - replace the last .X with .suffix (e.g. 1.0.0-beta.0 -> 1.0.0-beta.suffix), as `--suffix`

#### Inherited from

[`BumpConfig`](BumpConfig.md).[`suffix`](BumpConfig.md#suffix)

***

### type?

> `optional` **type?**: [`BumpReleaseType`](../type-aliases/BumpReleaseType.md)

Defined in: [packages/relizy/src/types.ts:525](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L525)

Release type (e.g. 'major', 'minor', 'patch', 'prerelease', 'prepatch', 'preminor', 'premajor')

#### Default

```ts
'release'
```

#### Inherited from

[`BumpConfig`](BumpConfig.md).[`type`](BumpConfig.md#type)

***

### yes?

> `optional` **yes?**: `boolean`

Defined in: [packages/relizy/src/types.ts:566](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L566)

Skip confirmation prompt about bumping packages

#### Default

```ts
false
```

#### Inherited from

[`BumpConfig`](BumpConfig.md).[`yes`](BumpConfig.md#yes)
