Enable source maps in node & update name in Dockerfile.

This commit is contained in:
Nix Krystik
2026-05-20 02:55:21 +08:00
parent 4f365db12e
commit bf3ade207b
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ RUN npm run build
# ---------- # ----------
FROM node:22-alpine FROM node:22-alpine AS runtime
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
+2 -2
View File
@@ -23,8 +23,8 @@
"sqlite3": "^5.1.7" "sqlite3": "^5.1.7"
}, },
"scripts": { "scripts": {
"dev": "tsx watch src/index.ts", "dev": "tsx watch --enable-source-maps src/index.ts",
"start": "node --enable-source-maps dist/index.js", "start": "node dist/index.js",
"build": "npm run clean && npx tsc && npm run copyfiles", "build": "npm run clean && npx tsc && npm run copyfiles",
"clean": "npx rimraf dist", "clean": "npx rimraf dist",
"copyfiles": "npx copyfiles -u 1 \"./src/**/*.html\" ./dist" "copyfiles": "npx copyfiles -u 1 \"./src/**/*.html\" ./dist"
+3 -2
View File
@@ -16,6 +16,7 @@
"ES2021.String" "ES2021.String"
] ]
}, },
"include": ["src/**/*"],
"exclude": ["node_modules/**"] "include": ["src"],
"exclude": ["node_modules"]
} }