Skip to content

Commit ba7dd2f

Browse files
clydindgp1130
authored andcommitted
refactor(@angular-devkit/schematics): remove usage of custom deepCopy (#33051)
PR Close #33051
1 parent e9aa796 commit ba7dd2f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/angular_devkit/schematics/tools/schema-option-transform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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';
1010
import { Observable, from, of as observableOf } from 'rxjs';
1111
import { first, map, mergeMap } from 'rxjs/operators';
1212
import { 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

0 commit comments

Comments
 (0)