2017-03-18 00:02:41 +09:00
|
|
|
const getVersion = new Promise<string>(async resolve => {
|
2017-03-18 02:02:59 +09:00
|
|
|
const package = require('../package.json');
|
2017-03-18 00:02:41 +09:00
|
|
|
|
2017-03-18 02:02:59 +09:00
|
|
|
const version = package.version;
|
2017-03-18 00:02:41 +09:00
|
|
|
|
|
|
|
resolve(version);
|
|
|
|
});
|
|
|
|
|
|
|
|
export default getVersion;
|