Skip to content

Commit

Permalink
Add WSL to Metadata (#9171)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored Oct 23, 2019
1 parent 573fbff commit 4328eea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"fresh": "0.5.2",
"ignore-loader": "0.1.2",
"is-docker": "2.0.0",
"is-wsl": "2.1.1",
"jest-worker": "24.9.0",
"launch-editor": "2.2.1",
"loader-utils": "1.2.3",
Expand Down
3 changes: 3 additions & 0 deletions packages/next/telemetry/anonymous-meta.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import isDockerFunction from 'is-docker'
import isWslBoolean from 'is-wsl'
import os from 'os'

import * as ciEnvironment from './ci-info'
Expand All @@ -13,6 +14,7 @@ type AnonymousMeta = {
memoryInMb: number
isDocker: boolean
isNowDev: boolean
isWsl: boolean
isCI: boolean
ciName: string | null
}
Expand All @@ -39,6 +41,7 @@ export function getAnonymousMeta(): AnonymousMeta {
// Environment information
isDocker: isDockerFunction(),
isNowDev: NOW_REGION === 'dev1',
isWsl: isWslBoolean,
isCI: ciEnvironment.isCI,
ciName: (ciEnvironment.isCI && ciEnvironment.name) || null,
}
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8082,6 +8082,11 @@ is-word-character@^1.0.0:
resolved "https://registry.yarnpkg.com/is-word-character/-/is-word-character-1.0.3.tgz#264d15541cbad0ba833d3992c34e6b40873b08aa"
integrity sha512-0wfcrFgOOOBdgRNT9H33xe6Zi6yhX/uoc4U8NBZGeQQB0ctU1dnlNTyL9JM2646bHDTpsDm1Brb3VPoCIMrd/A==

[email protected]:
version "2.1.1"
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.1.1.tgz#4a1c152d429df3d441669498e2486d3596ebaf1d"
integrity sha512-umZHcSrwlDHo2TGMXv0DZ8dIUGunZ2Iv68YZnrmCiBPkZ4aaOhtv7pXJKeki9k3qJ3RJr0cDyitcl5wEH3AYog==

is-wsl@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d"
Expand Down

0 comments on commit 4328eea

Please sign in to comment.