build: use native openapi-typescript --check (#60) #77

Merged
codex-bot merged 1 commits from build/60-native-openapi-check into develop 2026-10-13 21:32:34 +03:00
Owner

Что

openapi:check теперь выполняет native --check того же openapi-typescript CLI; 45-строчный wrapper удалён.

  • package.json: alias openapi:check = openapi-typescript … -o … --check (те же version/options, что и openapi:generate)
  • удалён scripts/check-openapi.mjs
  • lint fixture в scripts/test-eslint.mjs переведён на существующий scripts/test-pre-commit.mjs
  • .ai/conventions/data.md: формулировка openapi:check без обещания временного каталога/backend freshness

Заменяет PR #76: тот содержал merge-коммит от update_branch, который падал на commitlint (subject-empty/type-empty/references-empty).

Проверки

  • Positive: npm run openapi:check — exit 0, tracked schema.d.ts не изменён
  • Negative: тот же CLI с временным -o /tmp/stale-schema.d.ts — exit 1 Generated types are not up-to-date!
  • npm run test:lint — 9/9 pass
  • npx eslint scripts/test-eslint.mjs --max-warnings=0 — 0
  • npm run verify — exit 0 (на идентичном содержимом diff, ветка от develop)

Refs WealthLedger/frontend#60

## Что `openapi:check` теперь выполняет native `--check` того же `openapi-typescript` CLI; 45-строчный wrapper удалён. - `package.json`: alias `openapi:check` = `openapi-typescript … -o … --check` (те же version/options, что и `openapi:generate`) - удалён `scripts/check-openapi.mjs` - lint fixture в `scripts/test-eslint.mjs` переведён на существующий `scripts/test-pre-commit.mjs` - `.ai/conventions/data.md`: формулировка `openapi:check` без обещания временного каталога/backend freshness Заменяет PR #76: тот содержал merge-коммит от `update_branch`, который падал на commitlint (`subject-empty`/`type-empty`/`references-empty`). ## Проверки - Positive: `npm run openapi:check` — exit 0, tracked `schema.d.ts` не изменён - Negative: тот же CLI с временным `-o /tmp/stale-schema.d.ts` — exit 1 `Generated types are not up-to-date!` - `npm run test:lint` — 9/9 pass - `npx eslint scripts/test-eslint.mjs --max-warnings=0` — 0 - `npm run verify` — exit 0 (на идентичном содержимом diff, ветка от develop) Refs WealthLedger/frontend#60
codex-bot added 1 commit 2026-10-13 21:24:49 +03:00
build: use native openapi-typescript --check (#60)
Frontend verify / commits (pull_request) Successful in 44s
Frontend verify / security (pull_request) Successful in 11s
Frontend verify / verify (pull_request) Successful in 6m44s
b75ca72ea7
codex-bot scheduled this pull request to auto merge when all checks succeed 2026-10-13 21:25:09 +03:00
codex-bot merged commit df05c8c7db into develop 2026-10-13 21:32:34 +03:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WealthLedger/frontend#77