We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4751cb4 commit 51af910Copy full SHA for 51af910
lib/current-env.js
@@ -13,12 +13,8 @@ function cpu () {
13
return process.arch
14
}
15
16
-function libc (osName) {
17
- // this is to make it faster on non linux machines
18
- if (osName !== 'linux') {
19
- return undefined
20
- }
21
- let family
+let family
+if (os() === 'linux') {
22
const originalExclude = process.report.excludeNetwork
23
process.report.excludeNetwork = true
24
const report = process.report.getReport()
@@ -28,6 +24,8 @@ function libc (osName) {
28
} else if (Array.isArray(report.sharedObjects) && report.sharedObjects.some(isMusl)) {
29
25
family = 'musl'
30
26
27
+}
+function libc (osName) {
31
return family
32
33
0 commit comments