File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -20,26 +20,29 @@ let deps;
2020const setDeps = function ( ) {
2121 try {
2222 const pkg = JSON . parse (
23- // @ts -expect-error It's ok
23+ // @ts -expect-error It's ok
2424 readFileSync ( join ( process . cwd ( ) , './package.json' ) ) ,
2525 ) ;
2626 deps = new Set ( [
2727 ...( pkg . dependencies ?
2828 Object . keys ( pkg . dependencies ) :
29- // istanbul ignore next
29+ // istanbul ignore next
3030 [ ] ) ,
3131 ...( pkg . devDependencies ?
3232 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
3438 [ ] ) ,
3539 ] ) ;
36- } catch ( error ) {
37- // istanbul ignore next -- our package.json exists
40+ } catch ( error ) { // istanbul ignore next -- our package.json exists
3841 deps = null ;
3942 /* eslint-disable no-console -- Inform user */
4043 // istanbul ignore next -- our package.json exists
4144 console . log ( error ) ;
42- /* eslint-enable no-console -- Inform user */
45+ /* eslint-enable no-console -- Inform user */
4346 }
4447} ;
4548
You can’t perform that action at this time.
0 commit comments