@intentius/chant-lexicon-grafana 0.121.0 → 0.122.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/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "d2a0236d0998bfb2862b3baa1137d39942fc43d9d7feed5a7b6bfdbb256c9811",
|
|
5
5
|
"meta.json": "330a1598c3b35ae62267e886a3416a494b0ebe9f1d2e2379253787d0a0bcb32e",
|
|
6
6
|
"types/index.d.ts": "ad385264290f2486f7a54be205684de8415a25b74eee5b809ca625ae19fb08da",
|
|
7
7
|
"rules/grafana-ast.ts": "51f4fac423f7a5c6d6f577074e95b4a70d4ab0a05883a86e04970a50c63d92e8",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"skills/chant-grafana-alerting.md": "d9648dc14c848851bdccbe069dac54ad06115066f9466c90c4137d07dde6d4ad",
|
|
32
32
|
"skills/chant-grafana-operations.md": "4e665f80292ab32bde6d77940cc3f3923678c58e6db0b80613489050d2cb665b"
|
|
33
33
|
},
|
|
34
|
-
"composite": "
|
|
34
|
+
"composite": "47834c6a9a304340ec445bae34dd47d74a343014ebfae4acc5477e8efd126023"
|
|
35
35
|
}
|
package/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-grafana",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.122.0",
|
|
4
4
|
"description": "Grafana lexicon for chant — typed dashboards, panels, queries and datasources, serialized to dashboard JSON and Grafana provisioning files",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"zod": "^4.3.6"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@intentius/chant": "^0.
|
|
86
|
+
"@intentius/chant": "^0.122.0",
|
|
87
87
|
"typescript": "^5.9.3",
|
|
88
88
|
"zod": "^4.3.6"
|
|
89
89
|
}
|
|
@@ -69,7 +69,8 @@ async function importAndBuild(contents: string[]): Promise<Imported> {
|
|
|
69
69
|
externalDatasources: built.externalDatasources,
|
|
70
70
|
alerting: built.alerting ? [{ json: built.alerting as unknown as Json }] : [],
|
|
71
71
|
});
|
|
72
|
-
|
|
72
|
+
// Source-rule cleanliness of the generated TypeScript only; the output is validated through `issues` above (#3750).
|
|
73
|
+
const lint = await lintCommand({ path: srcDir, format: "stylish", postSynth: false });
|
|
73
74
|
return {
|
|
74
75
|
source: sources.join("\n"),
|
|
75
76
|
warnings,
|
|
@@ -85,7 +85,8 @@ async function importAndBuild(content: string): Promise<Imported> {
|
|
|
85
85
|
const srcDir = join(dir, "src");
|
|
86
86
|
writeFiles(srcDir, generated);
|
|
87
87
|
const result = await build(srcDir, [grafanaSerializer]);
|
|
88
|
-
|
|
88
|
+
// Source-rule cleanliness of the generated TypeScript only; imported dashboards' post-synth findings are checked through `issues` (#3750).
|
|
89
|
+
const lint = await lintCommand({ path: srcDir, format: "stylish", postSynth: false });
|
|
89
90
|
const files = (result.outputs.get("grafana") as SerializerResult | undefined)?.files ?? {};
|
|
90
91
|
const dashboards = Object.entries(files).filter(([f]) => f.startsWith("dashboards/"));
|
|
91
92
|
const text = dashboards[0]?.[1];
|
|
@@ -41,7 +41,8 @@ describe("init templates", () => {
|
|
|
41
41
|
expect(reported).toEqual([]);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
// Source rules only: the post-synth checks ran over the build just above (#3750).
|
|
45
|
+
const lint = await lintCommand({ path: join(dir, "src"), format: "stylish", fix: false, postSynth: false });
|
|
45
46
|
expect(lint.errorCount + lint.warningCount, lint.output).toBe(0);
|
|
46
47
|
} finally {
|
|
47
48
|
rmSync(dir, { recursive: true, force: true });
|
|
@@ -27,7 +27,8 @@ describe("core lint on grafana's property-kind declarables (chant #2957)", () =>
|
|
|
27
27
|
writeFileSync(join(project, "chant.config.json"), JSON.stringify({ lexicons: ["grafana"] }));
|
|
28
28
|
mkdirSync(join(project, "src"));
|
|
29
29
|
copyFileSync(join(fixture, "dashboard.ts"), join(project, "src", "dashboard.ts"));
|
|
30
|
-
|
|
30
|
+
// This test is about the core source rules (COR001/COR004/COR009), not the dashboard's post-synth findings (#3750).
|
|
31
|
+
const result = await lintCommand({ path: join(project, "src"), format: "stylish", postSynth: false });
|
|
31
32
|
expect(result.output).not.toMatch(/COR00[149]|LEX001/);
|
|
32
33
|
expect(result.warningCount).toBe(0);
|
|
33
34
|
expect(result.errorCount).toBe(0);
|