Use vite-plugin-version-mark to read project version

Change-Id: I0d46dc57df025538379a2f0786d3e972c56dd248
This commit is contained in:
Manuel Stahl
2024-04-18 20:25:14 +02:00
committed by Manuel Stahl
parent 2e2085cdfe
commit f4ea63c8f4
4 changed files with 22 additions and 15 deletions

View File

@@ -26,7 +26,8 @@
"jest-fetch-mock": "^3.0.3",
"prettier": "^3.2.5",
"react-test-renderer": "^18.2.0",
"vite": "^5.0.0"
"vite": "^5.0.0",
"vite-plugin-version-mark": "^0.0.13"
},
"dependencies": {
"@haleos/ra-language-german": "^1.0.0",
@@ -43,8 +44,8 @@
"react-dom": "^18.0.0"
},
"scripts": {
"start": "REACT_APP_VERSION=$(git describe --tags) vite serve",
"build": "REACT_APP_VERSION=$(git describe --tags) vite build",
"start": "vite serve",
"build": "vite build",
"fix:other": "yarn prettier --write",
"fix:code": "yarn test:lint --fix",
"fix": "yarn fix:code && yarn fix:other",