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

billions-lock-80282

07/04/2019, 2:48 PM
Hi, I'm sure this is an obvious question but how do I use multiple typescript files for my program. I get if you have a separate cluster.ts file and if resources in the index.ts have a dependancy on it, then it gets deployed first. But if there is no dependancy from index.ts, how can I reference it? For example I want cert-manager.ts file alongside index.ts. How do I invoke cert-manager.ts?
t

tall-librarian-49374

07/04/2019, 3:38 PM
You should be able to
import "./cert-manager";
from your
index.ts
and get it running.
b

billions-lock-80282

07/04/2019, 3:48 PM
ah yes how obvious 🙂. I was trying to do 'import * as <string> from "./cert-manager" and it wasn't working. Thanks