nanka iroiro
This commit is contained in:
12
src/version.ts
Normal file
12
src/version.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
Reference in New Issue
Block a user