:wave: it would be really helpful for me if my Pu...
# typescript
p
👋 it would be really helpful for me if my Pulumi code had some way to detect, when it’s being run, if it’s in the context of a
preview
or an
up
operation… any chance there’s some way to do this?
(I’m aware that if one is following the Pulumi model properly, this should be completely unnecessary. Unfortunately, there is one corner of my project that is deviating from the Pulumi model 😞 )
l
pulumi.isDryRun()
gives you that info.
p
Thank you!