Open victor314159 opened 1 week ago
No way, use ts-node
instead.
This is how I fixed it:
"serve": "tsx watch --inspect=0.0.0.0:9229 ./lib/index.ts", // stop using tsx
"serve": "npx concurrently \"tsc --watch\" \"nodemon -L --inspect=0.0.0.0:9229 ./dist/index.js\"", // use tsc --watch option, so Typia works fine
because I'm running in a docker container, the node --watch
wouldn't work, so I've used nodemon
Also added it to tsconfig.json
(because tsc --wtach
wouldn't work otherwise because of the container running on Windows.)
"watchOptions": {
"watchFile": "dynamicPriorityPolling"
}
Big fan of
typia
here, thanks for this amazing lib !I'm trying to use
typia
when starting my backend in development mode withtsx
I use
tsx
because it allows very easy hot reloading when developping.Long story short, typia works fin in production mode (with
tsc
), but I don't know how to make it work withtsx
Is it possible ?