From fd3fe9bd294f292b6f6c37452d2feb54d7cdca33 Mon Sep 17 00:00:00 2001 From: pgayvallet Date: Fri, 14 Jul 2023 09:16:47 +0200 Subject: [PATCH] Add buildFlavor to package info --- packages/kbn-config/src/env.ts | 1 + packages/kbn-config/src/types.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/packages/kbn-config/src/env.ts b/packages/kbn-config/src/env.ts index 64d147d9a4a8..99728f0dfc41 100644 --- a/packages/kbn-config/src/env.ts +++ b/packages/kbn-config/src/env.ts @@ -124,6 +124,7 @@ export class Env { version: pkg.version, dist: isKibanaDistributable, buildDate: isKibanaDistributable ? new Date(pkg.build.date) : new Date(), + buildFlavor: this.cliArgs.serverless ? 'serverless' : 'traditional', }); } } diff --git a/packages/kbn-config/src/types.ts b/packages/kbn-config/src/types.ts index dcb959f30cd0..f9038a1a7fd2 100644 --- a/packages/kbn-config/src/types.ts +++ b/packages/kbn-config/src/types.ts @@ -15,6 +15,7 @@ export interface PackageInfo { buildNum: number; buildSha: string; buildDate: Date; + buildFlavor: BuildFlavor; dist: boolean; } @@ -26,3 +27,5 @@ export interface EnvironmentMode { dev: boolean; prod: boolean; } + +export type BuildFlavor = 'serverless' | 'traditional';