- return process.env.NODE_APP_INSTANCE
-}
-
-// ---------------------------------------------------------------------------
-
-let rootPath: string
-
-function root () {
- if (rootPath) return rootPath
-
- // We are in /helpers/utils.js
- rootPath = join(__dirname, '..', '..')
-
- if (basename(rootPath) === 'dist') rootPath = resolve(rootPath, '..')
-
- return rootPath
-}
-
-function buildPath (path: string) {
- if (isAbsolute(path)) return path
-
- return join(root(), path)
-}
-
-function getLowercaseExtension (filename: string) {
- const ext = extname(filename) || ''
-
- return ext.toLowerCase()