diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-07 18:21:17 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-07 18:21:17 +0200 |
commit | 1bef11aaaa23334df105b8e62cf919194a59dc43 (patch) | |
tree | 96ed878170cb5b52c532f9ed7d392551cce21a9f /gateway | |
parent | :zap: fast build script (diff) | |
download | server-1bef11aaaa23334df105b8e62cf919194a59dc43.tar.xz |
:bug: fix swc config
Diffstat (limited to 'gateway')
-rw-r--r-- | gateway/.swcrc | 21 | ||||
-rw-r--r-- | gateway/package-lock.json | 2 | ||||
-rw-r--r-- | gateway/package.json | 3 |
3 files changed, 17 insertions, 9 deletions
diff --git a/gateway/.swcrc b/gateway/.swcrc index f04801b8..0cf5e465 100644 --- a/gateway/.swcrc +++ b/gateway/.swcrc @@ -1,9 +1,14 @@ { - "jsc": { - "parser": { - "syntax": "typescript", - "decorators": true - }, - "target": "es2021" - } -} \ No newline at end of file + "jsc": { + "parser": { + "syntax": "typescript", + "decorators": true + }, + "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..d9a0ba6c 100644 --- a/gateway/package.json +++ b/gateway/package.json @@ -3,11 +3,12 @@ "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", "start": "npm run build && node dist/start.js", - "build": "swc src --out-dir dist", + "build": "npx swc src --out-dir dist", "dev": "tsnd --respawn src/start.ts" }, "keywords": [], |