This repository was archived by the owner on Apr 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
9
- export * from './app-name' ;
10
- export * from './html-selector' ;
11
- export * from './path' ;
9
+ import { schema } from '@angular-devkit/core' ;
10
+ import { appNameFormat } from './app-name' ;
11
+ export { appNameFormat } from './app-name' ;
12
+ import { htmlSelectorFormat } from './html-selector' ;
13
+ export { htmlSelectorFormat } from './html-selector' ;
14
+ import { pathFormat } from './path' ;
15
+ export { pathFormat } from './path' ;
16
+
17
+ export const standardFormats : schema . SchemaFormat [ ] = [
18
+ appNameFormat ,
19
+ htmlSelectorFormat ,
20
+ pathFormat ,
21
+ ] ;
Original file line number Diff line number Diff line change @@ -129,12 +129,7 @@ const engine = new SchematicEngine(engineHost);
129
129
130
130
131
131
// Add support for schemaJson.
132
- const schemaFormats = [
133
- formats . appNameFormat ,
134
- formats . htmlSelectorFormat ,
135
- formats . pathFormat ,
136
- ] ;
137
- const registry = new schema . CoreSchemaRegistry ( schemaFormats ) ;
132
+ const registry = new schema . CoreSchemaRegistry ( formats . standardFormats ) ;
138
133
engineHost . registerOptionsTransform ( validateOptionsWithSchema ( registry ) ) ;
139
134
140
135
You can’t perform that action at this time.
0 commit comments