Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Commit

Permalink
ensure that module can be required in node without errors (video-dev#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tjenkinson authored and johnBartos committed Mar 29, 2018
1 parent 0010f62 commit b295f31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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
Expand Down

0 comments on commit b295f31

Please sign in to comment.