Skip to content

Commit

Permalink
ci: fail when codegen generates something new (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian authored Dec 2, 2024
1 parent a22da62 commit b02c5e0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/Images.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ Images defines the images used in Symbol etc layers
|   [object Object] | `union` | `none` | `true` | FIX ME NO DESCRIPTION |
| nativeAssetImages | `Array` | `none` | `false` | If you have an asset under Image.xcassets on iOS and the drawables directory on android<br/>you can specify an array of string names with assets as the key `['pin']`. |
| id | `string` | `none` | `false` | FIX ME NO DESCRIPTION |
| children | `ReactElement` | `none` | `true` | FIX ME NO DESCRIPTION |
| children | `ReactElement` | `none` | `false` | FIX ME NO DESCRIPTION |


2 changes: 1 addition & 1 deletion docs/MapView.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ MapView backed by MapLibre Native
| onUserLocationUpdate | `func` | `none` | `false` | This event is triggered when the user location is updated.<br/>*signature:*`(location:Location) => void` |
| regionWillChangeDebounceTime | `number` | `10` | `false` | The emitted frequency of regionwillchange events |
| regionDidChangeDebounceTime | `number` | `500` | `false` | The emitted frequency of regiondidchange events |
| children | `ReactNode` | `none` | `true` | FIX ME NO DESCRIPTION |
| children | `ReactNode` | `none` | `false` | FIX ME NO DESCRIPTION |

## Methods
### `getPointInView(coordinate)`
Expand Down
4 changes: 2 additions & 2 deletions docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@
},
{
"name": "children",
"required": true,
"required": false,
"type": "ReactElement",
"default": "none",
"description": "FIX ME NO DESCRIPTION"
Expand Down Expand Up @@ -2549,7 +2549,7 @@
},
{
"name": "children",
"required": true,
"required": false,
"type": "ReactNode",
"default": "none",
"description": "FIX ME NO DESCRIPTION"
Expand Down
4 changes: 2 additions & 2 deletions scripts/codegen.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import maplibreGlStyleSpec from "@maplibre/maplibre-gl-style-spec/src/reference/latest";
import ejs from "ejs";
import { exec } from "node:child_process";
import { execSync } from "node:child_process";
import { promises as fs } from "node:fs";
import path from "node:path";
import prettier from "prettier";
Expand Down Expand Up @@ -327,7 +327,7 @@ async function generate() {

// Check if any generated files changed
try {
exec(
execSync(
`git diff --exit-code docs/ ${TEMPLATE_MAPPINGS.map((m) => m.output).join(" ")}`,
);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand Down

0 comments on commit b02c5e0

Please sign in to comment.