chore: Environments in npm commandos

This commit is contained in:
Tibo De Peuter 2025-02-23 17:30:16 +01:00
parent 7fd6305fd9
commit 9a96e480cd
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -5,9 +5,9 @@
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "tsc --project tsconfig.json", "build": "NODE_ENV=production tsc --project tsconfig.json",
"dev": "tsx watch --env-file=.env.development.local src/app.ts", "dev": "NODE_ENV=development tsx watch --env-file=.env.development.local src/app.ts",
"start": "node --env-file=.env dist/app.js", "start": "NODE_ENV=production node --env-file=.env dist/app.js",
"format": "prettier --write src/", "format": "prettier --write src/",
"format-check": "prettier --check src/", "format-check": "prettier --check src/",
"lint": "eslint . --fix", "lint": "eslint . --fix",