1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 11:24:35 +00:00

fix: add runtimes to global process object

This commit is contained in:
2022-06-03 17:19:12 +05:00
parent ad82ee7106
commit 194eaec7d4

View File

@@ -19,6 +19,13 @@ export const setProcessVariables = async () => {
process.sasLoc = sasLoc
}
const { SASJS_RUNTIMES } = process.env
const runTimes = SASJS_RUNTIMES
? SASJS_RUNTIMES.split(',').map((runTime) => runTime.toLowerCase())
: ['sas']
process.runTimes = runTimes
const { SASJS_ROOT } = process.env
const absPath = getAbsolutePath(SASJS_ROOT ?? 'sasjs_root', process.cwd())
await createFolder(absPath)