diff --git a/package.json b/package.json index 627d3e463..2850d4a46 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "misskey", "author": "syuilo ", - "version": "1.0.0", + "version": "0.0.1350", "license": "MIT", "description": "A miniblog-based SNS", "bugs": "https://github.com/syuilo/misskey/issues", diff --git a/src/version.ts b/src/version.ts index 1022ab83b..41e57b48e 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,10 +1,7 @@ -import prominence = require('prominence'); -import git = require('git-last-commit'); - const getVersion = new Promise(async resolve => { - const commit = await prominence(git).getLastCommit(); + const package = require('../package.json'); - const version = commit.shortHash; + const version = package.version; resolve(version); });