From 68f6fe58d5266af4a38e86ed2f817df3638f2323 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sun, 6 Mar 2022 17:18:35 +1100 Subject: Tsnode support (#580) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ts-node support. debugging is slightly wonky as vscode will not allow breakpoints in modules that aren't bundle, yet. * apparently ts-node compilerOptions.path wasn't needed? on windows I could've sworn it was. * Cleaned up tsconfig.json a bit ( moved tsnode config to own file ). Fixed breakpoints for all modules under tsnode * Removed Microsoft Corp advert * Remove one more Microsoft Corp. ad Signed-off-by: Erkin Alp Güney * Added `tsnode` npm script * Added `typescript-cached-transpile` package to help improve performance Co-authored-by: Erkin Alp Güney --- bundle/tsnode.tsconfig.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bundle/tsnode.tsconfig.json (limited to 'bundle/tsnode.tsconfig.json') diff --git a/bundle/tsnode.tsconfig.json b/bundle/tsnode.tsconfig.json new file mode 100644 index 00000000..422d336c --- /dev/null +++ b/bundle/tsnode.tsconfig.json @@ -0,0 +1,15 @@ +{ + "extends": "./tsconfig.json", + "ts-node": { + "transpileOnly": true, + "preferTsExts": true, + "require": ["tsconfig-paths/register"], + "compiler": "typescript-cached-transpile", + }, + "compilerOptions": { + "rootDir": "../", + "baseUrl": "../", + "sourceRoot": "../", + "sourceMap": true, + } +} \ No newline at end of file -- cgit 1.5.1