Is there a harm in upgrading typescript version in...
# general
a
Is there a harm in upgrading typescript version in a pulumi project ? I see that the
tsc
version that comes with pulumi is
Version 3.7.5
and I want to upgrade the typescript version to
4.5.5
m
Copy code
❯ npm list |grep typescript@
├── typescript@4.6.3
latest typescript I use for my applications has been working fine for me.
💯 1
a
thanks ! I’ll upgrade my version too
p
I don’t know if this is officially supported by pulumi, but the question did get raised so many time already - I think a clear answer to this should be stated on the official documentation some where. @billowy-army-68599 , @echoing-dinner-19531 or anyone else from pulumi, WDYT?
r
It is mentioned in https://github.com/pulumi/pulumi/pull/8199 that during the next major release Pulumi will move typescript to a peer dep so that you can bring your own version (disclaimer, I made that PR). I am unsure when the next major release will be, and have been using my company's fork for the past few months
a
@rapid-raincoat-36492 does that mean, currently, even if I specify TypeScript 4.5 in my
package.json
the pulumi will keep using
3.7+
internally?
r
Ya know I'm not 100% positive on where the dividing lines are, as both typescript versions are used in part I think, but I am quite sure that this call: https://github.com/pulumi/pulumi/blob/master/sdk/nodejs/cmd/run/run.ts#L200-L214 uses ts-node to register your module code, and that does seem to use
3.7
while performing things like module resolution and typechecking. It's been quite a few months since I really dug into what happened in that file (and there have been a few changes I think in the meantime). Sorry I don't have a more definitive answer (am just a community member)
🙌 1
a
Thanks @rapid-raincoat-36492 for the reply and pointing me in the right direction. This really helps. I’ll look and experiment further.
p
@rapid-raincoat-36492 wow - this is great! many thanks for the info on the upcoming feature!