https://pulumi.com logo
#general
Title
# general
o

orange-tailor-85423

10/29/2018, 10:33 PM
i.e. just run TS things like tslint and tsc at build time then Pulumi later? Or does Pulumi wrap those other things?
m

microscopic-florist-22719

10/29/2018, 10:34 PM
@bitter-oil-46081 is probably the best person to explain this.
c

creamy-potato-29402

10/29/2018, 10:34 PM
lol
short answer is if you’re running ts, probably.
b

bitter-oil-46081

10/29/2018, 10:55 PM
You can pick the workflow that makes sense for you. By default, Pulumi will use the ts-node package to allow you to use typescript directly so you don’t have to invoke tsc before updating. However, if you prefer the explicit step, you can set main in your package.json to be something like “bin/index.js” and then require that tsc is run before. This will give you complete control on how you invoke typescript and what version you end up using.
Internally, we’ve landed on the “just write typescript and let Pulumi do the right thing”.
Meaning that’s how we choose to write the Pulumi programs that define our infrastructure.
Note that Pulumi will not explicitly run tslint, so probably something you want to continue to do in CI.
2 Views