@biomejs/biome
Advanced tools
Comparing version 1.4.0 to 1.4.1-nightly.570d680
@@ -1,1 +0,1 @@ | ||
{"name":"@biomejs/biome","version":"1.4.0","bin":"bin/biome","scripts":{"postinstall":"node scripts/postinstall.js"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"packages/@biomejs/biome"},"author":"Emanuele Stoppa","license":"MIT OR Apache-2.0","bugs":"https://github.com/biomejs/biome/issues","description":"Biome is a toolchain for the web: formatter, linter and more","files":["bin/biome","scripts/postinstall.js","configuration_schema.json","README.md","LICENSE-APACHE","LICENSE-MIT"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"funding":{"type":"opencollective","url":"https://opencollective.com/biome"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.4.0","@biomejs/cli-win32-arm64":"1.4.0","@biomejs/cli-darwin-x64":"1.4.0","@biomejs/cli-darwin-arm64":"1.4.0","@biomejs/cli-linux-x64":"1.4.0","@biomejs/cli-linux-arm64":"1.4.0"}} | ||
{"name":"@biomejs/biome","version":"1.4.1-nightly.570d680","bin":"bin/biome","scripts":{"postinstall":"node scripts/postinstall.js"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"packages/@biomejs/biome"},"author":"Emanuele Stoppa","license":"MIT OR Apache-2.0","bugs":"https://github.com/biomejs/biome/issues","description":"Biome is a toolchain for the web: formatter, linter and more","files":["bin/biome","scripts/postinstall.js","configuration_schema.json","README.md","LICENSE-APACHE","LICENSE-MIT","ROME-LICENSE-MIT"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"funding":{"type":"opencollective","url":"https://opencollective.com/biome"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.4.1-nightly.570d680","@biomejs/cli-win32-arm64":"1.4.1-nightly.570d680","@biomejs/cli-darwin-x64":"1.4.1-nightly.570d680","@biomejs/cli-darwin-arm64":"1.4.1-nightly.570d680","@biomejs/cli-linux-x64":"1.4.1-nightly.570d680","@biomejs/cli-linux-arm64":"1.4.1-nightly.570d680","@biomejs/cli-linux-x64-musl":"1.4.1-nightly.570d680","@biomejs/cli-linux-arm64-musl":"1.4.1-nightly.570d680"}} |
@@ -29,2 +29,8 @@ <p align="center"> | ||
<div align="center"> | ||
English | [įŽäŊä¸æ](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.zh-CN.md) | ||
</div> | ||
**Biome** is a performant toolchain for web projects, it aims to provide developer tools to maintain the health of said projects. | ||
@@ -107,2 +113,5 @@ | ||
</td> | ||
<td align="center" valign="middle"> | ||
<a href="https://nanabit.dev/" target="_blank"><img src="https://images.opencollective.com/nanabit/d15fd98/logo/256.png?height=80" width="80"></a> | ||
</td> | ||
</tr> | ||
@@ -109,0 +118,0 @@ </tbody> |
const { platform, arch } = process; | ||
const { execSync } = require("child_process"); | ||
function isMusl() { | ||
let stderr; | ||
try { | ||
stderr = execSync("ldd --version", { | ||
stdio: ['pipe', 'pipe', 'pipe'] | ||
}); | ||
} catch (err) { | ||
stderr = err.stderr; | ||
} | ||
if (stderr.indexOf("musl") > -1) { | ||
return true; | ||
} | ||
return false; | ||
} | ||
const PLATFORMS = { | ||
@@ -16,5 +32,13 @@ win32: { | ||
}, | ||
"linux-musl": { | ||
x64: "@biomejs/cli-linux-x64-musl/biome", | ||
arm64: "@biomejs/cli-linux-arm64-musl/biome", | ||
}, | ||
}; | ||
const binName = PLATFORMS?.[platform]?.[arch]; | ||
const binName = | ||
platform === "linux" && isMusl() | ||
? PLATFORMS?.["linux-musl"]?.[arch] | ||
: PLATFORMS?.[platform]?.[arch]; | ||
if (binName) { | ||
@@ -21,0 +45,0 @@ let binPath; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97264
9
2234
124
8
1
1