1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add package.json name and version as defines to avoid importing the package.json in code

This commit is contained in:
Niels van Velzen 2024-03-23 09:28:24 +01:00
parent a34fbadaab
commit facbda4f2f
6 changed files with 13 additions and 10 deletions

View file

@ -265,7 +265,9 @@ module.exports = {
// Build time definitions
__JF_BUILD_VERSION__: 'readonly',
__USE_SYSTEM_FONTS__: 'readonly',
__WEBPACK_SERVE__: 'readonly'
__WEBPACK_SERVE__: 'readonly',
__PACKAGE_JSON_NAME__: 'readonly',
__PACKAGE_JSON_VERSION__: 'readonly'
},
rules: {
'@typescript-eslint/prefer-string-starts-ends-with': ['error']