We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 473ea59 commit dd2409bCopy full SHA for dd2409b
1 file changed
generators/addon/index.js
@@ -1,4 +1,6 @@
1
+const process = require('process');
2
const chalk = require('chalk');
3
+const semver = require('semver');
4
const Insight = require('insight');
5
const camelCase = require('lodash.camelcase');
6
const upperFirst = require('lodash.upperfirst');
@@ -34,7 +36,7 @@ class NgxAddonGenerator extends Generator {
34
36
}
35
37
38
if (fromVersion) {
- if (fromVersion >= this.version) {
39
+ if (semver.gte(fromVersion, this.version)) {
40
this.log(chalk.green('\nNothing to update, it’s all good!\n'));
41
// eslint-disable-next-line unicorn/no-process-exit
42
process.exit(0);
0 commit comments