Skip to content

Commit

Permalink
feat: add update notifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Oct 18, 2023
1 parent 58ecaff commit 1918ed3
Show file tree
Hide file tree
Showing 3 changed files with 783 additions and 14 deletions.
7 changes: 6 additions & 1 deletion bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import sade from 'sade'
import open from 'open'
import updateNotifier from 'update-notifier'

Check failure on line 5 in bin.js

View workflow job for this annotation

GitHub Actions / Test

Could not find a declaration file for module 'update-notifier'. '/home/runner/work/w3cli/w3cli/node_modules/update-notifier/index.js' implicitly has an 'any' type.
import { getPkg } from './lib.js'
import {
accessClaim,
Expand Down Expand Up @@ -30,10 +31,14 @@ import {
uploadRemove
} from './can.js'

const pkg = getPkg()

updateNotifier({ pkg }).notify()

const cli = sade('w3')

cli
.version(getPkg().version)
.version(pkg.version)
.example('authorize [email protected]')
.example('up path/to/files')

Expand Down
Loading

0 comments on commit 1918ed3

Please sign in to comment.