Skip to content

Commit

Permalink
Revert "refactor(@schematics/angular): remove private /components API"
Browse files Browse the repository at this point in the history
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 6a4d733.

(cherry picked from commit 34481d0)
  • Loading branch information
clydin authored and dgp1130 committed Feb 22, 2024
1 parent f2a2e92 commit 4fc5c6a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/schematics/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
15 changes: 15 additions & 0 deletions packages/schematics/angular/private/components.ts
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit 4fc5c6a

Please sign in to comment.