working
This commit is contained in:
parent
0c1624cc03
commit
f934893cbe
17
.vscode/launch.json
vendored
Normal file
17
.vscode/launch.json
vendored
Normal 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
1
package-lock.json
generated
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user