mirror of
https://github.com/sasjs/server.git
synced 2026-01-01 20:40:06 +00:00
chore: lint fix
This commit is contained in:
@@ -24,7 +24,7 @@ import {
|
|||||||
configureLogger,
|
configureLogger,
|
||||||
configureSecurity
|
configureSecurity
|
||||||
} from './app-modules'
|
} from './app-modules'
|
||||||
import {folderExists} from '@sasjs/utils'
|
import { folderExists } from '@sasjs/utils'
|
||||||
|
|
||||||
dotenv.config()
|
dotenv.config()
|
||||||
|
|
||||||
@@ -73,10 +73,12 @@ export default setProcessVariables().then(async () => {
|
|||||||
if (!(await folderExists(getFilesFolder()))) await setupFilesFolder()
|
if (!(await folderExists(getFilesFolder()))) await setupFilesFolder()
|
||||||
|
|
||||||
if (!(await folderExists(getPackagesFolder()))) await setupPackagesFolder()
|
if (!(await folderExists(getPackagesFolder()))) await setupPackagesFolder()
|
||||||
|
|
||||||
const sasautosPath = path.join(process.driveLoc, 'sas', 'sasautos')
|
const sasautosPath = path.join(process.driveLoc, 'sas', 'sasautos')
|
||||||
if (await folderExists(sasautosPath)) {
|
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 {
|
} else {
|
||||||
await copySASjsCore()
|
await copySASjsCore()
|
||||||
await createWeboutSasFile()
|
await createWeboutSasFile()
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
import { createFolder } from '@sasjs/utils'
|
import { createFolder } from '@sasjs/utils'
|
||||||
import { getFilesFolder, getPackagesFolder } from './file'
|
import { getFilesFolder, getPackagesFolder } from './file'
|
||||||
|
|
||||||
export const setupFilesFolder = async () =>
|
export const setupFilesFolder = async () => await createFolder(getFilesFolder())
|
||||||
await createFolder(getFilesFolder())
|
|
||||||
|
|
||||||
export const setupPackagesFolder = async () =>
|
export const setupPackagesFolder = async () =>
|
||||||
await createFolder(getPackagesFolder())
|
await createFolder(getPackagesFolder())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user