UNPKG

588 BJavaScriptView Raw
1"use strict";
2var __importDefault = (this && this.__importDefault) || function (mod) {
3 return (mod && mod.__esModule) ? mod : { "default": mod };
4};
5Object.defineProperty(exports, "__esModule", { value: true });
6exports.version = void 0;
7const fs_1 = __importDefault(require("fs"));
8const path_1 = __importDefault(require("path"));
9const packageJson = JSON.parse(fs_1.default
10 .readFileSync(
11// works even when bundled/built because the path to package.json is the same
12path_1.default.join(__dirname, '..', 'package.json'))
13 .toString());
14exports.version = packageJson.version;