File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ npm install -g @sourcegraph/lsif-typescript
15
15
Navigate to the project root, containing ` tsconfig.json ` .
16
16
17
17
``` sh
18
+ npm install # or yarn install
18
19
lsif-typescript index
19
20
```
20
21
@@ -23,15 +24,20 @@ lsif-typescript index
23
24
Navigate to the project root, containing ` package.json ` .
24
25
25
26
``` sh
27
+ npm install # or yarn install
26
28
lsif-typescript index --infer-tsconfig
27
29
```
28
30
31
+ To improve the quality of indexing results for JavaScript,
32
+ consider adding ` @types/* ` packages as ` devDependencies ` in ` package.json ` .
33
+
29
34
### Index a TypeScript project using Yarn workspaces
30
35
31
36
Navigate to the project root, containing ` package.json ` .
32
37
33
38
```
34
- lsif-typescript index --yarn-workspaces.
39
+ npm install # or yarn install
40
+ lsif-typescript index --yarn-workspaces
35
41
```
36
42
37
43
### Indexing in CI
@@ -40,6 +46,7 @@ Add the following run steps to your CI pipeline:
40
46
41
47
``` sh
42
48
npm install -g @sourcegraph/lsif-typescript
49
+ npm install # or yarn install
43
50
lsif-typescript index
44
51
# From https://github.com/sourcegraph/src-cli/
45
52
src lsif upload
You can’t perform that action at this time.
0 commit comments