From e6002f42cb23a1137bc7dbf99b12d7983feee5ee Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Thu, 22 Feb 2024 00:13:55 -0500 Subject: [PATCH] Revert "refactor(@schematics/angular): remove private `/components` API" The removed APIs are needed to support `ng add @angular/material@16` with Angular CLI v17. These APIs should be able to be safely removed with v18. This reverts commit 6a4d733ddaf67c0b93f48ff39cd2a987dcd2b024. --- packages/schematics/angular/package.json | 3 ++- packages/schematics/angular/private/components.ts | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 packages/schematics/angular/private/components.ts diff --git a/packages/schematics/angular/package.json b/packages/schematics/angular/package.json index a929afdcd285..d1f498f98e1b 100644 --- a/packages/schematics/angular/package.json +++ b/packages/schematics/angular/package.json @@ -13,7 +13,8 @@ "./utility": "./utility/index.js", "./utility/*": "./utility/*.js", "./migrations/migration-collection.json": "./migrations/migration-collection.json", - "./*": "./*.js" + "./*": "./*.js", + "./private/components": "./private/components.js" }, "schematics": "./collection.json", "dependencies": { diff --git a/packages/schematics/angular/private/components.ts b/packages/schematics/angular/private/components.ts new file mode 100644 index 000000000000..d679f1cc35da --- /dev/null +++ b/packages/schematics/angular/private/components.ts @@ -0,0 +1,15 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +export { + addModuleImportToStandaloneBootstrap, + addFunctionalProvidersToStandaloneBootstrap, + callsProvidersFunction, + findBootstrapApplicationCall, + importsProvidersFrom, +} from './standalone';