File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ import * as url from 'url'
3
3
4
4
import * as ts from 'typescript'
5
5
6
+ import packageJson from '../package.json'
7
+
6
8
import { FileIndexer } from './FileIndexer'
7
9
import { Input } from './Input'
8
10
import * as lsif from './lsif'
9
11
import { LsifSymbol } from './LsifSymbol'
10
12
import { Options , lsiftyped } from './main'
11
13
import { Packages } from './Packages'
12
- import packageJson from '../package.json'
13
14
14
15
export class ProjectIndexer {
15
16
private options : Options
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import * as path from 'path'
6
6
import * as ts from 'typescript'
7
7
import * as yargs from 'yargs'
8
8
9
+ import packageJson from '../package.json'
10
+
9
11
import * as lsif from './lsif'
10
12
import { ProjectIndexer } from './ProjectIndexer'
11
13
@@ -33,6 +35,7 @@ export function main(): void {
33
35
yargs
34
36
. scriptName ( 'lsif-typescript' )
35
37
. usage ( '$0 <cmd> [args]' )
38
+ . version ( packageJson . version )
36
39
. command (
37
40
'index [project]' ,
38
41
'LSIF index a project' ,
You can’t perform that action at this time.
0 commit comments