npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

@lerna/check-working-tree

3.14.1 • Public • Published

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

install

npm i @lerna/check-working-tree

Downloadsweekly downloads

343,214

version

3.14.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability