build: do not use tsickle to lower router-deprecated
if we do this, we can break existing code that is inheriting from RouterOutlet and expects the metadata in the old location
This commit is contained in:
parent
b600915953
commit
fcbfacb6d5
11
build.sh
11
build.sh
|
@ -50,8 +50,14 @@ do
|
||||||
UMDES5PATH=${DESTDIR}/${PACKAGE}.umd.js
|
UMDES5PATH=${DESTDIR}/${PACKAGE}.umd.js
|
||||||
|
|
||||||
|
|
||||||
|
if [[ ${PACKAGE} == "router-deprecated" ]]; then
|
||||||
|
echo "====== COMPILING: \$(npm bin)/tsc -p ${SRCDIR}/tsconfig-es5.json ====="
|
||||||
|
$(npm bin)/tsc -p ${SRCDIR}/tsconfig-es5.json
|
||||||
|
else
|
||||||
echo "====== COMPILING: \$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig-es5.json ====="
|
echo "====== COMPILING: \$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig-es5.json ====="
|
||||||
$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig-es5.json
|
$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig-es5.json
|
||||||
|
fi
|
||||||
|
|
||||||
cp ${SRCDIR}/package.json ${DESTDIR}/
|
cp ${SRCDIR}/package.json ${DESTDIR}/
|
||||||
|
|
||||||
|
|
||||||
|
@ -66,8 +72,13 @@ do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [[ ${PACKAGE} == "router-deprecated" ]]; then
|
||||||
|
echo "====== (esm)COMPILING: \$(npm bin)/tsc -p ${SRCDIR}/tsconfig-es2015.json ====="
|
||||||
|
$(npm bin)/tsc -p ${SRCDIR}/tsconfig-es2015.json
|
||||||
|
else
|
||||||
echo "====== (esm)COMPILING: \$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig-es2015.json ====="
|
echo "====== (esm)COMPILING: \$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig-es2015.json ====="
|
||||||
$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig-es2015.json
|
$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig-es2015.json
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "====== BUNDLING: ${SRCDIR} ====="
|
echo "====== BUNDLING: ${SRCDIR} ====="
|
||||||
|
|
Loading…
Reference in New Issue