Skip to content

Commit

Permalink
Add buildFlavor to package info
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Jul 14, 2023
1 parent 3c46440 commit fd3fe9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/kbn-config/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
}
}
3 changes: 3 additions & 0 deletions packages/kbn-config/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface PackageInfo {
buildNum: number;
buildSha: string;
buildDate: Date;
buildFlavor: BuildFlavor;
dist: boolean;
}

Expand All @@ -26,3 +27,5 @@ export interface EnvironmentMode {
dev: boolean;
prod: boolean;
}

export type BuildFlavor = 'serverless' | 'traditional';

0 comments on commit fd3fe9b

Please sign in to comment.