Skip to content

Commit

Permalink
Update dependency openapi-typescript to v7 (#778)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Thomas McGowan <tpmcgowan@users.noreply.github.com>
  • Loading branch information
renovate[bot] and tpmcgowan authored Jul 23, 2024
1 parent 51e073a commit aa6341b
Show file tree
Hide file tree
Showing 9 changed files with 12,631 additions and 2,882 deletions.
11 changes: 6 additions & 5 deletions bin/update-types.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ echo $APIS | jq -c '.apis[]' | while read API; do

npx openapi-typescript $API_URL --output "./server/@types/$API_NAME.d.ts"

echo "..tidying up..."
sed -i '' 's/^export interface external {}$/\/\/ eslint-disable-next-line @typescript-eslint\/no-empty-interface\n&/' "./server/@types/$API_NAME.d.ts"
npx eslint "./server/@types/$API_NAME.d.ts" --fix
npx prettier "./server/@types/$API_NAME.d.ts" --write
npx eslint "./server/@types/$API_NAME.d.ts" --fix

done

echo "\nNow running type check:"
npm run typecheck
echo "\nNow running lint and type check:"
npm run lint
npm run typecheck
Loading

0 comments on commit aa6341b

Please sign in to comment.