We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents4d7c100 +2265445 commitb60526dCopy full SHA for b60526d
src/environment.ts
@@ -3,6 +3,7 @@ require('dotenv').config({
3
})
4
5
import{getWorkspaceRoot}from'./services/workspace'
6
+import*asosfrom'os'
7
8
// CodeRoad version
9
exportconstVERSION:string=process.env.npm_package_version||'unknown'
@@ -21,3 +22,7 @@ export const SENTRY_DSN: string | null = process.env.SENTRY_DSN || null
21
22
23
// uri path to the users project workspace
24
exportconstWORKSPACE_ROOT:string=getWorkspaceRoot()
25
+
26
+// Possible values are 'aix', 'darwin', 'freebsd', 'linux', 'openbsd', 'sunos', and 'win32'.
27
+//@ts-ignore
28
+exportconstOS_PLATFORM:'win32'|'linux'=os.platform()