@biomejs/biome 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/bin/biome +7 -7
- package/package.json +1 -1
- package/scripts/postinstall.js +1 -1
package/README.md
CHANGED
|
@@ -7,18 +7,22 @@
|
|
|
7
7
|
<div align="center">
|
|
8
8
|
|
|
9
9
|
[![Discord chat][discord-badge]][discord-url]
|
|
10
|
-
[![CI][ci-badge]][ci-url]
|
|
10
|
+
[![CI on main][ci-badge]][ci-url]
|
|
11
11
|
[![npm version][npm-badge]][npm-url]
|
|
12
12
|
[![VSCode version][vscode-badge]][vscode-url]
|
|
13
|
+
[![Open VSX version][open-vsx-badge]][open-vsx-url]
|
|
13
14
|
|
|
14
15
|
[discord-badge]: https://badgen.net/discord/online-members/BypW39g6Yc?icon=discord&label=discord&color=green
|
|
15
16
|
[discord-url]: https://discord.gg/BypW39g6Yc
|
|
16
17
|
[ci-badge]: https://github.com/biomejs/biome/actions/workflows/main.yml/badge.svg
|
|
17
18
|
[ci-url]: https://github.com/biomejs/biome/actions/workflows/main.yml
|
|
18
|
-
[npm-badge]: https://badgen.net/npm/v/@biomejs/biome?icon=npm&color=green
|
|
19
|
+
[npm-badge]: https://badgen.net/npm/v/@biomejs/biome?icon=npm&color=green&label=%40biomejs%2Fbiome
|
|
19
20
|
[npm-url]: https://www.npmjs.com/package/@biomejs/biome/v/latest
|
|
20
21
|
[vscode-badge]: https://badgen.net/vs-marketplace/v/biomejs.biome?label=vscode&icon=visualstudio&color=green
|
|
21
22
|
[vscode-url]: https://marketplace.visualstudio.com/items?itemName=biomejs.biome
|
|
23
|
+
[open-vsx-badge]: https://badgen.net/open-vsx/version/biomejs/biome?label=open-vsx&color=green
|
|
24
|
+
[open-vsx-url]: https://open-vsx.org/extension/biomejs/biome
|
|
25
|
+
|
|
22
26
|
|
|
23
27
|
</div>
|
|
24
28
|
|
|
@@ -48,7 +52,7 @@ or directly head to the [Getting Started guide][getting-started] to start using
|
|
|
48
52
|
|
|
49
53
|
## Technical documentation
|
|
50
54
|
|
|
51
|
-
Browse Biome's internal [Rust API Documentation] if you're interested to learn more about how
|
|
55
|
+
Browse Biome's internal [Rust API Documentation] if you're interested to learn more about how Biome works.
|
|
52
56
|
|
|
53
57
|
[biomejs]: https://biomejs.dev/
|
|
54
58
|
[biome-philosophy]: https://biomejs.dev/
|
package/bin/biome
CHANGED
|
@@ -3,16 +3,16 @@ const { platform, arch, env, version, release } = process;
|
|
|
3
3
|
|
|
4
4
|
const PLATFORMS = {
|
|
5
5
|
win32: {
|
|
6
|
-
x64: "@biomejs/cli-win32-x64/
|
|
7
|
-
arm64: "@biomejs/cli-win32-arm64/
|
|
6
|
+
x64: "@biomejs/cli-win32-x64/biome.exe",
|
|
7
|
+
arm64: "@biomejs/cli-win32-arm64/biome.exe",
|
|
8
8
|
},
|
|
9
9
|
darwin: {
|
|
10
|
-
x64: "@biomejs/cli-darwin-x64/
|
|
11
|
-
arm64: "@biomejs/cli-darwin-arm64/
|
|
10
|
+
x64: "@biomejs/cli-darwin-x64/biome",
|
|
11
|
+
arm64: "@biomejs/cli-darwin-arm64/biome",
|
|
12
12
|
},
|
|
13
13
|
linux: {
|
|
14
|
-
x64: "@biomejs/cli-linux-x64/
|
|
15
|
-
arm64: "@biomejs/cli-linux-arm64/
|
|
14
|
+
x64: "@biomejs/cli-linux-x64/biome",
|
|
15
|
+
arm64: "@biomejs/cli-linux-arm64/biome",
|
|
16
16
|
},
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -41,7 +41,7 @@ if (binPath) {
|
|
|
41
41
|
} else {
|
|
42
42
|
console.error(
|
|
43
43
|
"The Biome CLI package doesn't ship with prebuilt binaries for your platform yet. " +
|
|
44
|
-
"You can still use the CLI by cloning the
|
|
44
|
+
"You can still use the CLI by cloning the biome/tools repo from GitHub, " +
|
|
45
45
|
"and follow the instructions there to build the CLI for your platform.",
|
|
46
46
|
);
|
|
47
47
|
process.exitCode = 1;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/biome","version":"0.
|
|
1
|
+
{"name":"@biomejs/biome","version":"0.2.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","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"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"optionalDependencies":{"@biomejs/cli-win32-x64":"0.2.0","@biomejs/cli-win32-arm64":"0.2.0","@biomejs/cli-darwin-x64":"0.2.0","@biomejs/cli-darwin-arm64":"0.2.0","@biomejs/cli-linux-x64":"0.2.0","@biomejs/cli-linux-arm64":"0.2.0"}}
|
package/scripts/postinstall.js
CHANGED
|
@@ -22,7 +22,7 @@ if (binName) {
|
|
|
22
22
|
binPath = require.resolve(binName);
|
|
23
23
|
} catch {
|
|
24
24
|
console.warn(
|
|
25
|
-
`The Biome CLI postinstall script failed to resolve the binary file "${binName}". Running
|
|
25
|
+
`The Biome CLI postinstall script failed to resolve the binary file "${binName}". Running Biome from the npm package will probably not work correctly.`,
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
28
|
} else {
|