New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pebblecode/npm-hg-version

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

@pebblecode/npm-hg-version

Tag Mercurial repository on npm version

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Mercurial support for npm version

This module tags your Mercurial repository as a result of doing npm version.

To your package.json, add:

  scripts: {
    "preversion": "node ./node_modules/npm-hg-version/hg-version.js",
    "postversion": "node ./node_modules/npm-hg-version/hg-version.js"
  }

You can now do npm version patch && npm publish.

Note that this module does not exactly mimic the git behaviour in npm version. In particular, it:

  • refuses to operate on a repository with modifications
  • will not add package.json/npm-shrinkwrap.json for you

If you want to force a tag despite modifications, use npm version --ignore-modifications. This will still bail if package.json (or npm-shrinkwrap.json) is modified, so as to stop you from accidentally committing e.g. dependency changes as a version bump.

Keywords

FAQs

Package last updated on 01 Jun 2016

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc