diff --git a/build.sh b/build.sh index 39cb661d5d..b79938fe7b 100755 --- a/build.sh +++ b/build.sh @@ -161,18 +161,6 @@ do ${TSC} -p ${SRCDIR}/tsconfig-2015.json fi - echo "====== TSC 1.8 d.ts compat for ${DESTDIR} =====" - # safely strips 'readonly' specifier from d.ts files to make them compatible with tsc 1.8 - if [ "$(uname)" == "Darwin" ]; then - find ${DESTDIR} -type f -name '*.d.ts' -print0 | xargs -0 sed -i '' -e 's/\(^ *(static |private )*\)*readonly */\1/g' - find ${DESTDIR} -type f -name '*.d.ts' -print0 | xargs -0 sed -i '' -e 's/\/\/\/ //g' - find ${DESTDIR} -type f -name '*.d.ts' -print0 | xargs -0 sed -i '' -E 's/^( +)abstract ([[:alnum:]]+\:)/\1\2/g' - else - find ${DESTDIR} -type f -name '*.d.ts' -print0 | xargs -0 sed -i -e 's/\(^ *(static |private )*\)*readonly */\1/g' - find ${DESTDIR} -type f -name '*.d.ts' -print0 | xargs -0 sed -i -e 's/\/\/\/ //g' - find ${DESTDIR} -type f -name '*.d.ts' -print0 | xargs -0 sed -i -E 's/^( +)abstract ([[:alnum:]]+\:)/\1\2/g' - fi - if [[ ${PACKAGE} == benchpress ]]; then cp ${SRCDIR}/*.md ${DESTDIR} cp -r ${SRCDIR}/docs ${DESTDIR} diff --git a/modules/@angular/benchpress/tsconfig-build.json b/modules/@angular/benchpress/tsconfig-build.json index 2f27422d91..b8a1a3cc0d 100644 --- a/modules/@angular/benchpress/tsconfig-build.json +++ b/modules/@angular/benchpress/tsconfig-build.json @@ -14,7 +14,9 @@ "sourceRoot": ".", "outDir": "../../../dist/packages-dist/benchpress", "declaration": true, - "skipLibCheck": true + "skipLibCheck": true, + // don't auto-discover @types/node, it results in a ///