Skip to content

Commit

Permalink
Fix the TS used for the GB-Mobile project. (#21324)
Browse files Browse the repository at this point in the history
* Fix the TS used for the GB-Mobile project.

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.

* Framework: Fix configuration spacing

* Change to types node.

* Revert "Change to types node."

This reverts commit bfb8b7b.

Co-authored-by: Andrew Duthie <[email protected]>
  • Loading branch information
SergioEstevao and aduth committed Apr 2, 2020
1 parent adfc9b9 commit 5941c92
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 5941c92

Please sign in to comment.