mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-09-04 16:12:11 +00:00
13 lines
299 B
TypeScript
13 lines
299 B
TypeScript
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();
|