build(rest-passthrough): Use typescript to build (#4432)

* build(rest-passthrough): Use typescript to build

It doesn't make a lot of sense for something like this to use SWC to build + this needed typescript with a tsconfig anyway for a typecheck

* Add tsconfig

* Remove .swcrc and copy tsconfig in docker

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
This commit is contained in:
Fleny
2025-09-18 01:08:34 +05:30
committed by GitHub
co-authored by Awesome Stickz
parent df1658d923
commit 3ee8b48658
5 changed files with 54 additions and 1174 deletions
+4 -4
View File
@@ -5,7 +5,7 @@
"version": "1.0.0",
"packageManager": "yarn@4.6.0",
"scripts": {
"build": "swc src --strip-leading-paths --delete-dir-on-start --out-dir dist",
"build": "tsc",
"start:dev": "yarn exec node -r dotenv/config dist/server.js",
"start:prod": "yarn exec node ./dist/server.js",
"release": "cliff-jumper"
@@ -19,8 +19,8 @@
},
"devDependencies": {
"@favware/cliff-jumper": "^6.0.0",
"@swc/cli": "^0.7.8",
"@swc/core": "^1.13.5",
"dotenv": "^17.2.1"
"@types/node": "^24.3.1",
"dotenv": "^17.2.1",
"typescript": "^5.9.2"
}
}