monkeeShark/src/version.ts

10 lines
190 B
TypeScript
Raw Normal View History

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