https://pulumi.com logo
#typescript
Title
# typescript
a

able-planet-19148

10/12/2021, 2:31 PM
What’s the best way to break resources into multiple files? Any pulumi recommended way or use Typescript exports?
b

broad-gold-44713

10/12/2021, 2:46 PM
I've been using [ComponentResource](https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/#CustomResource) classes to encapsulate related resources
💯 1
l

little-cartoon-10569

10/12/2021, 7:53 PM
Also the only reasonable chunk of unit testable code (since you want to avoid everything like
pulumi.config
and StackReferences in unit tested code).