chore: update Node version and enhance debugging capabilities

- Removed .nvmrc file to eliminate version locking.
- Updated Dockerfile to use Node 22.6.0-alpine for improved performance and security.
- Modified package.json to enhance the 'start:dev' script with debugging options.
- Added new launch configuration in VSCode for attaching to Node processes by PID.
- Cleaned up settings.json by removing unused configurations.
- Refactored main.ts to simplify the bootstrap process.
- Enhanced logging in OrderSchema and ScheduleSchema for better traceability of operations.
This commit is contained in:
2024-12-03 22:46:23 +07:00
parent 951d61f3ac
commit a516dce800
8 changed files with 27 additions and 16 deletions

22
.vscode/launch.json vendored
View File

@@ -4,14 +4,28 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach by Process ID",
"processId": "${command:PickProcess}",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"runtimeExecutable": "C:\\Users\\AliensVN\\AppData\\Roaming\\fnm\\node-versions\\v20.17.0\\installation\\node.exe",
"skipFiles": ["<node_internals>/**"],
"runtimeExecutable": "C:\\Users\\AliensVN\\AppData\\Roaming\\fnm\\node-versions\\v22.6.0\\installation\\node.exe",
"skipFiles": [
"<node_internals>/**"
],
"cwd": "${workspaceFolder}",
"program": "${file}",
"outFiles": ["${workspaceFolder}/**/*.js"]
"outFiles": [
"${workspaceFolder}/**/*.js"
]
}
]
}
}

View File

@@ -1,6 +1,4 @@
{
"dependi.npm.lockFileEnabled": false,
"typescript.tsdk": "node_modules\\typescript\\lib",
"compile-hero.disable-compile-files-on-did-save-code": true,
"docwriter.style": "JSDoc"
}