@@ -91,7 +91,7 @@ export async function build(
9191 console . log ( chalk . white ( 'Skipping compiling of build folders...' ) )
9292 } else {
9393 console . log ( chalk . redBright ( result . message ) )
94- await compile ( )
94+ await compile ( targetName )
9595 }
9696
9797 await createFinalSasFiles ( )
@@ -955,13 +955,16 @@ async function validCompiled(servicesBuildFolders, jobsBuildFolders) {
955955 message : `Build Folder doesn't exists: ${ buildDestinationFolder } `
956956 }
957957
958- const subFolders = await getSubFoldersInFolder ( buildDestinationServ )
958+ const serviceSubFolders = await getSubFoldersInFolder ( buildDestinationServ )
959959
960960 const servicesPresent = servicesBuildFolders . every ( ( folder ) =>
961- subFolders . includes ( folder )
961+ serviceSubFolders . includes ( folder )
962962 )
963+
964+ const jobSubFolders = await getSubFoldersInFolder ( buildDestinationJobs )
965+
963966 const jobsPresent = jobsBuildFolders . every ( ( folder ) =>
964- subFolders . includes ( folder )
967+ jobSubFolders . includes ( folder )
965968 )
966969
967970 if ( servicesPresent && jobsPresent ) {
@@ -986,7 +989,7 @@ async function validCompiled(servicesBuildFolders, jobsBuildFolders) {
986989
987990 if ( returnObj . compiled ) {
988991 await asyncForEach ( jobsBuildFolders , async ( buildFolder ) => {
989- const folderPath = path . join ( buildDestinationServ , buildFolder )
992+ const folderPath = path . join ( buildDestinationJobs , buildFolder )
990993 const subFolders = await getSubFoldersInFolder ( folderPath )
991994 const filesNamesInPath = await getFilesInFolder ( folderPath )
992995 if ( subFolders . length == 0 && filesNamesInPath . length == 0 ) {
0 commit comments