Skip to content

Commit 64dc577

Browse files
authored
chore(NODE-5246): update dependencies (#3658)
1 parent b27f385 commit 64dc577

File tree

4 files changed

+1101
-8557
lines changed

4 files changed

+1101
-8557
lines changed

.evergreen/run-typescript.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fi
2222

2323
function get_ts_version() {
2424
if [ "$TS_VERSION" == "current" ]; then
25-
echo $(node -e "console.log(require('./package-lock.json').dependencies.typescript.version)")
25+
echo $(node -e "console.log(require('./package-lock.json').packages['node_modules/typescript'].version)")
2626
else
2727
echo $TS_VERSION
2828
fi
@@ -31,7 +31,8 @@ function get_ts_version() {
3131
export TSC="./node_modules/typescript/bin/tsc"
3232
export TS_VERSION=$(get_ts_version)
3333

34-
npm install --no-save --force typescript@"$TS_VERSION"
34+
# On old versions of TS we need to put the node types back to 18.11.19
35+
npm install --no-save --force typescript@"$TS_VERSION" "$(if [[ $TS_VERSION == '4.1.6' ]]; then echo "@types/node@18.11.19"; else echo ""; fi)"
3536

3637
echo "Typescript $($TSC -v)"
3738

0 commit comments

Comments
 (0)