test(generate): add sdk drift guardrails
This commit is contained in:
parent
4ed3afea84
commit
3dee1e7acd
3 changed files with 37 additions and 0 deletions
6
script/check-generate.ts
Normal file
6
script/check-generate.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bun
|
||||
|
||||
import { $ } from "bun"
|
||||
|
||||
await $`bun ./script/generate.ts`
|
||||
await $`git diff --exit-code -- packages/sdk/openapi.json packages/sdk/js/src/gen packages/sdk/js/src/v2`
|
||||
Loading…
Add table
Add a link
Reference in a new issue