Skip to content

Commit abe107d

Browse files
committed
try to fix closure compiler
1 parent 45dd431 commit abe107d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"ts-node": "^3.0.0",
116116
"tslint": "^5.0.0",
117117
"tslint-no-unused-var": "0.0.6",
118-
"typescript": "~2.1.1",
118+
"typescript": "~2.2.1",
119119
"uglify-js": "^2.8.14",
120120
"web-animations-js": "^2.2.2"
121121
}

scripts/closure-compiler/build-devapp-bundle.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@ cd $(dirname $0)/../..
1212
$(npm bin)/gulp build:devapp
1313
$(npm bin)/gulp :package:release
1414

15+
echo 'Rebuild demo-app with ES2015 modules'
1516
# Rebuild demo-app with ES2015 modules. Closure compiler is then able to parse imports.
1617
$(npm bin)/tsc -p src/demo-app/tsconfig-build.json --target ES2015 --module ES2015
1718

19+
echo 'Re-compile RxJS sources into ES2015'
1820
# Re-compile RxJS sources into ES2015. Otherwise closure compiler can't parse it properly.
1921
$(npm bin)/ngc -p scripts/closure-compiler/tsconfig-rxjs.json
2022

23+
echo 'Create a list of all RxJS source files.'
2124
# Create a list of all RxJS source files.
2225
rxjsSourceFiles=$(find dist/packages/rxjs -name '*.js');
2326

27+
echo 'exports to the different RxJS ES2015 files'
2428
# Due a Closure Compiler issue https://github.com/google/closure-compiler/issues/2247
2529
# we need to add exports to the different RxJS ES2015 files.
2630
for i in $rxjsSourceFiles; do

0 commit comments

Comments
 (0)