misskey/src/version.ts

10 lines
190 B
TypeScript

const getVersion = new Promise<string>(async resolve => {
const package = require('../package.json');
const version = package.version;
resolve(version);
});
export default getVersion;