UNPKG

actionhero

Version:

actionhero.js is a multi-transport API Server with integrated cluster capabilities and delayed tasks

21 lines (20 loc) 707 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Version = void 0; const path = require("path"); // import { CLI } from "./../../index"; // we need to load each component directly so we don't accidentally source `config... which doesn't exist` const cli_1 = require("./../../classes/cli"); const packageJSON = require(path.join(__dirname, "/../../../package.json")); class Version extends cli_1.CLI { constructor() { super(); this.name = "version"; this.description = "return the Actionhero version within this project"; } async run() { console.log(packageJSON.version); return true; } } exports.Version = Version;