misskey/src/version.ts

10 lines
206 B
TypeScript
Raw Normal View History

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