File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -133,21 +133,24 @@ ${formatPackageUpgrades(validUpgrades)}`);
133
133
{ stdio : 'inherit' }
134
134
) ;
135
135
136
- if (
137
- manifest . files
138
- . concat ( manifest . resources || [ ] )
139
- . some ( f => ! f . startsWith ( 'node_modules' ) )
140
- ) {
141
- return name ;
142
- }
136
+ const fileGlobs = manifest . files . concat (
137
+ manifest . resources || [ ]
138
+ ) ;
139
+ const hasExtraFiles = fileGlobs . some (
140
+ f => f [ 0 ] !== '!' && ! f . startsWith ( 'node_modules' )
141
+ ) ;
142
+
143
+ return hasExtraFiles ? name : null ;
143
144
}
144
145
) ;
145
146
146
- upgradeWarnings . forEach ( libraryName =>
147
- log . warn (
148
- chalk `The library {magenta ${ libraryName } } has some resources that do not come from {gray node_modules}, please verify that the upgrade was complete`
149
- )
150
- ) ;
147
+ upgradeWarnings
148
+ . filter ( libraryName => libraryName !== null )
149
+ . forEach ( libraryName =>
150
+ log . warn (
151
+ chalk `The library {magenta ${ libraryName } } has some resources that do not come from {gray node_modules}, please verify that the upgrade was complete`
152
+ )
153
+ ) ;
151
154
} ) ;
152
155
} )
153
156
) ;
You can’t perform that action at this time.
0 commit comments