mirror of
https://github.com/sasjs/server.git
synced 2026-01-04 21:30:05 +00:00
feat: compile systemInit and inject to autoExec
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
import path from 'path'
|
||||
import { getRealPath } from '@sasjs/utils'
|
||||
|
||||
export const apiRoot = path.join(__dirname, '..', '..')
|
||||
export const codebaseRoot = path.join(apiRoot, '..')
|
||||
export const sysInitCompiledPath = path.join(
|
||||
apiRoot,
|
||||
'sasjsbuild',
|
||||
'systemInitCompiled.sas'
|
||||
)
|
||||
|
||||
export const getWebBuildFolderPath = () =>
|
||||
path.join(__dirname, '..', '..', '..', 'web', 'build')
|
||||
path.join(codebaseRoot, 'web', 'build')
|
||||
|
||||
export const getTmpFolderPath = () =>
|
||||
process.driveLoc ?? getRealPath(path.join(process.cwd(), 'tmp'))
|
||||
|
||||
Reference in New Issue
Block a user