mirror of
https://github.com/sasjs/server.git
synced 2025-12-11 19:44: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
|
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 { SASJS_ROOT } = process.env
|
||||||
const absPath = getAbsolutePath(SASJS_ROOT ?? 'sasjs_root', process.cwd())
|
const absPath = getAbsolutePath(SASJS_ROOT ?? 'sasjs_root', process.cwd())
|
||||||
await createFolder(absPath)
|
await createFolder(absPath)
|
||||||
|
|||||||
Reference in New Issue
Block a user