feat: enhance build and dev-live scripts with tsc-alias support

This commit is contained in:
biersoeckli
2025-12-11 11:01:35 +00:00
parent a1a073b3ba
commit 91963b63e9
2 changed files with 91 additions and 8 deletions

View File

@@ -4,8 +4,8 @@
"private": true,
"scripts": {
"dev": "next dev",
"dev-live": "tsc --project tsconfig.server.json && node dist/server.js",
"build": "next build && tsc --project tsconfig.server.json",
"dev-live": "tsc --project tsconfig.server.json && tsc-alias -p tsconfig.server.json && node dist/server.js",
"build": "next build && tsc --project tsconfig.server.json && tsc-alias -p tsconfig.server.json",
"start": "next start",
"start-prod": "cross-env NODE_ENV=production node dist/server.js",
"prisma-generate": "npx prisma generate && node ./fix-wrong-zod-imports.js",
@@ -80,19 +80,19 @@
},
"devDependencies": {
"@testing-library/dom": "^10.4.0",
"@types/bcrypt": "^5.0.2",
"@types/node-schedule": "^2.1.7",
"@types/qrcode": "^1.5.5",
"@types/ws": "^8.5.13",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@types/bcrypt": "^5.0.2",
"@types/better-sqlite3": "^7.6.13",
"@types/jest": "^29.5.14",
"@types/mocha": "^10.0.10",
"@types/node": "^22.7.9",
"@types/node-schedule": "^2.1.7",
"@types/nodemailer": "^6.4.16",
"@types/qrcode": "^1.5.5",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/ws": "^8.5.13",
"@types/xml2js": "^0.4.14",
"eslint": "^9.13.0",
"eslint-config-next": "14.2.15",
@@ -100,6 +100,7 @@
"jest-environment-jsdom": "^29.7.0",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.14",
"tsc-alias": "^1.8.16",
"typescript": "^5.6.3",
"zod-prisma": "^0.5.4"
},