1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-05 02:08:56 +09:00
This commit is contained in:
syuilo 2017-03-18 02:02:59 +09:00
parent cc6abf6f5e
commit 35f27806e2
2 changed files with 3 additions and 6 deletions

View File

@ -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",

View File

@ -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);
}); });