Socket
Socket
Sign inDemoInstall

@lerna/check-working-tree

Package Overview
Dependencies
60
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @lerna/check-working-tree

Check git working tree status and error appropriately


Version published
Weekly downloads
448K
decreased by-5.26%
Maintainers
2
Install size
753 kB
Created
Weekly downloads
 

Changelog

Source

3.16.5 (2019-10-07)

Bug Fixes

  • bootstrap: Run lifecycle scripts in topological queue instead of batches (#2224) (d8d33f7)
  • child-process: Use Set to manage book-keeping instead of mutable integer (5dbea32)

Readme

Source

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

Keywords

FAQs

Last updated on 07 Oct 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc