File tree 1 file changed +9
-6
lines changed
packages/angular/cli/commands
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -104,15 +104,18 @@ export class UpdateCommand extends SchematicCommand<UpdateCommandSchema> {
104
104
this . logger . info ( `Using package manager: '${ packageManager } '` ) ;
105
105
106
106
// Special handling for Angular CLI 1.x migrations
107
- if ( options . migrateOnly === undefined && options . from === undefined ) {
108
- if ( ! options . all && packages . length === 1 && packages [ 0 ] . name === '@angular/cli' ) {
109
- const oldConfigFilePath = findUp ( oldConfigFileNames , process . cwd ( ) ) ;
110
- if ( oldConfigFilePath ) {
107
+ if (
108
+ options . migrateOnly === undefined &&
109
+ options . from === undefined &&
110
+ ! options . all &&
111
+ packages . length === 1 &&
112
+ packages [ 0 ] . name === '@angular/cli' &&
113
+ this . workspace . configFile &&
114
+ oldConfigFileNames . includes ( this . workspace . configFile )
115
+ ) {
111
116
options . migrateOnly = true ;
112
117
options . from = '1.0.0' ;
113
118
}
114
- }
115
- }
116
119
117
120
this . logger . info ( 'Collecting installed dependencies...' ) ;
118
121
You can’t perform that action at this time.
0 commit comments