Skip to content

Commit

Permalink
fix: update notification includes -g flag for cli (#150)
Browse files Browse the repository at this point in the history
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 <oli@protocol.ai>
  • Loading branch information
olizilla authored Dec 15, 2023
1 parent 2575b8a commit 370bfc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {

const pkg = getPkg()

updateNotifier({ pkg }).notify()
updateNotifier({ pkg }).notify({ isGlobal: true })

const cli = sade('w3')

Expand Down

0 comments on commit 370bfc6

Please sign in to comment.