summary refs log tree commit diff
path: root/bundle/tsnode.tsconfig.json
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-03-06 17:18:35 +1100
committerGitHub <noreply@github.com>2022-03-06 09:18:35 +0300
commit6bcd9e8baacc9493845a914afe50b9ac1b19720d (patch)
treea154da08664725cf41d9df01f82ab3867c39d517 /bundle/tsnode.tsconfig.json
parentdocument which field is which (diff)
downloadserver-6bcd9e8baacc9493845a914afe50b9ac1b19720d.tar.xz
Tsnode support (#580)
* 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 <erkinalp9035@gmail.com>

* Added `tsnode` npm script

* Added `typescript-cached-transpile` package to help improve performance

Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
Diffstat (limited to 'bundle/tsnode.tsconfig.json')
-rw-r--r--bundle/tsnode.tsconfig.json15
1 files changed, 15 insertions, 0 deletions
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