Skip to content

Commit

Permalink
chore(migrate): Print blog post link when warning about package migra…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
christopherthielen committed Apr 23, 2017
1 parent 1a416a3 commit dad26af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions migrate/migratewarn.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ var migrate = require('./migrate.json');

if (pkg.name === migrate.old) {
var warning = 'WARNING! this npm package "' + migrate.old + '" has moved to "' + migrate.new + '". Please update your package.json';
var warning2 = 'WARNING! See https://ui-router.github.io/blog/uirouter-scoped-packages/ for details';;
console.log("\x1b[1m\x1b[37m\x1b[41m%s\x1b[0m", warning);
console.log("\x1b[1m\x1b[37m\x1b[41m%s\x1b[0m", warning2);
}

0 comments on commit dad26af

Please sign in to comment.