From 8a9609d4eaf86a1d33bf6e2bab722b3704afa9d9 Mon Sep 17 00:00:00 2001 From: Tom Mrazauskas Date: Wed, 5 Apr 2023 10:53:26 +0300 Subject: [PATCH] chore(deps): bump TypeScript to v4.9.5 (#14028) --- .github/workflows/nodejs.yml | 22 ++++++++++++++++++++-- packages/jest-cli/package.json | 1 + tsconfig.typetest.json | 7 +++---- yarn.lock | 19 ++++++++++--------- 4 files changed, 34 insertions(+), 15 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 39abe409fe23..3d64ec91b486 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -52,12 +52,30 @@ jobs: run: yarn test-ts --selectProjects type-tests - name: verify TypeScript@4.3 compatibility run: yarn verify-old-ts + - name: run ESLint with type info + run: yarn lint-ts-files + + typecheck: + name: Typecheck Examples and Tests + runs-on: ubuntu-latest + needs: prepare-yarn-cache-ubuntu + + steps: + - uses: actions/checkout@v3 + with: + persist-credentials: false + - uses: actions/setup-node@v3 + with: + node-version: lts/* + cache: yarn + - name: install + run: yarn --immutable + - name: build + run: yarn build:ts - name: typecheck examples run: yarn typecheck:examples - name: typecheck tests run: yarn typecheck:tests - - name: run ESLint with type info - run: yarn lint-ts-files lint: name: Lint diff --git a/packages/jest-cli/package.json b/packages/jest-cli/package.json index 9cb831d69ba1..45700ebfbb1d 100644 --- a/packages/jest-cli/package.json +++ b/packages/jest-cli/package.json @@ -27,6 +27,7 @@ "yargs": "^17.3.1" }, "devDependencies": { + "@tsd/typescript": "^4.9.0", "@types/exit": "^0.1.30", "@types/graceful-fs": "^4.1.3", "@types/prompts": "^2.0.1", diff --git a/tsconfig.typetest.json b/tsconfig.typetest.json index 674fcd2c0cfa..ea74c0e9b950 100644 --- a/tsconfig.typetest.json +++ b/tsconfig.typetest.json @@ -1,12 +1,11 @@ { - "extends": "./tsconfig.json", + "extends": "@tsconfig/node14/tsconfig.json", "compilerOptions": { - "composite": false, - "emitDeclarationOnly": false, "noEmit": true, "noUnusedLocals": false, "noUnusedParameters": false, - "skipLibCheck": true, + /* This needs to be false so our types are possible to consume without setting this */ + "esModuleInterop": false, "types": [] } diff --git a/yarn.lock b/yarn.lock index bb093cfce1dc..5e7962c4bb4b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4384,9 +4384,9 @@ __metadata: linkType: hard "@tsd/typescript@npm:^4.9.0": - version: 4.9.4 - resolution: "@tsd/typescript@npm:4.9.4" - checksum: 08eafe058e0e8b2421945d0faa477ca443eee0fcb81a05e4405d5123b7379578d8b4918f9079e4d31538b4ce2bb69f32d62406b9f52b07e90e39fb725c4ee2b0 + version: 4.9.5 + resolution: "@tsd/typescript@npm:4.9.5" + checksum: f9f01ecf2094e0ac83e56cc57430bdf81da82aa20424280002b44ea29cdc171388a9777262257f550800bf76567774521728e1ef6e191633ae6f723ee64d396a languageName: node linkType: hard @@ -12617,6 +12617,7 @@ __metadata: "@jest/core": "workspace:^" "@jest/test-result": "workspace:^" "@jest/types": "workspace:^" + "@tsd/typescript": ^4.9.0 "@types/exit": ^0.1.30 "@types/graceful-fs": ^4.1.3 "@types/prompts": ^2.0.1 @@ -20502,12 +20503,12 @@ __metadata: linkType: hard "typescript@npm:^4.8.2": - version: 4.9.4 - resolution: "typescript@npm:4.9.4" + version: 4.9.5 + resolution: "typescript@npm:4.9.5" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: e782fb9e0031cb258a80000f6c13530288c6d63f1177ed43f770533fdc15740d271554cdae86701c1dd2c83b082cea808b07e97fd68b38a172a83dbf9e0d0ef9 + checksum: ee000bc26848147ad423b581bd250075662a354d84f0e06eb76d3b892328d8d4440b7487b5a83e851b12b255f55d71835b008a66cbf8f255a11e4400159237db languageName: node linkType: hard @@ -20522,12 +20523,12 @@ __metadata: linkType: hard "typescript@patch:typescript@^4.8.2#~builtin": - version: 4.9.4 - resolution: "typescript@patch:typescript@npm%3A4.9.4#~builtin::version=4.9.4&hash=23ec76" + version: 4.9.5 + resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin::version=4.9.5&hash=23ec76" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 3e2ab0772908676d9b9cb83398c70003a3b08e1c6b3b122409df9f4b520f2fdaefa20c3d7d57dce283fed760ac94b3ce94d4a7fa875127b67852904425a1f0dc + checksum: ab417a2f398380c90a6cf5a5f74badd17866adf57f1165617d6a551f059c3ba0a3e4da0d147b3ac5681db9ac76a303c5876394b13b3de75fdd5b1eaa06181c9d languageName: node linkType: hard