@0x-lerna-fork/check-working-tree

3.16.3 • Public • Published

@0x-lerna-fork/check-working-tree

Check git working tree status and error appropriately

Usage

const checkWorkingTree = require("@0x-lerna-fork/check-working-tree");

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

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

Install lerna for access to the lerna CLI.

Readme

Keywords

Package Sidebar

Install

npm i @0x-lerna-fork/check-working-tree

Weekly Downloads

5

Version

3.16.3

License

MIT

Unpacked Size

7.02 kB

Total Files

5

Last publish

Collaborators

  • albrow
  • fberger