@rrlab/biome-plugin 1.1.0 → 1.1.1-git-4903a88.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/dist/index.d.mts +1 -1
- package/dist/index.mjs +11 -10
- package/package.json +4 -4
- package/src/index.ts +10 -8
package/dist/index.d.mts
CHANGED
|
@@ -18,7 +18,7 @@ declare class BiomeService extends ToolService implements Formatter, Linter, Sta
|
|
|
18
18
|
declare function install(ctx: InstallContext): Promise<InstallResult>;
|
|
19
19
|
declare function uninstall(ctx: UninstallContext): Promise<UninstallResult>;
|
|
20
20
|
declare const biome: (options?: {
|
|
21
|
-
only?: readonly ("lint" | "format" | "
|
|
21
|
+
only?: readonly ("lint" | "format" | "jscheck")[] | undefined;
|
|
22
22
|
} | undefined) => import("@rrlab/cli/plugin").Plugin;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { BiomeService, TOOL_VERSIONS, biome as default, install, uninstall };
|
package/dist/index.mjs
CHANGED
|
@@ -8,17 +8,17 @@ const TOOL_VERSIONS = { "@biomejs/biome": { install: "^2.0.0" } };
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/index.ts
|
|
10
10
|
const FROM = import.meta.url;
|
|
11
|
-
const UI = colorize("#61A5FA")("biome");
|
|
12
11
|
const COMMON_FLAGS = ["--colors=force", "--no-errors-on-unmatched"];
|
|
13
12
|
const BIOME_JSON = "biome.json";
|
|
14
13
|
const BIOME_CONFIG_PKG = "@rrlab/biome-config";
|
|
15
14
|
const BIOME_SCHEMA = "https://biomejs.dev/schemas/2.4.4/schema.json";
|
|
15
|
+
const biomeColor = colorize("#61A5FA");
|
|
16
16
|
var BiomeService = class extends ToolService {
|
|
17
17
|
constructor(shellService) {
|
|
18
18
|
super({
|
|
19
19
|
pkg: "@biomejs/biome",
|
|
20
20
|
bin: "biome",
|
|
21
|
-
|
|
21
|
+
color: biomeColor,
|
|
22
22
|
shellService,
|
|
23
23
|
from: FROM
|
|
24
24
|
});
|
|
@@ -135,19 +135,20 @@ async function pathExists(p) {
|
|
|
135
135
|
return false;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
const biome = definePlugin(
|
|
139
|
-
name: "biome",
|
|
138
|
+
const biome = definePlugin({
|
|
140
139
|
apiVersion: 1,
|
|
140
|
+
name: "biome",
|
|
141
|
+
color: biomeColor,
|
|
141
142
|
install,
|
|
142
143
|
uninstall,
|
|
143
|
-
|
|
144
|
-
const
|
|
144
|
+
services: ({ shell }) => {
|
|
145
|
+
const biome = new BiomeService(shell);
|
|
145
146
|
return {
|
|
146
|
-
lint:
|
|
147
|
-
format:
|
|
148
|
-
|
|
147
|
+
lint: biome,
|
|
148
|
+
format: biome,
|
|
149
|
+
jscheck: biome
|
|
149
150
|
};
|
|
150
151
|
}
|
|
151
|
-
})
|
|
152
|
+
});
|
|
152
153
|
//#endregion
|
|
153
154
|
export { BiomeService, TOOL_VERSIONS, biome as default, install, uninstall };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rrlab/biome-plugin",
|
|
3
|
-
"version": "1.1.0",
|
|
3
|
+
"version": "1.1.1-git-4903a88.0",
|
|
4
4
|
"description": "Biome plugin for @rrlab/cli — provides lint, format, and jsc capabilities.",
|
|
5
5
|
"homepage": "https://github.com/variableland/dx/tree/main/run-run/biome-plugin#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"comment-json": "4.2.5",
|
|
37
|
-
"@vlandoss/clibuddy": "0.7.0"
|
|
37
|
+
"@vlandoss/clibuddy": "0.7.1-git-4903a88.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@biomejs/biome": ">=2.0.0",
|
|
41
|
-
"@rrlab/cli": "^1.1.0"
|
|
41
|
+
"@rrlab/cli": "^1.1.1-git-4903a88.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@biomejs/biome": "2.4.15",
|
|
45
45
|
"@types/semver": "^7.7.1",
|
|
46
46
|
"semver": "^7.8.1",
|
|
47
|
-
"@rrlab/cli": "1.1.0",
|
|
47
|
+
"@rrlab/cli": "1.1.1-git-4903a88.0",
|
|
48
48
|
"@rrlab/tsdown-config": "^0.1.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
package/src/index.ts
CHANGED
|
@@ -22,7 +22,6 @@ import { parse as parseJsonc } from "comment-json";
|
|
|
22
22
|
import { TOOL_VERSIONS } from "./tool-versions.ts";
|
|
23
23
|
|
|
24
24
|
const FROM = import.meta.url;
|
|
25
|
-
const UI = colorize("#61A5FA")("biome");
|
|
26
25
|
const COMMON_FLAGS = ["--colors=force", "--no-errors-on-unmatched"];
|
|
27
26
|
const BIOME_JSON = "biome.json";
|
|
28
27
|
const BIOME_CONFIG_PKG = "@rrlab/biome-config";
|
|
@@ -30,9 +29,11 @@ const BIOME_SCHEMA = "https://biomejs.dev/schemas/2.4.4/schema.json";
|
|
|
30
29
|
|
|
31
30
|
export { TOOL_VERSIONS } from "./tool-versions.ts";
|
|
32
31
|
|
|
32
|
+
const biomeColor = colorize("#61A5FA");
|
|
33
|
+
|
|
33
34
|
export class BiomeService extends ToolService implements Formatter, Linter, StaticChecker {
|
|
34
35
|
constructor(shellService: ShellService) {
|
|
35
|
-
super({ pkg: "@biomejs/biome", bin: "biome",
|
|
36
|
+
super({ pkg: "@biomejs/biome", bin: "biome", color: biomeColor, shellService, from: FROM });
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
async format(options: FormatOptions): Promise<RunReport> {
|
|
@@ -140,15 +141,16 @@ async function pathExists(p: string): Promise<boolean> {
|
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
143
|
|
|
143
|
-
const biome = definePlugin(
|
|
144
|
-
name: "biome",
|
|
144
|
+
const biome = definePlugin({
|
|
145
145
|
apiVersion: 1,
|
|
146
|
+
name: "biome",
|
|
147
|
+
color: biomeColor,
|
|
146
148
|
install,
|
|
147
149
|
uninstall,
|
|
148
|
-
|
|
149
|
-
const
|
|
150
|
-
return { lint:
|
|
150
|
+
services: ({ shell }) => {
|
|
151
|
+
const biome = new BiomeService(shell);
|
|
152
|
+
return { lint: biome, format: biome, jscheck: biome };
|
|
151
153
|
},
|
|
152
|
-
})
|
|
154
|
+
});
|
|
153
155
|
|
|
154
156
|
export default biome;
|