Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2265445

Browse files
committed
export OS_PLATFORM
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent4d7c100 commit2265445

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/environment.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ require('dotenv').config({
33
})
44

55
import{getWorkspaceRoot}from'./services/workspace'
6+
import*asosfrom'os'
67

78
// CodeRoad version
89
exportconstVERSION:string=process.env.npm_package_version||'unknown'
@@ -21,3 +22,7 @@ export const SENTRY_DSN: string | null = process.env.SENTRY_DSN || null
2122

2223
// uri path to the users project workspace
2324
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()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp