Skip to content

Commit 25498ad

Browse files
committed
feat(@angular-devkit/schematics): re-export core string helpers from schematics package
The string helpers are predominantly used within schematics that will already depend and import from the `@angular-devkit/schematics` package. By re-exporting from `@angular-devkit/schematics`, the need to directly depend and import `@angular-devkit/core` within a schematic can be reduced and in many cases eliminated.
1 parent b298786 commit 25498ad

File tree

2 files changed

+5
-2
lines changed
  • goldens/public-api/angular_devkit/schematics
  • packages/angular_devkit/schematics/src

2 files changed

+5
-2
lines changed

goldens/public-api/angular_devkit/schematics/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { Observable } from 'rxjs';
1212
import { Path } from '@angular-devkit/core';
1313
import { PathFragment } from '@angular-devkit/core';
1414
import { schema } from '@angular-devkit/core';
15+
import { strings } from '@angular-devkit/core';
1516
import { Subject } from 'rxjs';
1617
import { Url } from 'url';
1718
import { virtualFs } from '@angular-devkit/core';
@@ -841,6 +842,8 @@ export function source(tree: Tree_2): Source;
841842
// @public (undocumented)
842843
const standardFormats: schema.SchemaFormat[];
843844

845+
export { strings }
846+
844847
// @public (undocumented)
845848
export interface TaskConfiguration<T = {}> {
846849
// (undocumented)

packages/angular_devkit/schematics/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9+
import { strings } from '@angular-devkit/core';
910
import * as formats from './formats/index';
1011
import { FilePredicate, MergeStrategy, Tree as TreeInterface } from './tree/interface';
1112
import { branch, empty, merge, partition } from './tree/static';
@@ -33,8 +34,7 @@ export * from './engine/schematic';
3334
export * from './sink/dryrun';
3435
export * from './sink/host';
3536
export * from './sink/sink';
36-
export { formats };
37-
export { workflow };
37+
export { formats, strings, workflow };
3838

3939
export interface TreeConstructor {
4040
empty(): TreeInterface;

0 commit comments

Comments
 (0)