Skip to content

Commit

Permalink
feat: add update-notifier to warn when using an old version of rdme (#…
Browse files Browse the repository at this point in the history
…435)

To test this out, you can replace the line in bin/rdme with the following:

```
updateNotifier({ pkg: { name: 'rdme', version: '1.0.0' }, updateCheckInterval: 0 }).notify();
```

Example nabbed from here:
https://github.com/yeoman/update-notifier/blob/HEAD/example.js
  • Loading branch information
domharrington authored Feb 2, 2022
1 parent 3e814e8 commit 8daf569
Show file tree
Hide file tree
Showing 3 changed files with 970 additions and 30 deletions.
5 changes: 5 additions & 0 deletions bin/rdme
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#! /usr/bin/env node
const chalk = require('chalk');

const updateNotifier = require('update-notifier');
const pkg = require('../package.json');

updateNotifier({ pkg }).notify();

require('../src')(process.argv.slice(2))
.then(msg => {
// eslint-disable-next-line no-console
Expand Down
Loading

0 comments on commit 8daf569

Please sign in to comment.