-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
1,101 additions
and
8,557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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)" | ||
|
||
|
Oops, something went wrong.