1
0
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:
David Baker
2025-07-01 12:31:28 +01:00
committed by GitHub
parent 4f9ca2c697
commit 18ea8befdc

View File

@@ -10,7 +10,9 @@
"declaration": true,
"strict": true,
"allowImportingTsExtensions": true,
"lib": ["es2024"]
"lib": ["es2024"],
"baseUrl": ".",
"typeRoots": ["./node_modules/@types"]
},
"include": ["./src/**/*.ts", "./spec/**/*.ts"]
}