aboutsummaryrefslogtreecommitdiff
path: root/installer/install-json-languageserver.cmd
blob: 871c92c855c7af3643b1643e629f1c4fdb50d07b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off

git clone --depth=1 https://github.com/vscode-langservers/vscode-json-languageserver ./

echo {^

	"compilerOptions": {^

		"target": "es2018",^

		"module": "commonjs",^

		"strict": true,^

		"alwaysStrict": true,^

		"noImplicitAny": true,^

		"noImplicitReturns": true,^

		"noUnusedLocals": true,^

		"noUnusedParameters": true,^

		"outDir": "./out",^

		"sourceMap": true,^

		"sourceRoot": "../src"^

	},^

	"include": [^

		"src/**/*"^

	]^

}^

> tsconfig.json

call npm i
call npx tsc -p .

echo @echo off ^

node %%~dp0\out\jsonServerMain.js %%* ^

> json-languageserver.cmd