File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,20 +10,20 @@ local function get_probe_dir(root_dir)
10
10
end
11
11
12
12
local function get_angular_core_version (root_dir )
13
- local project_root = vim .fs .dirname (vim .fs .find (" node_modules" , { path = root_dir , upward = true })[1 ])
13
+ local project_root = vim .fs .dirname (vim .fs .find (' node_modules' , { path = root_dir , upward = true })[1 ])
14
14
15
- local package_json = project_root .. " /package.json"
15
+ local package_json = project_root .. ' /package.json'
16
16
if not vim .loop .fs_stat (package_json ) then
17
- return " "
17
+ return ' '
18
18
end
19
19
20
- local contents = io.open (package_json ):read " *a "
20
+ local contents = io.open (package_json ):read ' *a '
21
21
local json = vim .json .decode (contents )
22
22
if not json .dependencies then
23
- return " "
23
+ return ' '
24
24
end
25
25
26
- local angular_core_version = json .dependencies [" @angular/core" ]
26
+ local angular_core_version = json .dependencies [' @angular/core' ]
27
27
28
28
return angular_core_version
29
29
end
You can’t perform that action at this time.
0 commit comments