📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

exit-on-dirty-git

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exit-on-dirty-git

Exit with status code (1) if something is uncommited in current tree

1.0.1
latest
npm
Version published
Weekly downloads
15
400%
Maintainers
1
Weekly downloads
 
Created
Source

Exit on dirty git

This module is based on dity-git and just exposes binary that will exit with status code 1 in case there're some uncommitted changes in current working directory.

Can be useful as part of prepublish hook, possibly.

Installation

If you're going to use it from npm-scripts you don't need to install it globally and could just run

npm i exit-on-dirty-git

Usage

Just call it whenever you need it. Sample usage:

  "scripts": {
    "prepublish": "npm run build && exit-on-dirty-git",
  },

Keywords

git

FAQs

Package last updated on 24 May 2015

Did you know?

Socket

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