File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
packages/schematics/angular/migrations/update-6 Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ function extractProjectsConfig(
260
260
const outDir = app . outDir || defaults . outDir ;
261
261
const appRoot = app . root || defaults . appRoot ;
262
262
263
- function _mapAssets ( asset : string | JsonObject ) {
263
+ function _mapAssets ( asset : string | { glob ?: string ; input ?: string ; output ?: string ; allowOutsideOutDir ?: boolean } ) {
264
264
if ( typeof asset === 'string' ) {
265
265
return normalize ( appRoot + '/' + asset ) ;
266
266
} else {
@@ -270,6 +270,13 @@ function extractProjectsConfig(
270
270
uses the 'allowOutsideOutDir' option which is not supported in Angular CLI 6.
271
271
` ) ;
272
272
273
+ return null ;
274
+ } else if ( ! asset . glob ) {
275
+ logger . warn ( tags . oneLine `
276
+ Asset with input '${ asset . input } ' was not migrated because it
277
+ does not contain a glob property.
278
+ ` ) ;
279
+
273
280
return null ;
274
281
} else if ( asset . output ) {
275
282
return {
You can’t perform that action at this time.
0 commit comments