Get version from package.json

This commit is contained in:
phil 2025-06-28 03:58:55 +02:00
parent bbffcd5aed
commit 5535df0334
4 changed files with 4 additions and 8 deletions

View file

@ -10,7 +10,7 @@ import { MatDialog, MatDialogRef } from '@angular/material/dialog'
import { AuthenticationService } from './_services/authentication.service'
import { LoginDialogComponent } from './login/login.component'
import versionJson from '../version.json'
import packageJson from '../../package.json'
export class Version {
public backend: string
@ -61,7 +61,7 @@ export class AppComponent implements OnInit {
this.bootstrapService.get().subscribe({
next: res => {
this.version.backend = res.version
this.version.frontend = versionJson["version"]
this.version.frontend = packageJson["version"]
this.title = res.title || this.title
this.titleService.setTitle(res.windowTitle || this.title)
this.configService.setConf(res)

View file

View file

@ -1,3 +0,0 @@
{
"version": "0.0.0"
}