Use `1.0.0` as the default app version.
Change the default version number returned when the version number cannot be read from `package.json` in CWD.
This commit is contained in:
parent
622f6176f3
commit
be36f11629
|
@ -156,7 +156,7 @@ function getVersion() {
|
|||
try {
|
||||
version = require(path.join(process.cwd(), 'package.json')).version;
|
||||
} catch(e) {
|
||||
version = '';
|
||||
version = '1.0.0';
|
||||
}
|
||||
return version;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue