From 3204695c9056cff8319656bcf2b838caccbfa1bd Mon Sep 17 00:00:00 2001 From: Wolvan Date: Thu, 6 Jan 2022 14:33:12 +0100 Subject: [PATCH] Switch to `ts-node-dev` for debugging It automatically watches, recompiles and restarts the app when files in the `./src` directory change. --- .vscode/launch.json | 1 + README.md | 4 +- package-lock.json | 562 ++++++++++++++++++++++++++++++++------------ package.json | 4 +- 4 files changed, 421 insertions(+), 150 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 3d7c50b..6597265 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,6 +11,7 @@ "skipFiles": [ "/**" ], + "restart": true, "type": "pwa-node" } ] diff --git a/README.md b/README.md index 3585e42..3a404f4 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Before cloning this repository, make sure you have [Node](https://www.nodejs.org Then clone this repository, open a terminal/command prompt and type `npm i` to install the required dependencies. -`ts-node` is recommended to test during development, install it with `npm i -g ts-node typescript`. +`ts-node` is recommended to test during development manually, install it with `npm i -g ts-node typescript`. ## Directory Structure - `./dist` - The finalized and compiled files that can be used with node @@ -29,7 +29,7 @@ Execute the scripts with `npm run