howdy :wave: I couldn’t find much information on ...
# getting-started
w
howdy 👋 I couldn’t find much information on best practices for breaking out pulumi to different files, I’m using typescript and simply importing * from folders according to my own logic not sure it’s the cause, but my issue right now is that I’m exporting a const from an inner file that I include from
index.ts
but it’s not being recognized as an output - is pulumi picking up all of the exports from all the files or do I need to indicate something specific in the root level
index.ts
?
v
👋 I’ve found that just importing the folder seems to work, ie if I had a directory called
s3
with an
index.ts
file in it, I can execute whatevers in that
index.ts
by calling
import './s3';
in my top-level
index.ts
w
right, so importing works fine - everything sets up perfectly, but I’m not seeing the outputs
v
you need to generate outputs by running
export const myOutput = someThing;
in the top-level index.ts
you got any examples you could send?
just so i can see what you’re trying to do
w
exporting in root level index solves it, thanks!
🙌 1
v
no problem 🙂 glad to have helped
🙌 1