aboutsummaryrefslogtreecommitdiff
path: root/installer/install-javascript-typescript-langserver.sh
diff options
context:
space:
mode:
Diffstat (limited to 'installer/install-javascript-typescript-langserver.sh')
-rwxr-xr-xinstaller/install-javascript-typescript-langserver.sh18
1 files changed, 3 insertions, 15 deletions
diff --git a/installer/install-javascript-typescript-langserver.sh b/installer/install-javascript-typescript-langserver.sh
index 572a8df..de35663 100755
--- a/installer/install-javascript-typescript-langserver.sh
+++ b/installer/install-javascript-typescript-langserver.sh
@@ -1,20 +1,8 @@
-#!/bin/sh
+#!/bin/bash
set -e
cd $(dirname $0)
-[ -d ../servers/javascript-typescript-langserver ] && rm -rf ../servers/javascript-typescript-langserver
-mkdir ../servers/javascript-typescript-langserver
-cd ../servers/javascript-typescript-langserver
-git clone https://github.com/sourcegraph/javascript-typescript-langserver .
-npm install
-npm build
-cat <<EOF > javascript-typescript-langserver
-#!/bin/sh
-
-DIR=\$(cd \$(dirname \$0); pwd)
-node \$DIR/lib/language-server-stdio.js
-EOF
-
-chmod +x javascript-typescript-langserver
+. ./npm.sh
+npm_install javascript-typescript-langserver javascript-typescript-langserver