mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
20 lines
552 B
Bash
Executable File
20 lines
552 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
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 "@prisma/engines"
|
|
pushd "node_modules/@prisma/engines"
|
|
PRISMA_FMT_BASENAME="$(find . -name "prisma-fmt*")"
|
|
test -x "$PRISMA_FMT_BASENAME"
|
|
popd
|
|
|
|
ln -s "./node_modules/@prisma/engines/${PRISMA_FMT_BASENAME}" ./prisma-fmt
|
|
"$(dirname "$0")/npm_install.sh" prisma-language-server @prisma/language-server
|