File tree 2 files changed +7
-0
lines changed
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 {
41
41
this . $errors . failWithoutHelp ( `'${ dependency } ' is not a registered dependency.` ) ;
42
42
}
43
43
44
+
44
45
return { name : dependency , version : dependencyVersion } ;
45
46
} ) ;
46
47
} catch ( err ) {
@@ -66,6 +67,11 @@ class TestInitCommand implements ICommand {
66
67
const modulePeerDependencies = modulePackageJsonContent . peerDependencies || { } ;
67
68
68
69
for ( const peerDependency in modulePeerDependencies ) {
70
+ const isPeerDependencyExcluded = _ . includes ( mod . excludedPeerDependencies , peerDependency ) ;
71
+ if ( isPeerDependencyExcluded ) {
72
+ continue ;
73
+ }
74
+
69
75
const dependencyVersion = modulePeerDependencies [ peerDependency ] || "*" ;
70
76
71
77
// catch errors when a peerDependency is already installed
Original file line number Diff line number Diff line change @@ -1466,6 +1466,7 @@ interface IProcessService {
1466
1466
interface IDependencyInformation {
1467
1467
name : string ;
1468
1468
version ?: string ;
1469
+ excludedPeerDependencies ?: string [ ] ;
1469
1470
}
1470
1471
1471
1472
/**
You can’t perform that action at this time.
0 commit comments