Skip to content

Commit

Permalink
ensure that module can be required in node without errors
Browse files Browse the repository at this point in the history
see #1642

>We have this library bundled and running in an isomorphic application, but on the server nothing is ever called. It just needs to be bundled safely.
  • Loading branch information
tjenkinson committed Mar 28, 2018
1 parent 0010f62 commit f8467b1
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 f8467b1

Please sign in to comment.