mirror of
https://github.com/filiprojek/nork.git
synced 2025-02-05 13:22:57 +01:00
11 lines
240 B
TypeScript
11 lines
240 B
TypeScript
|
import fs from 'fs-extra'
|
||
|
import path from 'path'
|
||
|
|
||
|
export default class Version {
|
||
|
static show(): string {
|
||
|
const pkgJson = fs.readJsonSync(path.join(__dirname, '../package.json'))
|
||
|
const log = `nork ${pkgJson.version}`
|
||
|
return log
|
||
|
}
|
||
|
}
|