Comparing version 1.1.4 to 1.1.5
@@ -74,3 +74,6 @@ const path = require('path') | ||
checkGenerator: | ||
config.updateCheck !== false && generator.type === 'npm' | ||
config.updateCheck !== false && generator.type === 'npm', | ||
// Don't show the notifier after updated the generator | ||
// Since the notifier is for the older version | ||
showNotifier: !this.opts.update | ||
}) | ||
@@ -77,0 +80,0 @@ } |
@@ -7,6 +7,6 @@ const path = require('path') | ||
module.exports = ({ generator, checkGenerator }) => { | ||
module.exports = ({ generator, checkGenerator, showNotifier }) => { | ||
performSelfUpdateCheck() | ||
if (checkGenerator) { | ||
performGeneratorUpdateCheck(generator) | ||
performGeneratorUpdateCheck(generator, showNotifier) | ||
} | ||
@@ -37,3 +37,3 @@ } | ||
function performGeneratorUpdateCheck(generator) { | ||
function performGeneratorUpdateCheck(generator, showNotifier) { | ||
const pkg = require(path.join(generator.path, 'package.json')) | ||
@@ -43,3 +43,3 @@ | ||
if (notifier.update) { | ||
if (notifier.update && showNotifier) { | ||
process.on('exit', () => { | ||
@@ -51,2 +51,3 @@ logger.warn( | ||
) | ||
logger.tip( | ||
@@ -53,0 +54,0 @@ `To run the generator with an updated version, run the following command:\n${chalk.dim( |
{ | ||
"name": "sao", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Futuristic scaffolding tool.", | ||
@@ -5,0 +5,0 @@ "repository": { |
35496
1027