Nanoprogrammed Penultimate Musicianship
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@lerna/check-working-tree

3.16.5 • 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

920,416

Version

3.16.5

License

MIT

Unpacked Size

6.86 kB

Total Files

5

Last publish

Collaborators

  • avatar
  • avatar