You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2026-01-03 23:22:30 +03:00
Specify typeroot (#4892)
This prevents tsc from picking up random types from parent directories such as in situations like an element-web layered build, and generally seems like good hygiene as we don't want to pick up random types from whatever directory we happen to be checked out into.
This commit is contained in:
@@ -10,7 +10,9 @@
|
||||
"declaration": true,
|
||||
"strict": true,
|
||||
"allowImportingTsExtensions": true,
|
||||
"lib": ["es2024"]
|
||||
"lib": ["es2024"],
|
||||
"baseUrl": ".",
|
||||
"typeRoots": ["./node_modules/@types"]
|
||||
},
|
||||
"include": ["./src/**/*.ts", "./spec/**/*.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user