mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-26 07:55:14 +00:00
Fix bug
This commit is contained in:
parent
cc6abf6f5e
commit
35f27806e2
2 changed files with 3 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "misskey",
|
||||
"author": "syuilo <i@syuilo.com>",
|
||||
"version": "1.0.0",
|
||||
"version": "0.0.1350",
|
||||
"license": "MIT",
|
||||
"description": "A miniblog-based SNS",
|
||||
"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 commit = await prominence(git).getLastCommit();
|
||||
const package = require('../package.json');
|
||||
|
||||
const version = commit.shortHash;
|
||||
const version = package.version;
|
||||
|
||||
resolve(version);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue