what's the best way to break down my index.ts file...
# typescript
s
what's the best way to break down my index.ts file into multiple configuration modules? i've noticed that if i make a new module and import it from within my index.ts file, pulumi won't create any of the resources unless i reference them, e.g. by exporting them. i'm guessing this is because node is immediately garbage collecting them or removing the import because its not used.
w
've noticed that if i make a new module and import it from within my index.ts file, pulumi won't create any of the resources unless i reference them
This is a slightly unfortunate TypeScript gotcha. If you use
import "file"
syntax, it should work.
👍 1
s
that worked, thanks for the quick answer @white-balloon-205!