Skip to content

Commit 17c524a

Browse files
fix ts 4.4
1 parent d9d50db commit 17c524a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.evergreen/run-typescript.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ if [ "$TS_CHECK" == "COMPILE_DRIVER" ]; then
4444
npm run build:ts
4545
elif [ "$TS_CHECK" == "CHECK_TYPES" ]; then
4646
echo "checking driver types"
47+
if [ "$TS_VERSION" == "4.4" ]; then
4748
# check compilation
49+
node $TSC mongodb.d.ts --module commonjs --target es2021
50+
else
4851
node $TSC mongodb.d.ts --module node16 --target es2021
52+
fi
4953
else
5054
"Invalid value $TS_CHECK for TS_CHECK environment variable."
5155
exit 1

0 commit comments

Comments
 (0)