Skip to content

Commit 9e47626

Browse files
committed
fix: typescript linting bump one minor version
1 parent 64ee1bf commit 9e47626

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.evergreen/run-checks.sh

+10-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,16 @@ npm run check:lint
2020

2121
npm run check:unit
2222

23-
echo "Typescript $(npx tsc -v)"
23+
export TSC="./node_modules/typescript/bin/tsc"
24+
25+
echo "Typescript $($TSC -v)"
2426
# check resolution uses the default latest types
25-
echo "import * as mdb from '.'" > file.ts && npx tsc --noEmit --traceResolution file.ts | grep 'mongodb.d.ts' && rm file.ts
27+
echo "import * as mdb from '.'" > file.ts && $TSC --noEmit --traceResolution file.ts | grep 'mongodb.d.ts' && rm file.ts
2628

27-
npm i --no-save typescript@4.0.2 # there is no 4.0.0
28-
echo "Typescript $(npx tsc -v)"
29-
npx tsc --noEmit mongodb.ts34.d.ts
29+
npm i --no-save typescript@4.1.6
30+
echo "Typescript $($TSC -v)"
31+
$TSC --noEmit mongodb.ts34.d.ts
3032
# check that resolution uses the downleveled types
31-
echo "import * as mdb from '.'" > file.ts && npx tsc --noEmit --traceResolution file.ts | grep 'mongodb.ts34.d.ts' && rm file.ts
33+
echo "import * as mdb from '.'" > file.ts && $TSC --noEmit --traceResolution file.ts | grep 'mongodb.ts34.d.ts' && rm file.ts
34+
35+
rm -f file.ts

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ For version compatibility matrices, please refer to the following links:
4646

4747
#### Typescript Version
4848

49-
We recommend using the latest version of typescript, however we do provide a [downleveled](https://github.com/sandersn/downlevel-dts#readme) version of the type definitions that we test compiling against `typescript@4.0.2`.
49+
We recommend using the latest version of typescript, however we do provide a [downleveled](https://github.com/sandersn/downlevel-dts#readme) version of the type definitions that we test compiling against `typescript@4.1.6`.
5050
Since typescript [does not restrict breaking changes to major versions](https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes) we consider this support best effort.
5151
If you run into any unexpected compiler failures please let us know and we will do our best to correct it.
5252

0 commit comments

Comments
 (0)