File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,12 @@ export abstract class ArchitectCommand extends Command<ArchitectCommandOptions>
87
87
if ( ( ! targetSpec . project || ! targetSpec . target ) && ! this . multiTarget ) {
88
88
throw new Error ( 'Cannot determine project or target for Architect command.' ) ;
89
89
}
90
+
91
+ const builderConf = this . _architect . getBuilderConfiguration ( targetSpec ) ;
92
+ const builderDesc = await this . _architect . getBuilderDescription ( builderConf ) . toPromise ( ) ;
93
+ const targetOptionArray = await parseJsonSchemaToOptions ( this . _registry , builderDesc . schema ) ;
94
+
95
+ this . description . options . push ( ...targetOptionArray ) ;
90
96
}
91
97
92
98
async run ( options : ArchitectCommandOptions ) {
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export async function parseJsonSchemaToOptions(
79
79
if ( ! parentSchema ) {
80
80
// Ignore root.
81
81
return ;
82
- } else if ( pointer . split ( / p r o p e r t i e s | i t e m s / g) . length > 2 ) {
82
+ } else if ( pointer . split ( / \/ (?: p r o p e r t i e s | i t e m s | d e f i n i t i o n s ) \/ / g) . length > 2 ) {
83
83
// Ignore subitems (objects or arrays).
84
84
return ;
85
85
} else if ( json . isJsonArray ( current ) ) {
You can’t perform that action at this time.
0 commit comments