From 1177d81048388127ad63bff1f21d8932ef0dcca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=A4fer?= Date: Wed, 19 Jun 2024 13:49:50 +0200 Subject: [PATCH] Write the app version only after the server was built to the dist/ directory (to make sure the directory exists) --- server/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/package.json b/server/package.json index 69ab745..bbc4acc 100644 --- a/server/package.json +++ b/server/package.json @@ -6,7 +6,7 @@ "scripts": { "start": "NODE_ENV='development' NODE_EXTRA_CA_CERTS=../certs/ca.crt nodemon -r dotenv/config ./src/server.ts", "write-app-version": "git describe --always --dirty > dist/app_version.txt", - "build": "npm run write-app-version && tsc", + "build": "tsc && npm run write-app-version", "run-prod": "node ./dist/server.js", "lint": "prettier --check 'src/**/*.(ts|vue)' && eslint src/**/*.ts", "lintfix": "prettier 'src/**/*.(ts|vue)' --write && eslint src/**/*.ts --fix",