Skip to content

Commit

Permalink
chore(NODE-5246): update dependencies (#3658)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken authored May 9, 2023
1 parent b27f385 commit 64dc577
Show file tree
Hide file tree
Showing 4 changed files with 1,101 additions and 8,557 deletions.
5 changes: 3 additions & 2 deletions .evergreen/run-typescript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi

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

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

echo "Typescript $($TSC -v)"

Expand Down
Loading

0 comments on commit 64dc577

Please sign in to comment.