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

fix(generate_doc.sh): Use ES6 lib to compile down to ES5 #4884

Merged
merged 1 commit into from
Jul 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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