diff --git a/scripts/travis.sh b/scripts/travis.sh index 3d3b71f9ed9..c4ab2d5fffe 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -7,6 +7,9 @@ npm install if [ "${TRAVIS_MODE}" = "build" ]; then npm run lint npm run build + # check that hls.js doesn't error if requiring in node + # see https://github.com/video-dev/hls.js/pull/1642 + node -e 'require("./" + require("./package.json").main)' elif [ "${TRAVIS_MODE}" = "unitTests" ]; then npm run test:unit elif [ "${TRAVIS_MODE}" = "funcTests" ]; then