working
All checks were successful
Build / build (22) (push) Successful in 34s
Build / build (18) (push) Successful in 57s
Build / build (20) (push) Successful in 1m16s

This commit is contained in:
Ordis 2025-02-07 18:01:52 +01:00
parent 0c1624cc03
commit f934893cbe
4 changed files with 21 additions and 0 deletions

17
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,17 @@
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug and Watch",
"runtimeArgs": ["-r", "ts-node/register", "-r", "tsconfig-paths/register", "--watch-path", "src"],
"args": ["${workspaceFolder}/src/index.ts"],
"internalConsoleOptions": "openOnSessionStart",
"console": "internalConsole"
}
]
}

1
package-lock.json generated
View File

@ -26,6 +26,7 @@
"eslint-plugin-prettier": "^5.2.3",
"morgan": "^1.10.0",
"prettier": "^3.4.2",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"tsconfig-paths": "^4.2.0",
"typescript": ">=4.7.4 <5.6.0"

View File

@ -6,6 +6,7 @@
"scripts": {
"start": "node --import ./build/src/pathman.js build/src/index.js",
"dev": "ts-node-dev --openssl-legacy-provider -r tsconfig-paths/register src/index.ts ",
"dev2": "node --watch --loader=ts-node/esm /src/index.ts",
"build": "tsc && copyfiles static/webui/** build",
"lint": "eslint --ext .ts .",
"lint:fix": "eslint --fix --ext .ts .",
@ -31,6 +32,7 @@
"eslint-plugin-prettier": "^5.2.3",
"morgan": "^1.10.0",
"prettier": "^3.4.2",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"tsconfig-paths": "^4.2.0",
"typescript": ">=4.7.4 <5.6.0"

View File

@ -58,6 +58,7 @@ const combinedLog = new transports.DailyRotateFile({
});
const consoleLog = new transports.Console({
forceConsole: true,
format: format.combine(
format.colorize(),
format.timestamp({ format: "YYYY-MM-DDTHH:mm:ss:SSS" }), // uses local timezone