Skip to content

Commit

Permalink
Fix the TS used for the GB-Mobile project.
Browse files Browse the repository at this point in the history
Make sure only types inside node_modules/@types are used.

This avoids TS to find the ../node_modules/@types inside the gb-mobile
repo that lives one path level up of gutenberg root.
  • Loading branch information
SergioEstevao committed Apr 1, 2020
1 parent 307e1fb commit a4e7fb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@

/* This needs to be false so our types are possible to consume without setting this */
"esModuleInterop": false,
"resolveJsonModule": true
"resolveJsonModule": true,

"typeRoots":["./node_modules/@types"]
},
"exclude": [ "**/benchmark", "**/test/**", "**/build/**", "**/build-*/**" ]
}

0 comments on commit a4e7fb1

Please sign in to comment.