I guess more of a Typescript question than a Pulum...
# typescript
l
I guess more of a Typescript question than a Pulumi question, but how can I spread a large set of resources over multiple
.ts
files, all called from
index.ts
?
w
Just import all the other files into
index.ts
- right?
l
Guess so, but my attempt doesn’t seem to work.
w
If you want to import from another file but not actually reference any outputs, TypeScript has an unfortunate rule that you have to use the
import "./foo"
form.
l
Indeed, bitten by that TS issue.
Tnx.