Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit 2958d33

Browse files
authored
Add update notifier (#17)
1 parent 0c25f50 commit 2958d33

File tree

3 files changed

+356
-5
lines changed

3 files changed

+356
-5
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"@types/inquirer": "6.5.0",
5151
"@types/jest": "^24.9.1",
5252
"@types/node": "13.5.0",
53+
"@types/update-notifier": "^2.5.0",
5354
"@types/yargs": "15.0.1",
5455
"@zeit/ncc": "0.21.0",
5556
"aws-sdk": "2.610.0",
@@ -66,6 +67,7 @@
6667
"ts-jest": "^25.0.0",
6768
"ts-node": "8.6.2",
6869
"typescript": "3.7.5",
70+
"update-notifier": "^4.1.0",
6971
"yargs": "15.1.0"
7072
}
7173
}

src/app.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import inquirer from 'inquirer';
22
import chalk from 'chalk';
33
import yargs, { Argv } from 'yargs';
4+
import updateNotifier from 'update-notifier';
45

56
import {
67
backupConfig,
@@ -14,6 +15,9 @@ import {
1415
} from './config';
1516
import getTemporaryCredentials, { ProfileConfiguration, AWSCredentials } from './mfa-login';
1617
import exportEnvironmentVariables from './exporter';
18+
import pkg from '../package.json';
19+
20+
updateNotifier({ pkg }).notify();
1721

1822
const profiles = getProfileNames();
1923
let currentProfile = process.env.AWS_PROFILE || '';

0 commit comments

Comments
 (0)