File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ class TestInitCommand implements ICommand {
4141 this . $errors . failWithoutHelp ( `'${ dependency } ' is not a registered dependency.` ) ;
4242 }
4343
44+
4445 return { name : dependency , version : dependencyVersion } ;
4546 } ) ;
4647 } catch ( err ) {
@@ -66,6 +67,11 @@ class TestInitCommand implements ICommand {
6667 const modulePeerDependencies = modulePackageJsonContent . peerDependencies || { } ;
6768
6869 for ( const peerDependency in modulePeerDependencies ) {
70+ const isPeerDependencyExcluded = _ . includes ( mod . excludedPeerDependencies , peerDependency ) ;
71+ if ( isPeerDependencyExcluded ) {
72+ continue ;
73+ }
74+
6975 const dependencyVersion = modulePeerDependencies [ peerDependency ] || "*" ;
7076
7177 // catch errors when a peerDependency is already installed
Original file line number Diff line number Diff line change @@ -1466,6 +1466,7 @@ interface IProcessService {
14661466interface IDependencyInformation {
14671467 name : string ;
14681468 version ?: string ;
1469+ excludedPeerDependencies ?: string [ ] ;
14691470}
14701471
14711472/**
You can’t perform that action at this time.
0 commit comments