matrix-dimension/src/version.ts

13 lines
299 B
TypeScript
Raw Normal View History

import { LogService } from "matrix-js-snippets";
import * as git from "git-rev-sync";
let version = "Unknown";
try {
version = "v" + require("../../package.json").version;
} catch (error) {
LogService.error("version", error);
}
export const CURRENT_VERSION = version + "-" + git.short();