Skip to content

Commit

Permalink
env contains distributable flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Jul 5, 2019
1 parent 8a97392 commit 07f1eaf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/server/config/__snapshots__/env.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/core/server/config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface PackageInfo {
branch: string;
buildNum: number;
buildSha: string;
dist: boolean;
}

export interface EnvironmentMode {
Expand Down Expand Up @@ -138,6 +139,7 @@ export class Env {
buildNum: isKibanaDistributable ? pkg.build.number : Number.MAX_SAFE_INTEGER,
buildSha: isKibanaDistributable ? pkg.build.sha : 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
version: pkg.version,
dist: isKibanaDistributable,
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const packageInfo = {
buildNum: 1,
buildSha: '',
version: '7.0.0-alpha1',
dist: false,
};

afterEach(() => {
Expand Down

0 comments on commit 07f1eaf

Please sign in to comment.