forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(language-service): support TypeScript 2.1 (angular#13655)
@angular/language-service now supports using TypeScript 2.1 as the the TypeScript host. TypeScript 2.1 is now also partially supported in `ngc` but is not recommended as Tsickle does not yet support 2.1.
- Loading branch information
Showing
7 changed files
with
84 additions
and
28 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
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
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
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 |
---|---|---|
|
@@ -6,9 +6,10 @@ LINKABLE_PKGS=( | |
$(pwd)/dist/packages-dist/{common,forms,core,compiler,compiler-cli,platform-{browser,server},platform-browser-dynamic,router} | ||
$(pwd)/dist/tools/@angular/tsc-wrapped | ||
) | ||
[email protected] | ||
[email protected] | ||
PKGS=( | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
@types/{[email protected],[email protected]} | ||
|
@@ -30,7 +31,7 @@ cp -v package.json $TMP | |
( | ||
cd $TMP | ||
set -ex -o pipefail | ||
npm install ${PKGS[*]} | ||
npm install ${PKGS[*]} $TYPESCRIPT_2_0 | ||
# TODO(alexeagle): allow this to be npm link instead | ||
npm install ${LINKABLE_PKGS[*]} | ||
|
||
|
@@ -62,3 +63,21 @@ cp -v package.json $TMP | |
mv tsconfig-build.json othername.json | ||
./node_modules/.bin/ngc -p othername.json | ||
) | ||
|
||
# Repeat selected parts of the above with TypeScript 2.1 | ||
readonly TMP_2_1=$TMPDIR/e2e_test.$(date +%s) | ||
mkdir -p $TMP_2_1 | ||
cp -R -v modules/@angular/compiler-cli/integrationtest/* $TMP_2_1 | ||
cp -R -v modules/benchmarks $TMP_2_1 | ||
cp -v package.json $TMP_2_1 | ||
( | ||
cd $TMP_2_1 | ||
set -ex -o pipefail | ||
|
||
npm install ${PKGS[*]} $TYPESCRIPT_2_1 | ||
npm install ${LINKABLE_PKGS[*]} | ||
|
||
./node_modules/.bin/tsc --version | ||
node ./node_modules/@angular/tsc-wrapped/src/main -p third_party_src/tsconfig-build.json | ||
./node_modules/.bin/ngc -p tsconfig-build.json --i18nFile=src/messages.fi.xlf --locale=fi --i18nFormat=xlf | ||
) |
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
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
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