Skip to content

Commit

Permalink
fix: expose published and installed versions
Browse files Browse the repository at this point in the history
  • Loading branch information
blackfalcon committed Jun 22, 2019
1 parent f572c8d commit bd397e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ const generateFromTemplate = async () => {
const pjson = require('../package.json');
const latestVersion = require('latest-version');
const latestPublishedVersion = await latestVersion('@alaskaairux/ods-wc-generator');
log(chalk.green(latestPublishedVersion))

log(chalk.green(`\nPublished: v${latestPublishedVersion} | Installed: v${pjson.version}\n`))

const params = parseArgs();

if(latestPublishedVersion > pjson.version) {
Expand Down

0 comments on commit bd397e2

Please sign in to comment.