File tree Expand file tree Collapse file tree
packages/angular_devkit/schematics/tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 * found in the LICENSE file at https://angular.dev/license
77 */
88
9- import { deepCopy , schema } from '@angular-devkit/core' ;
9+ import { schema } from '@angular-devkit/core' ;
1010import { Observable , from , of as observableOf } from 'rxjs' ;
1111import { first , map , mergeMap } from 'rxjs/operators' ;
1212import { FileSystemSchematicContext , FileSystemSchematicDescription } from './description' ;
@@ -28,7 +28,7 @@ export function validateOptionsWithSchema(registry: schema.SchemaRegistry) {
2828 context ?: FileSystemSchematicContext ,
2929 ) : Observable < T > => {
3030 // Prevent a schematic from changing the options object by making a copy of it.
31- options = deepCopy ( options ) ;
31+ options = structuredClone ( options ) ;
3232
3333 const withPrompts = context ? context . interactive : true ;
3434
You can’t perform that action at this time.
0 commit comments