Skip to content

Latest commit

History

History
31 lines (19 loc) 路 631 Bytes

npm-bump-package-version-command.md

File metadata and controls

31 lines (19 loc) 路 631 Bytes

NpmBumpPackageVersionCommand

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

Options

Type: object literal

Optional properties are denoted by *
version

Type: string

preReleaseId

Type: string

鈩癸笍 聽 ExecaCommand options are also applicable.

Example

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

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