File tree Expand file tree Collapse file tree
modules/code-generator/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,8 +111,6 @@ export class ProjectBuilder implements IProjectBuilder {
111111 // Init
112112 const { schemaParser } = this ;
113113
114- const projectRoot = await this . template . generateTemplate ( ) ;
115-
116114 let schema : IPublicTypeProjectSchema =
117115 typeof originalSchema === 'string' ? JSON . parse ( originalSchema ) : originalSchema ;
118116
@@ -131,6 +129,9 @@ export class ProjectBuilder implements IProjectBuilder {
131129 // Collect Deps
132130 // Parse JSExpression
133131 const parseResult : IParseResult = schemaParser . parse ( schema ) ;
132+
133+ const projectRoot = await this . template . generateTemplate ( parseResult ) ;
134+
134135 let buildResult : IModuleInfo [ ] = [ ] ;
135136
136137 const builders = this . createModuleBuilders ( {
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ export interface ISchemaParser {
127127
128128export interface IProjectTemplate {
129129 slots : Record < string , IProjectSlot > ;
130- generateTemplate : ( ) => ResultDir | Promise < ResultDir > ;
130+ generateTemplate : ( data : IParseResult ) => ResultDir | Promise < ResultDir > ;
131131}
132132
133133export interface IProjectSlot {
You can’t perform that action at this time.
0 commit comments