6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
9
- import { normalize as devkitNormalize , isJsonObject , schema , tags } from '@angular-devkit/core' ;
9
+ import { normalize as devkitNormalize , schema , tags } from '@angular-devkit/core' ;
10
10
import { Collection , UnsuccessfulWorkflowExecution , formats } from '@angular-devkit/schematics' ;
11
11
import {
12
12
FileSystemCollectionDescription ,
@@ -143,7 +143,6 @@ export abstract class SchematicsCommandModule
143
143
) ;
144
144
145
145
let shouldReportAnalytics = true ;
146
-
147
146
workflow . engineHost . registerOptionsTransform ( async ( schematic , options ) => {
148
147
if ( shouldReportAnalytics ) {
149
148
shouldReportAnalytics = false ;
@@ -156,27 +155,6 @@ export abstract class SchematicsCommandModule
156
155
) ;
157
156
}
158
157
159
- // TODO: The below should be removed in version 15 when we change 1P schematics to use the `workingDirectory smart default`.
160
- // Handle `"format": "path"` options.
161
- const schema = schematic ?. schemaJson ;
162
- if ( ! options || ! schema || ! isJsonObject ( schema ) ) {
163
- return options ;
164
- }
165
-
166
- if ( ! ( 'path' in options && ( options as Record < string , unknown > ) [ 'path' ] === undefined ) ) {
167
- return options ;
168
- }
169
-
170
- const properties = schema ?. [ 'properties' ] ;
171
- if ( ! properties || ! isJsonObject ( properties ) ) {
172
- return options ;
173
- }
174
-
175
- const property = properties [ 'path' ] ;
176
- if ( ! property || ! isJsonObject ( property ) ) {
177
- return options ;
178
- }
179
-
180
158
return options ;
181
159
} ) ;
182
160
0 commit comments