# bolt-check

> Run the two major checks that the bolt package does in yarn workspaces

Latest version **0.4.5** (published 2020-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install bolt-check
pnpm add bolt-check
yarn add bolt-check
bun add bolt-check
```

Provides the command `bolt-check`.

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: esm support; no vulnerabilities; high maintenance score; popular repo.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.4.5 |
| Published | 2020-01-24 |
| First published | 2019-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 9 |
| Unpacked size | 42.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12597 |
| Author | Ben Conolly |
| Maintainers | noviny |

## Links

- npm: https://www.npmjs.com/package/bolt-check
- Repository: https://github.com/changesets/changesets/tree/master/packages/bolt-check
- npm.io page: https://npm.io/package/bolt-check

## Dependencies (9)

- [meow](https://npm.io/package/meow.md) ^5.0.0
- [chalk](https://npm.io/package/chalk.md) ^2.1.0
- [semver](https://npm.io/package/semver.md) ^5.4.1
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.1
- [strip-ansi](https://npm.io/package/strip-ansi.md) ^5.2.0
- [detect-indent](https://npm.io/package/detect-indent.md) ^6.0.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.4.4
- [get-workspaces](https://npm.io/package/get-workspaces.md) ^0.6.0
- [@changesets/get-version-range-type](https://npm.io/package/@changesets/get-version-range-type.md) ^0.1.1

## Recent versions

- 0.4.5 (latest) — 2020-01-24
- 0.4.4 — 2019-09-19
- 0.4.3 — 2019-09-13
- 0.4.2 — 2019-09-10
- 0.4.1 — 2019-07-09
- 0.4.0 — 2019-07-05
- 0.3.0 — 2019-06-07
- 0.2.0 — 2019-06-02
- 0.1.0 — 2019-05-31

## README

# bolt-check

> A very simple command line utility to perform some of bolt's checks in yarn workspaces

Recently have been looking at using yarn workspaces over bolt, but was missing
bolt's checks. This very simple utility does the two checks I want the most.

```
yarn bolt-check
```

then to fix most errors detected:

```
yarn bolt-check --fix
```

## Make sure internal dependencies are compatible

We want to ensure we always use local versions of packages through yarn link, not
versions installed from npm. This ensures as we release new suites of packages,
they will all work together.

## Make sure external dependencies are all on the same version

When doing installs, we would like each package to use the same version of external
packages. We do this by having the 'correct' version recorded in the root `package.json`,
then ensuring that all workspaces a) rely on the same version as the root, and b) do
not contain any dependencies that are not in the root.

## I am using yarn workspaces how should I use this?

We recommend adding the script

```
"postinstall": "bolt-check"
```

## I am using bolt

You probably don't need this package as a postinstall script, but if you globally install
`bolt-check` you can use

```
bolt-check --fix
```

to help you out.

## So I don't need bolt anymore? I should just use yarn workspaces

Depends! This package is not a replacement for bolt, doesn't do nearly as much as bolt,
and implements the two above checks in a fairly naive/simple way. Bolt is still a great
tool, and a great way to manage projects.

Most importantly, we aren't doing any work installing packages, so guarantees that bolt
can make by owning that, this won't have. Also, since `bolt-check` must be separately
installed, you won't gain benefits from short-circuiting installs.

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