@@ -31,26 +31,27 @@ async function generateXanoscriptRepo({ instance, workspace, branch, core, print
3131 workspace,
3232 branch,
3333 } ) ;
34- const { instanceConfig, workspaceConfig, branchConfig } = await resolveConfigs ( {
34+ const { instanceConfig, workspaceConfig, branchConfig, context } = await resolveConfigs ( {
35+ requiredFields : [ 'instance' , 'workspace' , 'branch' ] ,
3536 cliContext : { instance, workspace, branch } ,
3637 core,
3738 } ) ;
3839
3940 // Resolve output dir
4041 const outputDir = replacePlaceholders ( instanceConfig . xanoscript . output , {
41- '@' : await core . findProjectRoot ( ) ,
42+ '@' : await findProjectRoot ( ) ,
4243 instance : instanceConfig . name ,
4344 workspace : workspaceConfig . name ,
4445 branch : branchConfig . label ,
4546 } ) ;
4647
4748 clearDirectory ( outputDir ) ;
48- await mkdirSync ( outputDir , { recursive : true } ) ;
49+ mkdirSync ( outputDir , { recursive : true } ) ;
4950
5051 const plannedWrites : { path : string ; content : string } [ ] = await core . buildXanoscriptRepo ( {
51- instance,
52- workspace,
53- branch,
52+ instance : context . instance ,
53+ workspace : context . workspace ,
54+ branch : context . branch ,
5455 } ) ;
5556 await Promise . all (
5657 plannedWrites . map ( async ( { path, content } ) => {
0 commit comments