build: add editor version in build log

This commit is contained in:
himself65
2022-12-22 12:45:09 +08:00
committed by DarkSky
parent 31876cde56
commit 93e74af60b
2 changed files with 4 additions and 0 deletions
@@ -4,6 +4,7 @@ type Config = {
BUILD_DATE: string;
NODE_ENV: string;
PROJECT_NAME: string;
EDITOR_VERSION: string;
VERSION: string;
CI?: string;
COMMIT_HASH: string;
@@ -28,6 +29,7 @@ const printBuildInfo = () => {
'Environment:',
`${publicRuntimeConfig.NODE_ENV}${publicRuntimeConfig.CI ? '(ci)' : ''}`
);
console.log('Editor Version:', publicRuntimeConfig.EDITOR_VERSION)
console.log('Version:', publicRuntimeConfig.VERSION);
console.log(
'AFFiNE is an open source project, you can view its source code on GitHub!'