mirror of
https://github.com/sasjs/server.git
synced 2025-12-11 03:34:35 +00:00
12 lines
379 B
TypeScript
12 lines
379 B
TypeScript
import { createFile, fileExists } from '@sasjs/utils'
|
|
import { getDesktopUserAutoExecPath } from './file'
|
|
import { ModeType } from './verifyEnvVariables'
|
|
|
|
export const setupUserAutoExec = async () => {
|
|
if (process.env.MODE === ModeType.Desktop) {
|
|
if (!(await fileExists(getDesktopUserAutoExecPath()))) {
|
|
await createFile(getDesktopUserAutoExecPath(), '')
|
|
}
|
|
}
|
|
}
|