Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix(generate_doc.sh): Use ES6 lib to compile down to ES5 (#4884)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyigg authored Jul 18, 2018
1 parent 056eec2 commit 492230a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/compile_to_es5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ "$#" -gt 0 ]; then
fi

echo "Compiling down to es5..."
node node_modules/typescript/bin/tsc --target es5 --lib DOM,ES5,ScriptHost,ES2015.Promise
node node_modules/typescript/bin/tsc --target es5 --lib DOM,ES5,ScriptHost,ES6
if [ $? -ne 0 ]; then
echo -e "\033[0;31m" 1>&2 # Red
echo "Couldn't compile for es5."
Expand Down

0 comments on commit 492230a

Please sign in to comment.