File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -20,26 +20,29 @@ let deps;
20
20
const setDeps = function ( ) {
21
21
try {
22
22
const pkg = JSON . parse (
23
- // @ts -expect-error It's ok
23
+ // @ts -expect-error It's ok
24
24
readFileSync ( join ( process . cwd ( ) , './package.json' ) ) ,
25
25
) ;
26
26
deps = new Set ( [
27
27
...( pkg . dependencies ?
28
28
Object . keys ( pkg . dependencies ) :
29
- // istanbul ignore next
29
+ // istanbul ignore next
30
30
[ ] ) ,
31
31
...( pkg . devDependencies ?
32
32
Object . keys ( pkg . devDependencies ) :
33
- // istanbul ignore next
33
+ // istanbul ignore next
34
+ [ ] ) ,
35
+ ...( pkg . peerDependencies ?
36
+ Object . keys ( pkg . peerDependencies ) :
37
+ // istanbul ignore next
34
38
[ ] ) ,
35
39
] ) ;
36
- } catch ( error ) {
37
- // istanbul ignore next -- our package.json exists
40
+ } catch ( error ) { // istanbul ignore next -- our package.json exists
38
41
deps = null ;
39
42
/* eslint-disable no-console -- Inform user */
40
43
// istanbul ignore next -- our package.json exists
41
44
console . log ( error ) ;
42
- /* eslint-enable no-console -- Inform user */
45
+ /* eslint-enable no-console -- Inform user */
43
46
}
44
47
} ;
45
48
You can’t perform that action at this time.
0 commit comments