# @spryker-lerna/check-working-tree

> Check git working tree status and error appropriately

Latest version **5.1.4** (published 2022-06-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @spryker-lerna/check-working-tree
pnpm add @spryker-lerna/check-working-tree
yarn add @spryker-lerna/check-working-tree
bun add @spryker-lerna/check-working-tree
```

## Health

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

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

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.1.4 |
| Published | 2022-06-04 |
| First published | 2022-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^14.19.3 \|\| >=16.0.0 |
| Dependencies | 3 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 36033 |
| Author | Daniel Stockman |
| Maintainers | spryker-bot |
| Keywords | lerna, utils, git, tree |

## Links

- npm: https://www.npmjs.com/package/@spryker-lerna/check-working-tree
- Repository: https://github.com/lerna/lerna
- Homepage: https://github.com/lerna/lerna/tree/master/utils/check-working-tree#readme
- Issues: https://github.com/lerna/lerna/issues
- npm.io page: https://npm.io/package/@spryker-lerna/check-working-tree

## Dependencies (3)

- [@spryker-lerna/describe-ref](https://npm.io/package/@spryker-lerna/describe-ref.md) 5.1.0
- [@spryker-lerna/validation-error](https://npm.io/package/@spryker-lerna/validation-error.md) 5.1.0
- [@spryker-lerna/collect-uncommitted](https://npm.io/package/@spryker-lerna/collect-uncommitted.md) 5.1.0

## Recent versions

- 5.1.4 (latest) — 2022-06-04
- 5.2.0 (lerna-temp) — 2022-06-04
- 5.1.0 — 2022-06-04

## README

# `@lerna/check-working-tree`

> Check git working tree status and error appropriately

## Usage

```js
const { checkWorkingTree } = require("@lerna/check-working-tree");

// values listed here are their defaults
const options = {
  cwd: process.cwd(),
  match: undefined,
};

(async () => {
  try {
    await checkWorkingTree(options);
  } catch (err) {
    console.error(err.message);
    // "Working tree has uncommitted changes, ..."
  }
})();
```

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.

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