Skip to content

Commit

Permalink
Write the app version only after the server was built to the dist/ di…
Browse files Browse the repository at this point in the history
…rectory (to make sure the directory exists)
  • Loading branch information
floscher committed Jun 19, 2024
1 parent abc652b commit 1177d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1177d81

Please sign in to comment.