Upgrade TS to 4.4

Summary: per title. TS 4.4 is awesome btw, with the much improved control flow analysis.

Reviewed By: timur-valiev

Differential Revision: D30806769

fbshipit-source-id: a41aa7bf10fdb0047ddb6210082b5e1fbdfb255f
This commit is contained in:
Michel Weststrate
2021-09-08 09:55:25 -07:00
committed by Facebook GitHub Bot
parent 946fc56b70
commit 1a91dc53fd
10 changed files with 20 additions and 38 deletions

View File

@@ -36,7 +36,7 @@
"rimraf": "^3.0.2",
"ts-jest": "^26.5.6",
"ts-node": "^9.1.1",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"scripts": {
"reset": "rimraf lib *.tsbuildinfo",

View File

@@ -20,7 +20,7 @@
"prettier": "^2.3.2",
"ts-jest": "^26.5.6",
"tslint-config-prettier": "^1.18.0",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"scripts": {
"reset": "rimraf lib *.tsbuildinfo",

View File

@@ -22,7 +22,7 @@
"rimraf": "^3.0.2",
"ts-jest": "^26.5.6",
"ts-node": "^9.1.1",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"scripts": {
"reset": "rimraf lib *.tsbuildinfo",

View File

@@ -25,7 +25,7 @@
"devDependencies": {
"@types/string-natural-compare": "^3.0.2",
"jest-mock-console": "^1.1.0",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"peerDependencies": {
"@ant-design/icons": "^4.2.2",

View File

@@ -185,7 +185,7 @@
"tmp": "^0.2.1",
"ts-jest": "^26.5.6",
"ts-node": "^9.1.1",
"typescript": "^4.3.5",
"typescript": "^4.4.2",
"uuid": "^8.3.2",
"yargs": "^17.0.1",
"yazl": "^2.5.1"

View File

@@ -29,7 +29,7 @@
"rimraf": "^3.0.2",
"ts-jest": "^26.5.6",
"ts-node": "^9.1.1",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"scripts": {
"reset": "rimraf lib *.tsbuildinfo",

View File

@@ -40,7 +40,7 @@
"rimraf": "^3.0.2",
"ts-jest": "^26.5.6",
"ts-node": "^9.1.1",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"scripts": {
"reset": "rimraf lib *.tsbuildinfo",

View File

@@ -31,7 +31,7 @@
"mock-fs": "^5.0.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.5.6",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"scripts": {
"reset": "rimraf lib *.tsbuildinfo",

View File

@@ -1,11 +1,7 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es7",
"dom",
"es2019"
],
"lib": ["es7", "dom", "es2019"],
"esModuleInterop": true,
"target": "ES2019",
"removeComments": true,
@@ -17,33 +13,19 @@
"moduleResolution": "node",
"skipLibCheck": true,
"strict": true,
"useUnknownInCatchVariables": false,
"composite": true,
"incremental": true,
"baseUrl": ".",
"allowJs": true,
"rootDir": ".",
"paths": {
"flipper": [
"./app/src"
],
"flipper-plugin": [
"./flipper-plugin/src"
],
"eslint-plugin-flipper": [
"./eslint-plugin-flipper/src"
],
"flipper-*": [
"./*/src"
],
"@js-shared/*": [
"../../js-shared/*"
]
"flipper": ["./app/src"],
"flipper-plugin": ["./flipper-plugin/src"],
"eslint-plugin-flipper": ["./eslint-plugin-flipper/src"],
"flipper-*": ["./*/src"],
"@js-shared/*": ["../../js-shared/*"]
}
},
"exclude": [
"**/lib/",
"**/dist/",
"**/node_modules/",
"**/__tests__/"
]
"exclude": ["**/lib/", "**/dist/", "**/node_modules/", "**/__tests__/"]
}

View File

@@ -12984,10 +12984,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
typescript@^4.3.5:
version "4.3.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4"
integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==
typescript@^4.4.2:
version "4.4.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.2.tgz#6d618640d430e3569a1dfb44f7d7e600ced3ee86"
integrity sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==
ua-parser-js@^0.7.18:
version "0.7.24"