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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user