@@ -91,7 +91,7 @@ export async function build(
91
91
console . log ( chalk . white ( 'Skipping compiling of build folders...' ) )
92
92
} else {
93
93
console . log ( chalk . redBright ( result . message ) )
94
- await compile ( )
94
+ await compile ( targetName )
95
95
}
96
96
97
97
await createFinalSasFiles ( )
@@ -955,13 +955,16 @@ async function validCompiled(servicesBuildFolders, jobsBuildFolders) {
955
955
message : `Build Folder doesn't exists: ${ buildDestinationFolder } `
956
956
}
957
957
958
- const subFolders = await getSubFoldersInFolder ( buildDestinationServ )
958
+ const serviceSubFolders = await getSubFoldersInFolder ( buildDestinationServ )
959
959
960
960
const servicesPresent = servicesBuildFolders . every ( ( folder ) =>
961
- subFolders . includes ( folder )
961
+ serviceSubFolders . includes ( folder )
962
962
)
963
+
964
+ const jobSubFolders = await getSubFoldersInFolder ( buildDestinationJobs )
965
+
963
966
const jobsPresent = jobsBuildFolders . every ( ( folder ) =>
964
- subFolders . includes ( folder )
967
+ jobSubFolders . includes ( folder )
965
968
)
966
969
967
970
if ( servicesPresent && jobsPresent ) {
@@ -986,7 +989,7 @@ async function validCompiled(servicesBuildFolders, jobsBuildFolders) {
986
989
987
990
if ( returnObj . compiled ) {
988
991
await asyncForEach ( jobsBuildFolders , async ( buildFolder ) => {
989
- const folderPath = path . join ( buildDestinationServ , buildFolder )
992
+ const folderPath = path . join ( buildDestinationJobs , buildFolder )
990
993
const subFolders = await getSubFoldersInFolder ( folderPath )
991
994
const filesNamesInPath = await getFilesInFolder ( folderPath )
992
995
if ( subFolders . length == 0 && filesNamesInPath . length == 0 ) {
0 commit comments