limited-art-90541
02/06/2024, 4:24 PMpulumi preview|up
is there a way to specify which typescript compiler to use? I am trying to get a somewhat unorthodox setup to work where I have one JS package, with multiple pulumi projects, ie:
root/
tsconfig.json
package.json
node_modules/
.bin/
tsc
project-a/
Pulumi.yaml
index.ts
project-b/
Pulumi.yaml
index.ts
When I compile the project using the tsc
found in the root node_modules it compiles successfully.
When I run pulumi preview
it fails to compile, and my dynamic providers aren't compiled with the target I specify in my tsconfig
.
TLDR;
Is it possible to use the typescript configuration that is defined in a parent folder?limited-art-90541
02/06/2024, 5:03 PMPULUMI_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?icy-controller-6092
02/06/2024, 5:55 PMicy-controller-6092
02/06/2024, 5:56 PMicy-controller-6092
02/06/2024, 5:57 PMicy-controller-6092
02/06/2024, 5:58 PMlimited-art-90541
02/06/2024, 6:11 PMtsc -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 appreciatedlimited-art-90541
02/06/2024, 6:13 PM