# wieldo

> Manages relations between packages in monorepo

Latest version **1.1.0** (published 2018-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install wieldo
pnpm add wieldo
yarn add wieldo
bun add wieldo
```

Provides the command `wieldo`.

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2018-10-03 |
| First published | 2018-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 20.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Kamil Kisiela |
| Maintainers | kamilkisiela |
| Keywords | monorepo, tool, packages |

## Links

- npm: https://www.npmjs.com/package/wieldo
- Repository: https://github.com/kamilkisiela/wieldo
- Homepage: https://github.com/kamilkisiela/wieldo#readme
- Issues: https://github.com/kamilkisiela/wieldo/issues
- npm.io page: https://npm.io/package/wieldo

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [semver](https://npm.io/package/semver.md) ^5.5.1
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.2
- [commander](https://npm.io/package/commander.md) ^2.18.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2018-10-03
- 1.0.0 — 2018-10-03

## README

# wieldo

Manages relations between packages in monorepo.

## API

### `wieldo version <name> <version>`

Sets a new version of a package

### `wieldo bump <name> <type>`

Bumps a version of a package

- `-i <preid>`, `--preid <preid>` _type of prerelease - x.x.x-[PREID].x_

### `wieldo release <name>`

Releases a new version of a package

## Hooks

Available hooks: `version` and `release`

```json
{
  "wieldo": {
    "version": "./on-version.js",
    "release": "./on-release.js"
  }
}
```

```js
module.exports = function(name, version, helpers) {
  // logic
}
```

## Helpers

**`readPackageJson(name: string): string`**

Reads package.json of a package.

**`writePackageJson(name: string): string`**

Writes package.json.

**`getVersionOfPackage(name: string): string`**

Reads version of a package (based on package.json).

**`bumpPackage(source: string, name: string, version: string): void`**

Changes version of a package (name) in (source) package.json.

**`compare(source: string, name: string): void`**

Checks if version of a package (name) satisfies a range in (source) package.json, if not it throws an error.

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