# set-versions

> A CLI tool to set the version of leaf packages in a monorepo

Latest version **1.0.3** (published 2019-07-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install set-versions
pnpm add set-versions
yarn add set-versions
bun add set-versions
```

Provides the command `set-versions`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-07-01 |
| First published | 2019-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 11.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Diego Fernandez |
| Maintainers | dfernandez79 |
| Keywords | monorepo, yarn, workspaces, version |

## Links

- npm: https://www.npmjs.com/package/set-versions
- npm.io page: https://npm.io/package/set-versions

## Dependencies (4)

- [glob](https://npm.io/package/glob.md) ^7.1.4
- [meow](https://npm.io/package/meow.md) ^5.0.0
- [read-pkg-up](https://npm.io/package/read-pkg-up.md) ^6.0.0
- [glob-promise](https://npm.io/package/glob-promise.md) ^3.4.0

## Recent versions

- 1.0.3 (latest) — 2019-07-01
- 1.0.2 — 2019-06-29
- 1.0.1 — 2019-06-29
- 1.0.0 — 2019-06-29

## README

# set-versions

A CLI tool to set the version of leaf packages in a monorepo.

## Install

```
yarn add -D set-versions
```

## Usage

```
set-versions [options] <version> <packages>
```

### Options
`--workspaces` (alias `-w`)

Use workspaces from `package.json`.
If no version is specified, it uses the version from `package.json`.

## Examples

```
$ set-versions 2.0.0 packages/*/package.json
# Set the version of packages/*/package.json to 2.0.0 and also
# updates any dependencies between packages

$ set-versions --workspaces
# Takes the version from root package.json and then updates all the
# leaf packages

$ set-versions 1.5.0 --workspaces
# Set version of the root package.json and leaf packages to 1.5.0
```

## Related

* [Yarn Workspaces](https://yarnpkg.com/lang/en/docs/workspaces/)

---
_Source: https://npm.io/package/set-versions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
