Skip to content

Commit

Permalink
fix: skip using typescript if node version <4
Browse files Browse the repository at this point in the history
  • Loading branch information
rauno56 committed Apr 29, 2021
1 parent 40872a0 commit f29f620
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ before_install:
elif node_version_lt '4.0' ; then npm_use_module 'supertest' '2.0.0'
elif node_version_lt '6.0' ; then npm_use_module 'supertest' '3.4.2'
fi
- |
# Configure typescript for type defs
if node_version_lt '4.0'; then
npm_remove_module_re '^typescript$'
npm_remove_module_re '^@types'
fi
# Update Node.js modules
- |
# Prune and rebuild node_modules
Expand Down

0 comments on commit f29f620

Please sign in to comment.