From 370bfc69889cda82976442adb08dd53002f2487d Mon Sep 17 00:00:00 2001 From: Oli Evans Date: Fri, 15 Dec 2023 17:26:25 +0000 Subject: [PATCH] fix: update notification includes -g flag for cli (#150) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The update notifier now specifies the global flag in the npm install advice as this is a cli. ```console ╭────────────────────────────────────────────────╮ │ │ │ Update available 7.0.0 → 7.0.3 │ │ Run npm i -g @web3-storage/w3cli to update │ │ │ ╰────────────────────────────────────────────────╯ ``` before this change, it would encourage you to do a local install which is probably not what you want 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')