UNPKG

generator-jhipster-migrate

Version:

Migrate Project

9 lines (7 loc) 308 B
import { join } from 'path'; import { fileURLToPath } from 'url'; import { readFileSync } from 'fs'; export const getJHipsterVersion = () => { const packageJson = join(fileURLToPath(new URL('../../../package.json', import.meta.url))); return JSON.parse(readFileSync(packageJson).toString()).version; };