Files
vim-lsp-settings-mirror/installer/install-graphql-language-server.sh
2022-07-12 08:38:51 +09:00

14 lines
338 B
Bash
Executable File

#!/bin/sh
set -e
if [ ! -f package.json ]; then
# Avoid the problem of not being able to install the same package as name in package.json.
# Create an empty package.json.
npm init -y
echo '{"name": ""}' >package.json
fi
npm install "graphql-language-service-cli"
ln -s "./node_modules/.bin/graphql-lsp" graphql-language-server