From d5884636cc15d1f8065bff24cd540ab38c4f3eb8 Mon Sep 17 00:00:00 2001 From: "me@rodrigorodriguez.com" Date: Tue, 24 Sep 2024 14:38:34 -0300 Subject: [PATCH] new(all): Node.js v22 and ts-node. --- .vscode/launch.json | 2 +- boot.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index f31cdc49..3636d14d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -7,7 +7,7 @@ "sourceMaps": true, "name": "Debug Program with Nodemon", "runtimeExecutable": "npx", - "runtimeArgs": ["nodemon", "--exec", "tsx"], // Use nodemon with tsx + "runtimeArgs": ["nodemon", "--ext","ts","--exec", "tsx"], "program": "${workspaceRoot}/boot.mjs", "cwd": "${workspaceRoot}", "env": { diff --git a/boot.mjs b/boot.mjs index 28064780..0ded1140 100644 --- a/boot.mjs +++ b/boot.mjs @@ -17,7 +17,7 @@ var __dirname = process.env.PWD || process.cwd(); try { var run = async () => { - import('./dist/src/app.js').then(async (gb)=> { + import('./src/app.js').then(async (gb)=> { await gb.GBServer.run() }); };