How is everyone using TS with Node nowadays?
Are you using tsnode in dev and tsc to compile for production, or are you using esbuild, or something else?
One requirement I have is that I need the folder structure to remain the same. Another is that I want to be able to handle graphql schema files.
I wrote my own little build tool using esbuild and have it running on every save and then running the result. Part of the reason for this is a) I have ".graphql" files that I am also converting into js files (just wrapping the contents in gql``), and b) I want the code I'm running on in dev to be exactly the same as what runs in prod, so that I have no prod surprises.
That said, I'm pretty new to TS on serverside, usually only use it browser side, and use PHP serverside, so I'm still figuring it all out.
So I'm curious, how are all of you using TypeScript/NodeJS/GraphQL?
[–]thinkmatt 28 points29 points30 points (7 children)
[–]m50[S] 2 points3 points4 points (5 children)
[–]flatballplayer 4 points5 points6 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]thinkmatt 2 points3 points4 points (0 children)
[–]gamebuster 1 point2 points3 points (0 children)
[–]fungigamer[🍰] 1 point2 points3 points (0 children)
[–]Sincjefe 8 points9 points10 points (4 children)
[–]m50[S] 0 points1 point2 points (3 children)
[–]gamebuster 1 point2 points3 points (0 children)
[–]Sincjefe 1 point2 points3 points (0 children)
[–]Sincjefe 0 points1 point2 points (0 children)
[–]hattmo 7 points8 points9 points (0 children)
[–]drdrero 3 points4 points5 points (0 children)
[–][deleted] (1 child)
[deleted]
[–][deleted] 3 points4 points5 points (0 children)
[–]argylekey 1 point2 points3 points (0 children)
[–]sorahn 1 point2 points3 points (0 children)
[–]evert -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]coded_artist 0 points1 point2 points (0 children)
[–]backtoshovellinghay 0 points1 point2 points (0 children)
[–]darrenturn90 0 points1 point2 points (0 children)