fix(main): let biome format generated schemas normally

Revert the biome ignore for schemas/ and instead run biome format
as the final step of generate:schemas so the committed output
matches what CI produces.

Signed-off-by: Simon Rey <simon@podman-desktop.io>
AI-assisted: yes
Made-with: Cursor
Signed-off-by: Simon Rey <51708585+simonrey1@users.noreply.github.com>
This commit is contained in:
Simon Rey 2026-04-14 15:49:49 +02:00
parent 9096743588
commit 1908f72bc3
3 changed files with 25 additions and 104 deletions

View file

@ -21,8 +21,7 @@
"!**/website/static/release-notes/**",
"!**/website-argos/screenshots/**",
"!**/storybook/.storybook/themes.css",
"!**/storybook/storybook-static/**",
"!**/schemas/**"
"!**/storybook/storybook-static/**"
]
},
"javascript": {

View file

@ -120,7 +120,7 @@
"website:prod": "pnpm run website:build && cd website/build && pnpm serve",
"website:dev": "pnpm run storybook:build && cd website && pnpm run docusaurus start",
"website:screenshots": "cd website-argos && pnpm run screenshot",
"generate:schemas": "pnpm run generate:schemas:extension",
"generate:schemas": "pnpm run generate:schemas:extension && biome format --write schemas/",
"generate:schemas:extension": "pnpm run build:main && node packages/main/dist/generate-extension-schema.cjs",
"storybook:css": "tsx ./scripts/generate-stylesheet.ts --output storybook/.storybook/themes.css",
"storybook:dev": "pnpm run storybook:css && cd storybook && pnpm run dev",
@ -134,7 +134,7 @@
"biome format --write"
],
"*.md": "prettier --cache --write",
"*.{css,json}": "biome format --write --no-errors-on-unmatched"
"*.{css,json}": "biome format --write"
},
"devDependencies": {
"@biomejs/biome": "^2.4.12",

View file

@ -43,10 +43,7 @@
"type": "string"
}
},
"required": [
"light",
"dark"
],
"required": ["light", "dark"],
"additionalProperties": false
}
]
@ -112,31 +109,13 @@
"anyOf": [
{
"type": "string",
"enum": [
"markdown",
"string",
"number",
"integer",
"boolean",
"null",
"array",
"object"
]
"enum": ["markdown", "string", "number", "integer", "boolean", "null", "array", "object"]
},
{
"type": "array",
"items": {
"type": "string",
"enum": [
"markdown",
"string",
"number",
"integer",
"boolean",
"null",
"array",
"object"
]
"enum": ["markdown", "string", "number", "integer", "boolean", "null", "array", "object"]
}
}
]
@ -260,15 +239,11 @@
"type": "string"
}
},
"required": [
"id"
],
"required": ["id"],
"additionalProperties": false
}
},
"required": [
"title"
],
"required": ["title"],
"additionalProperties": false
},
"commands": {
@ -303,10 +278,7 @@
"type": "string"
}
},
"required": [
"light",
"dark"
],
"required": ["light", "dark"],
"additionalProperties": false
}
]
@ -347,10 +319,7 @@
"type": "string"
}
},
"required": [
"command",
"title"
],
"required": ["command", "title"],
"additionalProperties": false
}
}
@ -376,9 +345,7 @@
"type": "string"
}
},
"required": [
"fontCharacter"
],
"required": ["fontCharacter"],
"additionalProperties": false
}
},
@ -409,12 +376,7 @@
}
}
},
"required": [
"id",
"name",
"parent",
"colors"
],
"required": ["id", "name", "parent", "colors"],
"additionalProperties": false
}
},
@ -437,9 +399,7 @@
"type": "string"
}
},
"required": [
"icon"
],
"required": ["icon"],
"additionalProperties": false
},
{
@ -469,24 +429,17 @@
"type": "string"
}
},
"required": [
"light",
"dark"
],
"required": ["light", "dark"],
"additionalProperties": false
}
]
}
},
"required": [
"label"
],
"required": ["label"],
"additionalProperties": false
}
},
"required": [
"badge"
],
"required": ["badge"],
"additionalProperties": false
}
]
@ -515,10 +468,7 @@
"type": "string"
}
},
"required": [
"path",
"altText"
],
"required": ["path", "altText"],
"additionalProperties": false
},
"steps": {
@ -545,10 +495,7 @@
"type": "string"
}
},
"required": [
"path",
"altText"
],
"required": ["path", "altText"],
"additionalProperties": false
},
"command": {
@ -577,43 +524,28 @@
"type": "string"
}
},
"required": [
"value"
],
"required": ["value"],
"additionalProperties": false
}
}
},
"component": {
"type": "string",
"enum": [
"createContainerProviderConnection",
"createKubernetesProviderConnection"
]
"enum": ["createContainerProviderConnection", "createKubernetesProviderConnection"]
},
"when": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"completed",
"failed",
"skipped"
]
"enum": ["completed", "failed", "skipped"]
},
"state": {
"type": "string",
"enum": [
"completed",
"failed"
]
"enum": ["completed", "failed"]
}
},
"required": [
"id",
"title"
],
"required": ["id", "title"],
"additionalProperties": false
}
},
@ -621,11 +553,7 @@
"type": "string"
}
},
"required": [
"title",
"steps",
"enablement"
],
"required": ["title", "steps", "enablement"],
"additionalProperties": false
},
"features": {
@ -638,13 +566,7 @@
"additionalProperties": false
}
},
"required": [
"name",
"displayName",
"version",
"publisher",
"description"
],
"required": ["name", "displayName", "version", "publisher", "description"],
"additionalProperties": {}
}
]