Socket
Socket
Sign inDemoInstall

@release-it/bumper

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@release-it/bumper

Version read/write plugin for release-it


Version published
Weekly downloads
26K
increased by2.87%
Maintainers
1
Weekly downloads
 
Created
Source

Version read/write plugin for release-it

This plugin reads and/or writes version/manifest files.

npm install --save-dev @release-it/bumper

In release-it config:

"plugins": {
  "@release-it/bumper": {
    "out": "manifest.json"
  }
}

In case the in option is used, the version from this file will take precedence over the version from package.json or the latest Git tag (which release-it uses by default).

The default type is application/json, but text/plain is also supported. In that case the whole file is used to read and/or write the version.

"plugins": {
  "@release-it/bumper": {
    "in": { "file": "VERSION", "type": "text/plain" },
    "out": { "file": "VERSION", "type": "text/plain" }
  }
}

The out option can also be an array of files:

"plugins": {
  "@release-it/bumper": {
    "out": ["manifest.json", "bower.json"]
  }
}

The path option (default: "version") can be used to change a different property. the following example will set the deeper.current property to the new version in manifest.json:

"plugins": {
  "@release-it/bumper": {
    "out": { "file": "manifest.json", "path": "deeper.current" }
  }
}

Keywords

FAQs

Package last updated on 04 Jun 2019

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