https://pulumi.com logo
#general
Title
# general
w

worried-engineer-33884

08/13/2019, 11:16 PM
I moved all of our resources to other modules imported by index.ts and pulumi wants to delete everything 😬 — what am I missing?
g

gentle-diamond-70147

08/13/2019, 11:22 PM
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

worried-engineer-33884

08/13/2019, 11:24 PM
No, just those 3 lines.
Any pro-tip on “using” the resources from these imports?
g

gentle-diamond-70147

08/13/2019, 11:27 PM
Yep, I think you can just do
import "./storage";
to force it.
w

worried-engineer-33884

08/13/2019, 11:27 PM
oh ok i’ll try that.. this also worked:
Copy code
storage;

extract;

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