Skip to content

Commit

Permalink
chore(NODE-5256): update dependencies (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken authored May 8, 2023
1 parent 52cc4bb commit ca31e3e
Show file tree
Hide file tree
Showing 5 changed files with 1,677 additions and 6,944 deletions.
5 changes: 3 additions & 2 deletions .evergreen/run-typescript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ source "${PROJECT_DIRECTORY}/.evergreen/init-nvm.sh"
set -o xtrace

function get_current_ts_version {
node -e "console.log(require('./package-lock.json').dependencies.typescript.version)"
node -e "console.log(require('./package-lock.json').packages['node_modules/typescript'].version)"
}

CURRENT_TS_VERSION=$(get_current_ts_version)

export TSC="./node_modules/typescript/bin/tsc"
export TS_VERSION=${TS_VERSION:=$CURRENT_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.0.2' ]]; then echo "@types/node@18.11.19"; else echo ""; fi)"

echo "Typescript $($TSC -v)"

Expand Down
Loading

0 comments on commit ca31e3e

Please sign in to comment.