diff --git a/gateway/.swcrc b/gateway/.swcrc
index 9a89b49d..3079a89f 100644
--- a/gateway/.swcrc
+++ b/gateway/.swcrc
@@ -7,6 +7,11 @@
"syntax": "typescript",
"decorators": true
},
- "target": "es2021"
+ "target": "es2021",
+ "baseUrl": ".",
+ "paths": {
+ "@fosscord/gateway": ["src/index"],
+ "@fosscord/gateway/*": ["src/*"]
+ }
}
}
diff --git a/gateway/package-lock.json b/gateway/package-lock.json
index 0a00ef64..c48d3987 100644
--- a/gateway/package-lock.json
+++ b/gateway/package-lock.json
@@ -8077,6 +8077,7 @@
"node_modules/fsevents": {
"version": "2.3.2",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
+ "dev": true,
"hasInstallScript": true,
"optional": true,
"os": [
@@ -16088,6 +16089,7 @@
"fsevents": {
"version": "2.3.2",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
+ "dev": true,
"optional": true
},
"function-bind": {
diff --git a/gateway/package.json b/gateway/package.json
index e3f3d172..78495a97 100644
--- a/gateway/package.json
+++ b/gateway/package.json
@@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "",
"main": "dist/index.js",
+ "types": "src/index.ts",
"scripts": {
"postinstall": "npx ts-patch install -s",
"test": "echo \"Error: no test specified\" && exit 1",
|