Skip to content

Commit de1fb4a

Browse files
committed
add update notifier to package and notify users of updates
1 parent 59d75d4 commit de1fb4a

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

bun.lockb

20.7 KB
Binary file not shown.

index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import { addProfile } from './cmd/addProfile';
77
import { deleteProfile } from './cmd/deleteProfile';
88
import { printVariables } from './cmd/print';
99
import { listProfilesCommand } from './cmd/listProfiles';
10+
import updateNotifier from 'update-notifier';
11+
import packageJson from './package.json' assert {type: 'json'};
12+
13+
updateNotifier({pkg: packageJson}).notify();
1014

1115
const program = new Command();
1216

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222
},
2323
"dependencies": {
2424
"@types/crypto-js": "^4.2.2",
25+
"@types/update-notifier": "^6.0.8",
2526
"commander": "^13.1.0",
2627
"crypto-js": "^4.2.0",
27-
"inquirer": "^12.4.1"
28+
"inquirer": "^12.4.1",
29+
"update-notifier": "^7.3.1"
2830
}
2931
}

0 commit comments

Comments
 (0)