generated from MetaMask/metamask-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.packages.json
30 lines (30 loc) · 1003 Bytes
/
tsconfig.packages.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"compilerOptions": {
"composite": true,
"esModuleInterop": true,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"noErrorTruncation": true,
"noUncheckedIndexedAccess": true,
"strict": true,
"skipLibCheck": false,
// NOTE: DOM is being used with "@types/web" package, if you declare it there, the compiler
// might complain about conflicting types. So everything has been setup to use "@types/web"
// explicitly (even in the package.json, see the "resolutions").
"lib": ["ES2020"],
"target": "es2020",
"module": "Node16",
"moduleResolution": "Node16",
/**
* Here we ensure that TypeScript resolves `@metamask/*` imports to the
* uncompiled source code for packages that live in this repo.
*
* NOTE: This must be synchronized with the `moduleNameMapper` option in
* `jest.config.packages.js`.
*/
"paths": {
"@metamask/*": ["../*/src"]
}
}
}