Hi how can i import resources from other typscript files to the main index.ts and run it? Do i need just to import them or execute something else?
Copy code
index.ts
|- service-account
|- index.ts
i
incalculable-camera-24952
06/23/2023, 7:38 PM
it comes down to what you've written in service-account/index.ts . if you define resources at the module level, they should be created on import. personally (and this applies to most things I do in typescript modules) I prefer exporting functions so that you have more control over when things are defined/run. so for example you could have a function like
export function getServiceAccounts(dependencies: any[]){/* . . . */}