summary refs log tree commit diff
path: root/gateway/scripts/tsconfig-paths-bootstrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'gateway/scripts/tsconfig-paths-bootstrap.js')
-rw-r--r--gateway/scripts/tsconfig-paths-bootstrap.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/gateway/scripts/tsconfig-paths-bootstrap.js b/gateway/scripts/tsconfig-paths-bootstrap.js
new file mode 100644
index 00000000..7308523b
--- /dev/null
+++ b/gateway/scripts/tsconfig-paths-bootstrap.js
@@ -0,0 +1,10 @@
+const tsConfigPaths = require("tsconfig-paths");
+const path = require("path");
+
+const cleanup = tsConfigPaths.register({
+	baseUrl: path.join(__dirname, ".."),
+	paths: {
+		"@fosscord/gateway": ["dist/index.js"],
+		"@fosscord/gateway/*": ["dist/*"],
+	},
+});