generated from MetaMask/metamask-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update TypeScript to the latest stable version
TypeScript has been updated to the latest stable version. Additionally, the version range has been updated to use `~` because TypeScript does not follow SemVer (they make breaking changes as minor updates). The configuration has been updated to match the module template, except that two options (`exactOptionalPropertyTypes` and `noUncheckedIndexedAccess`) have been omitted temporarily to reduce the number of changes required for this update. They can be added in later PRs. Just as in the module template, a separate `tsconfig` file has been created to distinguish build settings from settings used to compile unit tests. The one configuration difference is the compilation target. The target is ES2019 here because this is a developer tool, so we don't need to stick to ES2017 for browser compatibility. [1]: https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/
- Loading branch information
Showing
5 changed files
with
68 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"inlineSources": true, | ||
"noEmit": false, | ||
"outDir": "dist", | ||
"rootDir": "src", | ||
"sourceMap": true | ||
}, | ||
"include": ["./src/**/*.ts"], | ||
"exclude": ["./src/**/*.test.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
{ | ||
"compilerOptions": { | ||
"declaration": true, | ||
"esModuleInterop": true, | ||
"inlineSources": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"lib": ["ES2020"], | ||
"module": "CommonJS", | ||
"moduleResolution": "Node", | ||
"outDir": "dist", | ||
"rootDir": "src", | ||
"sourceMap": true, | ||
"moduleResolution": "node", | ||
"noEmit": true, | ||
"noErrorTruncation": true, | ||
"strict": true, | ||
"target": "ES2019", | ||
"typeRoots": ["./node_modules/@types"] | ||
"target": "ES2019" | ||
}, | ||
"exclude": ["**/*.test.ts"], | ||
"include": ["./src/**/*.ts"] | ||
"exclude": ["./dist/**/*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters