Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 610 Bytes

npm-bump-package-version-command.md

File metadata and controls

31 lines (19 loc) · 610 Bytes

NpmBumpPackageVersionCommand

A command that updates the version property in a package.json file.

Config

Type: object literal

Optional properties are denoted by *
version

Type: string

preReleaseId

Type: string

ℹ️   ExecCommand options are also applicable.

Example

const { Commands } = require("@abstracter/atomic-release");

const command = new Commands.NpmBumpPackageVersionCommand({
  version: "1.0.0",
  preReleaseId: "beta",
  workingDirectory: "/absolute/path", <-- package.json should be inside
});