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.
1 parent2265445 commita37a192Copy full SHA for a37a192
src/environment.ts
@@ -23,6 +23,18 @@ export const SENTRY_DSN: string | null = process.env.SENTRY_DSN || null
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'.
+// Possible values are: 'aix', 'darwin', 'freebsd', 'linux', 'openbsd', 'sunos', and 'win32'.
27
+// The value 'android' may also be returned if Node.js is built on the Android operating system. Android support is experimental.
28
//@ts-ignore
-exportconstOS_PLATFORM:'win32'|'linux'=os.platform()
29
+exportconstOS_PLATFORM:'win32'|'linux'|'darwin'=os.platform()
30
+
31
+constsupportedOS=[
32
+'win32',// windows
33
+'darwin',// macos
34
+'linux',
35
+// 'android' // TODO: validate support
36
+]
37
38
+if(!supportedOS.includes(OS_PLATFORM)){
39
+thrownewError(`OS${OS_PLATFORM}" not supported with CodeRoad`)
40
+}