Skip to content

Commit 8a5a54a

Browse files
committed
✨ Feat: add update-notifier to cli
1 parent 78f14e5 commit 8a5a54a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/cli.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
import chalk from 'chalk';
33
import execa from 'execa';
44
import inquirer from 'inquirer';
5+
import updateNotifier from 'update-notifier';
6+
7+
import pkg from '../package.json';
58
import getConfig from './getConfig';
69
import { choices, questions } from './promptConfig';
710

811
const configuration = getConfig();
912
const choicesList = choices(configuration);
1013
const questionsList = questions(choicesList);
1114

15+
updateNotifier({ pkg }).notify();
16+
1217
inquirer.prompt(questionsList).then((answers) => {
1318
const message = answers.moreInfo ? `${answers.editor}` : `${answers.type} ${answers.description}`;
1419

0 commit comments

Comments
 (0)