@lerna/check-working-tree
Check git working tree status and error appropriately
Last updated 3 years ago by jameshenry .
MIT · Repository · Bugs · Original npm
$ cnpm install @lerna/check-working-tree 
SYNC missed versions from official npm registry.

@lerna/check-working-tree

Check git working tree status and error appropriately

Usage

const { checkWorkingTree } = require("@lerna/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

  • 6.0.3                                ...           latest (3 years ago)

5 Versions

  • 6.0.0-alpha.2                                ...           3 years ago
  • 6.0.3                                ...           3 years ago
  • 4.0.0                                ...           5 years ago
  • 3.14.2                                ...           6 years ago
  • 3.16.5                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org