diff --git a/scripts/npm-check-bundles.sh b/scripts/npm-check-bundles.sh index 988ea8f9c4..8d776e9a9e 100755 --- a/scripts/npm-check-bundles.sh +++ b/scripts/npm-check-bundles.sh @@ -93,8 +93,8 @@ do echo "js.map ok!" fi - if [ ! -f package/esm5/$PACKAGE'.js' ]; then - error_out '31;1' "esm5/$PACKAGE.js not found!" >&2 + if [ ! -f package/fesm2015/$PACKAGE'.js' ]; then + error_out '31;1' "fesm2015/$PACKAGE.js not found!" >&2 exit 1 else echo "esm5 ok!"