Socket
Socket
Sign inDemoInstall

standard-version-updater-xml

Package Overview
Dependencies
11
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    standard-version-updater-xml

An XML updater for standard-version.


Version published
Maintainers
1
Install size
5.42 MB
Created

Changelog

Source

1.0.0 (2021-05-17)

Features

  • readVersion (5b63a06)
  • support node10 (1562bb3)
  • writeVersion (985a028)

Readme

Source

standard-version-updater-xml

An XML updater for standard-version. All the parsing and writing is done by xmlbuilder2. Huge props to them 🎉, support these projects in any way you can!

Install

npm install --save-dev standard-version-updater-xml

Usage

You can use it as any other standard-version custom updater. In your config file:

JS Config

// .versionrc.js
const xmlUpdater = require('standard-version-updater-xml');

const xmlTracker = {
  filename: 'PATH_TO_MY_XML_FILE',
  updater: xmlUpdater,
};

module.exports = {
  packageFiles: [xmlTracker],
  bumpFiles: [xmlTracker],
};

JSON Config

{
  "packageFiles": [
    {
      "filename": "PATH_TO_MY_XML_FILE",
      "updater": "node_modules/standard-version-updater-xml/index.js"
    }
  ],
  "bumpFiles": [
    {
      "filename": "PATH_TO_MY_XML_FILE",
      "updater": "node_modules/standard-version-updater-xml/index.js"
    }
  ]
}

Then, use standard-version in your preferred flavour. Mine:

npx standard-version

Notes

  • You can use any file parseable by xmlbuilder2, even .csproj files!
  • Empty lines will be removed when writing version.
  • An xml declaration will be added on top the file if it's not already present.

Keywords

FAQs

Last updated on 17 May 2021

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