mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-05 02:08:56 +09:00
Fix bug
This commit is contained in:
parent
cc6abf6f5e
commit
35f27806e2
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"author": "syuilo <i@syuilo.com>",
|
"author": "syuilo <i@syuilo.com>",
|
||||||
"version": "1.0.0",
|
"version": "0.0.1350",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "A miniblog-based SNS",
|
"description": "A miniblog-based SNS",
|
||||||
"bugs": "https://github.com/syuilo/misskey/issues",
|
"bugs": "https://github.com/syuilo/misskey/issues",
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
import prominence = require('prominence');
|
|
||||||
import git = require('git-last-commit');
|
|
||||||
|
|
||||||
const getVersion = new Promise<string>(async resolve => {
|
const getVersion = new Promise<string>(async resolve => {
|
||||||
const commit = await prominence(git).getLastCommit();
|
const package = require('../package.json');
|
||||||
|
|
||||||
const version = commit.shortHash;
|
const version = package.version;
|
||||||
|
|
||||||
resolve(version);
|
resolve(version);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user