From ab06744c17eee232b765fd321155b3eb05711151 Mon Sep 17 00:00:00 2001 From: Oli Evans Date: Fri, 15 Dec 2023 15:44:10 +0000 Subject: [PATCH] fix: update notification includes -g flag for cli MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The helpful update notifier now specifies the global flag in the npm install advice as this is a cli. before this change, it would encourage you to do a local install which is probably not what you want ```console ╭─────────────────────────────────────────────╮ │ │ │ Update available 7.0.0 → 7.0.3 │ │ Run npm i @web3-storage/w3cli to update │ │ │ ╰─────────────────────────────────────────────╯ ``` License: MIT Signed-off-by: Oli Evans --- bin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin.js b/bin.js index ee95a07..f99c307 100755 --- a/bin.js +++ b/bin.js @@ -37,7 +37,7 @@ import { const pkg = getPkg() -updateNotifier({ pkg }).notify() +updateNotifier({ pkg }).notify({ isGlobal: true }) const cli = sade('w3')