Skip to content

Commit a2f184c

Browse files
committed
[FEATURE] add update notification for cli
1 parent 30545e4 commit a2f184c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/init.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import chalk from 'chalk'
1919
import { onExit } from 'signal-exit'
2020
import dotenv from 'dotenv'
2121
import { addUserRootDotEnvFileIfNotExists } from './utils/env.js'
22+
import updateNotifier from 'update-notifier'
2223
await addUserRootDotEnvFileIfNotExists()
2324
dotenv.config({ override: true, path: [`${process.env.HOME}/.rh/.env.root`, '.env'] })
2425

@@ -37,6 +38,7 @@ await checkIfBinExists('node')
3738
await checkIfBinExists('npm')
3839
await checkIfBinExists('git')
3940
const cliPackageJson = await parseCliPackageJson()
41+
updateNotifier({ pkg: cliPackageJson }).notify()
4042
await checkNode(cliPackageJson)
4143

4244
// parse args

0 commit comments

Comments
 (0)