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

Fix update notifier usage to support yarn #377

Merged
merged 1 commit into from
May 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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