UNPKG

@metacall/faas

Version:

Reimplementation of MetaCall FaaS platform written in TypeScript.

13 lines (12 loc) 480 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.printVersionAndExit = void 0; const fs_1 = require("fs"); const path_1 = require("path"); function printVersionAndExit() { const packageJsonPath = path_1.join(__dirname, '../../package.json'); const packageJson = JSON.parse(fs_1.readFileSync(packageJsonPath, 'utf8')); console.log(`v${packageJson.version}`); process.exit(0); } exports.printVersionAndExit = printVersionAndExit;