File tree Expand file tree Collapse file tree 1 file changed +19
-12
lines changed
Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -87,10 +87,7 @@ export class WorkspaceDevRunner {
8787 path : dir ,
8888 } ;
8989 const skip = this . options . projects ?. [ name ] ?. skip ;
90- if ( skip && skip !== 'only' ) {
91- console . log (
92- `${ PLUGIN_LOG_TITLE } Prune project ${ name } and its dependencies because it is marked as skip: true` ,
93- ) ;
90+ if ( skip === true ) {
9491 return ;
9592 }
9693 this . graph . setNode ( name , node ) ;
@@ -111,14 +108,24 @@ export class WorkspaceDevRunner {
111108 ) ;
112109
113110 const skip = this . options . projects ?. [ depName ] ?. skip ;
114- if ( isInternalDep && skip !== true ) {
115- this . graph . setEdge ( packageName , depName ) ;
116- this . checkGraph ( ) ;
117- const depPackage = packages . find (
118- ( pkg ) => pkg . packageJson . name === depName ,
119- ) ! ;
120- if ( ! this . getNode ( depName ) ) {
121- initNode ( depPackage ) ;
111+ if ( isInternalDep ) {
112+ if ( skip !== true ) {
113+ this . graph . setEdge ( packageName , depName ) ;
114+ this . checkGraph ( ) ;
115+ const depPackage = packages . find (
116+ ( pkg ) => pkg . packageJson . name === depName ,
117+ ) ! ;
118+ if ( ! this . getNode ( depName ) ) {
119+ initNode ( depPackage ) ;
120+ }
121+ } else {
122+ const logger = new Logger ( {
123+ name : depName ,
124+ } ) ;
125+ logger . emitLogOnce (
126+ 'stdout' ,
127+ `Prune project ${ depName } and its dependencies because it is marked as skip: true` ,
128+ ) ;
122129 }
123130 }
124131 }
You can’t perform that action at this time.
0 commit comments