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

some-art-311

01/30/2020, 4:37 PM
Does anyone know how to use a global
tsconfig.json
for Pulumi ? If I drag the
tsconfig.json
into the sub folder, it is working fine
c

clever-sunset-76585

01/30/2020, 5:37 PM
Perhaps someone has a better answer for this, but you should be able to add a
tsconfig.json
file inside your
eks-infra
folder and say that it extends the one in the root of your project, like this:
Copy code
{
  "extends": "../tsconfig.json",
  ...any other options you would like to override
}
s

some-art-311

01/30/2020, 6:19 PM
Thanks, this way works. I am still trying to see if I can completely get rid of the
tsconfig.json
from sub-folder
c

clever-egg-2543

01/30/2020, 7:45 PM
Instead of
files
, use
include
and specify glob paths for the dirs you want to use.
3 Views