@0x-lerna-fork/check-working-tree
Check git working tree status and error appropriately
Last updated a year ago by fberger .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @0x-lerna-fork/check-working-tree 
SYNC missed versions from official npm registry.

@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.

Current Tags

  • 3.16.3                                ...           latest (a year ago)

2 Versions

  • 3.16.3                                ...           a year ago
  • 3.16.2                                ...           a year ago
Maintainers (2)
Downloads
Today 1
This Week 1
This Month 5
Last Day 0
Last Week 0
Last Month 2
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |