This message was deleted.
# general
s
This message was deleted.
l
I have figured out that it is just not picking up my tsconfig path and that I can set it via the environment variable:
PULUMI_NODEJS_TSCONFIG_PATH
Is there a way to set this in my project configuration or I need to export this in my shell everytime I work with pulumi?
i
runtime: name: nodejs options: typescript: false nodeargs: --import tsx/esm
This will replace Pulumi typescript compiler (TS-node) with the much better & faster tsx compiler
It will find your tsconfig.json automatically
I’ve also done a lot of work getting multiple Pulumi projects setup in an nx monorepo, happy to look into any code you might have
l
Hi Matt. This is very interesting, but a little new to me so I am not sure I understand the solution. I am using a locally installed dev dependency to check my typescript files and run
tsc -w --noEmit
at the root folder. I don't mind trying tsx/esm but will it find my tsc version? Or will it use a different compiler? Any context would be appreciated
Ok I am seeing it uses esbuild under the hood to strip the typescript, and so its on me to do the typechecking locally correct?