@@ -396,14 +396,17 @@ export class ServicesHelper {
396396 }
397397 }
398398
399-
400399 let mdfiles = "" ;
401400 terraformComponent . files . map ( async ( file : OutputFile ) => {
402401 if ( file . type === "documentation" ) {
403402 mdfiles += "- [" + file . name + "](" + file . name + ")\n" ;
404403 }
405404 } ) ;
406405
406+ zip . addLocalFolder ( './public/utils' , 'utils' ) ;
407+ zip . addLocalFile ( './public/credentials.template' )
408+ zip . addLocalFile ( './public/launch.sh' )
409+
407410 // Load the Core ReadME
408411 const readme = new UrlFile ( { name : 'README.MD' , type : OutputFileType . documentation , url : "https://raw.githubusercontent.com/ibm-gsi-ecosystem/ibm-enterprise-catalog-tiles/main/BUILD.MD" } ) ;
409412 const newFiles = terraformComponent . files ;
@@ -422,6 +425,8 @@ export class ServicesHelper {
422425
423426 let contents : string | Buffer = "" ;
424427 //console.log(file.name);
428+ if ( file . name . endsWith ( '.tfvars' ) ) file . name = `terraform/${ file . name . replace ( 'terraform' , `${ bom . metadata . name } .auto` ) } ` ;
429+ if ( file . name . endsWith ( '.tf' ) ) file . name = `terraform/${ file . name } ` ;
425430 if ( file . type === "documentation" ) {
426431 try {
427432 // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -442,10 +447,6 @@ export class ServicesHelper {
442447 console . log ( "failed to load contents from " , file . name ) ;
443448 }
444449 } else {
445- if ( file . type === 'terraform' ) {
446- if ( file . name ?. endsWith ( '.tfvars' ) ) file . name = file . name . replace ( 'terraform' , `${ bom . metadata . name } .auto` ) ;
447- file . name = `terraform/${ file . name } ` ;
448- }
449450 try {
450451 contents = ( await file . contents ) . toString ( ) ;
451452 } catch ( e ) {
0 commit comments