From f5b4ba256b842d2b3dc68dcc8566e8a4156cb5df Mon Sep 17 00:00:00 2001 From: Rauno Viskus Date: Thu, 29 Apr 2021 10:43:09 +0300 Subject: [PATCH] fix: skip using typescript if node version <4 --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8e51387..1086826 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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