Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fail when codegen generates something new #528

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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