We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78f14e5 commit 8a5a54aCopy full SHA for 8a5a54a
lib/cli.js
@@ -2,13 +2,18 @@
2
import chalk from 'chalk';
3
import execa from 'execa';
4
import inquirer from 'inquirer';
5
+import updateNotifier from 'update-notifier';
6
+
7
+import pkg from '../package.json';
8
import getConfig from './getConfig';
9
import { choices, questions } from './promptConfig';
10
11
const configuration = getConfig();
12
const choicesList = choices(configuration);
13
const questionsList = questions(choicesList);
14
15
+updateNotifier({ pkg }).notify();
16
17
inquirer.prompt(questionsList).then((answers) => {
18
const message = answers.moreInfo ? `${answers.editor}` : `${answers.type} ${answers.description}`;
19
0 commit comments