跳转到主要内容

bump-version

title: Increasing version number

Increasing version number

This tutorial is part of package functions documentation in Iconify Tools.

Function [func]bumpVersion() is a simple function that increases version number.

It can be used to automatically increase version number when updating existing package.

Usage

Function has the following parameter:

  • [prop]version, [type]string. Old version

Function returns updated version number.

Example

src: libraries/tools/package/version.ts
title: 'example.ts'