Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 396 Bytes

npm-command.md

File metadata and controls

23 lines (16 loc) · 396 Bytes

NpmCommand

An abstract class with a method to read a package.json.

Config

This class accepts the same options as ExecCommand

Example

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

class ExampleNpmCommand extends Commands.NpmCommand {
  async do() {
    console.log(await this.getPackageJson());
  }
  
  async undo() {
    // ...
  }
}