Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #377 from near/fix-update-yarn
Browse files Browse the repository at this point in the history
Fix update notifier usage to support yarn
  • Loading branch information
vgrichina authored May 20, 2020
2 parents 932bc73 + f871faa commit fcd8002
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/check-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ module.exports = async function checkVersion() {
) {
const { type: diff, current, latest } = notifier.update;
const update = normalizePhrasingOf(diff);
const updateCommand = '{updateCommand}';
const message = chalk`NEAR Shell has a ${update} available {dim ${current}} → {green ${latest}}
Run {cyan npm install -g near-shell} to avoid unexpected behavior`;
Run {cyan ${updateCommand}} to avoid unexpected behavior`;

const boxenOpts = {
padding: 1,
Expand Down

0 comments on commit fcd8002

Please sign in to comment.