I moved all of our resources to other modules impo...
# general
w
I moved all of our resources to other modules imported by index.ts and pulumi wants to delete everything 😬 — what am I missing?
g
Are you referencing any of the resources from those imports in your
index.ts
(or wherever you're importing them)? By default, TypeScript "optimizes" away unused imports.
w
No, just those 3 lines.
Any pro-tip on “using” the resources from these imports?
g
Yep, I think you can just do
import "./storage";
to force it.
w
oh ok i’ll try that.. this also worked:
Copy code
storage;

extract;

monitoring;
import "./storage";
worked!
👍 1