mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-17 09:36:28 +01:00
13 lines
286 B
TypeScript
13 lines
286 B
TypeScript
|
import prominence = require('prominence');
|
||
|
import git = require('git-last-commit');
|
||
|
|
||
|
const getVersion = new Promise<string>(async resolve => {
|
||
|
const commit = await prominence(git).getLastCommit();
|
||
|
|
||
|
const version = commit.shortHash;
|
||
|
|
||
|
resolve(version);
|
||
|
});
|
||
|
|
||
|
export default getVersion;
|