From 492230ab3445ca3aea3e60f55d27cb9825018ef9 Mon Sep 17 00:00:00 2001 From: qiyi <30937518+qiyigg@users.noreply.github.com> Date: Tue, 17 Jul 2018 17:06:56 -0700 Subject: [PATCH] fix(generate_doc.sh): Use ES6 lib to compile down to ES5 (#4884) --- package-lock.json | 16 ++++++++-------- scripts/compile_to_es5.sh | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index e679c2a71..f023e12d6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -398,6 +398,14 @@ "repeat-element": "^1.1.2" } }, + "browserstack": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/browserstack/-/browserstack-1.5.1.tgz", + "integrity": "sha512-O8VMT64P9NOLhuIoD4YngyxBURefaSdR4QdhG8l6HZ9VxtU7jc3m6jLufFwKA5gaf7fetfB2TnRJnMxyob+heg==", + "requires": { + "https-proxy-agent": "^2.2.1" + } + }, "bytes": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.4.0.tgz", @@ -4227,14 +4235,6 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", "dev": true - }, - "browserstack": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/browserstack/-/browserstack-1.5.1.tgz", - "integrity": "sha512-O8VMT64P9NOLhuIoD4YngyxBURefaSdR4QdhG8l6HZ9VxtU7jc3m6jLufFwKA5gaf7fetfB2TnRJnMxyob+heg==", - "requires": { - "https-proxy-agent": "2.2.1" - } } } } diff --git a/scripts/compile_to_es5.sh b/scripts/compile_to_es5.sh index 674975d4c..93d9a12b3 100755 --- a/scripts/compile_to_es5.sh +++ b/scripts/compile_to_es5.sh @@ -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."