From 35f27806e27a31e78ce94d17174b18620fd4b914 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 18 Mar 2017 02:02:59 +0900 Subject: [PATCH] Fix bug --- package.json | 2 +- src/version.ts | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 627d3e463c..2850d4a46a 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 1022ab83b3..41e57b48e6 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); });