UNPKG

380 BJavaScriptView Raw
1let chalk = require('chalk')
2let { version } = require('../package.json')
3let path = require('path')
4
5module.exports = function printVersion () {
6 let log = (label, value) => console.log(chalk.grey(`${label.padStart(13)}:`), chalk.cyan(value))
7 log('Version', `Architect ${version}`)
8 log('Installed to', path.resolve(path.join(__dirname, '..')))
9 log('cwd', process.cwd())
10}