temp: re-add alpha1 to package.json

This commit is contained in:
Jonathan Budzenski 2018-10-17 09:13:19 -05:00
parent d4709f2f63
commit a70688542c
No known key found for this signature in database
GPG key ID: D28BF9418FA0F292
2 changed files with 8 additions and 2 deletions

View file

@ -11,7 +11,7 @@
"dashboarding"
],
"private": true,
"version": "7.0.0",
"version": "7.0.0-alpha1",
"branch": "master",
"types": "./target/types/type_exports.d.ts",
"build": {

View file

@ -33,7 +33,13 @@ async function getBuildNumber() {
}
export async function getVersionInfo({ isRelease, versionQualifier, pkg }) {
const buildVersion = pkg.version.concat(
// TODO: revert after snapshot builds drop version qualifier
// kibana fetches elasticsearch's version based on kibana's version
// if we drop alpha1 before elasticsearch does we won't have a build to run
// tests against
const version = pkg.version.replace('-alpha1', '');
const buildVersion = version.concat(
versionQualifier ? `-${versionQualifier}` : '',
isRelease ? '' : '-SNAPSHOT'
);