diff options
author | mattn <mattn.jp@gmail.com> | 2019-12-27 16:04:15 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-27 16:04:15 +0900 |
commit | 8dad706ad6624f895fa54722f277f6a2735e6c5e (patch) | |
tree | a1be6a58b292660b79b641041ec9a2d455782c2a /installer/npm_install.cmd | |
parent | fc9e07839ac7dafc8107ccd003f8369ca0198406 (diff) | |
parent | 5c11e83a145cc8977fba63cb0c9b666e1d7317e3 (diff) | |
download | vim-lsp-settings-8dad706ad6624f895fa54722f277f6a2735e6c5e.tar.gz vim-lsp-settings-8dad706ad6624f895fa54722f277f6a2735e6c5e.tar.bz2 vim-lsp-settings-8dad706ad6624f895fa54722f277f6a2735e6c5e.zip |
Merge pull request #36 from wordijp/feature/keep_current_directory
Keep current directory after execution in npm_install
Diffstat (limited to 'installer/npm_install.cmd')
-rw-r--r-- | installer/npm_install.cmd | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/installer/npm_install.cmd b/installer/npm_install.cmd index ecb09da..caea4a8 100644 --- a/installer/npm_install.cmd +++ b/installer/npm_install.cmd @@ -6,6 +6,7 @@ if "x%2" equ "x" goto :EOF set server_dir=..\servers\%1
if exist "%server_dir%" rd /Q /S "%server_dir%"
md "%server_dir%"
+pushd .
cd /d "%server_dir%"
call npm init -y
@@ -19,3 +20,4 @@ echo @echo off ^ call %%~dp0\node_modules\.bin\%1.cmd %%* ^
> %1.cmd
+popd
|