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 {
|
try {
|
||||||
version = require(path.join(process.cwd(), 'package.json')).version;
|
version = require(path.join(process.cwd(), 'package.json')).version;
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
version = '';
|
version = '1.0.0';
|
||||||
}
|
}
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue