diff --git a/api/src/app.ts b/api/src/app.ts index 655e1c9..2c24ac4 100644 --- a/api/src/app.ts +++ b/api/src/app.ts @@ -24,7 +24,7 @@ import { configureLogger, configureSecurity } from './app-modules' -import {folderExists} from '@sasjs/utils' +import { folderExists } from '@sasjs/utils' dotenv.config() @@ -73,10 +73,12 @@ export default setProcessVariables().then(async () => { if (!(await folderExists(getFilesFolder()))) await setupFilesFolder() if (!(await folderExists(getPackagesFolder()))) await setupPackagesFolder() - + const sasautosPath = path.join(process.driveLoc, 'sas', 'sasautos') if (await folderExists(sasautosPath)) { - console.log(`SASAUTOS was not refreshed. To force a refresh, delete the ${sasautosPath} folder`) + console.log( + `SASAUTOS was not refreshed. To force a refresh, delete the ${sasautosPath} folder` + ) } else { await copySASjsCore() await createWeboutSasFile() diff --git a/api/src/utils/setupFolders.ts b/api/src/utils/setupFolders.ts index 7e3ae56..54e3af7 100644 --- a/api/src/utils/setupFolders.ts +++ b/api/src/utils/setupFolders.ts @@ -1,9 +1,7 @@ import { createFolder } from '@sasjs/utils' import { getFilesFolder, getPackagesFolder } from './file' -export const setupFilesFolder = async () => - await createFolder(getFilesFolder()) +export const setupFilesFolder = async () => await createFolder(getFilesFolder()) export const setupPackagesFolder = async () => await createFolder(getPackagesFolder()) -